简体   繁体   English

在测试/主网上创建钱包是否需要安装本地节点?

[英]is installing local node necessary to create wallet on test/main net?

i want to be able to create wallets on wave blockchain using their api我希望能够使用他们的 API 在 Wave 区块链上创建钱包

according to this根据这个

https://nodes-testnet.wavesnodes.com/api-docs/index.html#/addresses/createWalletAddress https://nodes-testnet.wavesnodes.com/api-docs/index.html#/addresses/createWalletAddress

i need to send API key in my request header .... i look into how can i obtain this api key and in the doc here are the steps我需要在我的请求标头中发送API key ....我研究了如何获得这个 api 密钥,在文档中是步骤

Set API Key设置 API 密钥

To set API key, you need to generate API key hash and then use it in your node configuration.要设置 API 密钥,您需要生成 API 密钥哈希,然后在您的节点配置中使用它。

Create unique string value that you will use as API key.创建将用作 API 密钥的唯一字符串值。

Go to Swagger web interface.转到 Swagger Web 界面。

Open the /utils/hash/secure (opens new window)API method and input your unique string in the message field.打开 /utils/hash/secure (opens new window)API 方法并在消息字段中输入您的唯一字符串。

Click Execute to get the hashed API key.单击执行以获取散列的 API 密钥。

Use the hashed API key as the value of the api-key-hash parameter in your node configuration file.使用哈希 API 密钥作为节点配置文件中 api-key-hash 参数的值。

Restart your node.重启你的节点。

it says它说

Use the hashed API key as the value of the api-key-hash parameter in your node configuration file.使用哈希 API 密钥作为节点配置文件中 api-key-hash 参数的值。

im very confused ... i thought using testnet means that i dont have to install a local node maybe im wrong ?!我很困惑......我认为使用测试网意味着我不必安装本地节点也许我错了?!

use this package使用这个包

https://www.npmjs.com/package/@waves/waves-api https://www.npmjs.com/package/@waves/waves-api

you need to creaate a seed pharase , and using the seed you can create address/public & private keys ... here is a shortcut to create all你需要创建一个种子短语,并使用种子你可以创建地址/公钥和私钥......这是创建所有的快捷方式

const Waves = WavesAPI.create(WavesAPI.TESTNET_CONFIG);
const seed = Waves.Seed.create();
console.log(seed);

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

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