简体   繁体   English

是否可以使用api node.js在wave区块链网络中生成钱包?

[英]Is it possible to generate wallet in the waves blockchain network with api node.js?

I need to generate wallet in blockchain waves for my project. 我需要为我的项目在区块链波中生成钱包。 Can I use some Node.js API for this? 我可以为此使用一些Node.js API吗?

Please, have a look at POST/addresses node's API method. 请查看POST / addresses节点的API方法。 This method will create a new address on your node. 此方法将在您的节点上创建一个新地址。

Also, it's possible to create a new seed phrase and then a private, public keys and an address using various libraries or you can use Waves keeper as well. 同样,可以使用各种来创建新的种子短语,然后创建私钥,公钥和地址,或者也可以使用Waves keeper

You can simply use waves-transactions lib for nodejs/javascript it allow wallet (seed, address and keypair) creation as follow: 您可以简单地将wave-transactions lib用于nodejs / javascript,它允许创建钱包(种子,地址和密钥对),如下所示:

const wavesTransaction  = require('@waves/waves-transactions')
const seed = wavesTransaction.seedUtils.Seed.create();
console.log(seed.phrase)
console.log(seed.address)
console.log(seed.keyPair)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM