简体   繁体   中英

How to use Waves Transactions library in testnet?

我正在使用Waves交易库,我需要使用javascript做一些交易测试,我想知道如何在testnet中使用它?

You will need two things:

First, Some transactions have chainId as param. You need to pass 'T'. Eg:

const burnTx = burn({assetId:'someId', amount:1000, chainId:'T'})

Second, You send tx to testnet node. Eg:

await broadcast(burnTx, ' https://testnodes.wavesnodes.com')

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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