BitShares Forum

Main => Technical Support => Topic started by: wudouzheng on October 22, 2018, 04:35:41 am

Title: How to get(ref_block_num), (ref_block_prefix), (signatures)?
Post by: wudouzheng on October 22, 2018, 04:35:41 am
How to get them parameters especially signatures for using broadcast API of transactions
Title: Re: How to get(ref_block_num), (ref_block_prefix), (signatures)?
Post by: abit on October 22, 2018, 10:16:24 pm
How to get them parameters especially signatures for using broadcast API of transactions
You need to sign the transaction. If you're using cli_wallet, you can use this command
Code: [Select]
sign_transaction {your_transaction_json} true/false

true for broadcast, false for test or check before broadcast.
Title: Re: How to get(ref_block_num), (ref_block_prefix), (signatures)?
Post by: wudouzheng on October 23, 2018, 03:31:23 am
Thank
Can i be able build signatures for use rule of signatures?
except for cli_wallet。

谢谢
除了使用cli_wallet,
我可以根据signatures规则,
自己构建签名吗?

Title: Re: How to get(ref_block_num), (ref_block_prefix), (signatures)?
Post by: abit on October 23, 2018, 05:37:02 pm
Thank
Can i be able build signatures for use rule of signatures?
except for cli_wallet。

谢谢
除了使用cli_wallet,
我可以根据signatures规则,
自己构建签名吗?
Except C++ lib, there are other libs:
* python lib https://github.com/bitshares/python-bitshares
* js lib https://github.com/bitshares/bitsharesjs
* java lib https://github.com/Agorise/graphenej

Of course you can write your own code.
Title: Re: How to get(ref_block_num), (ref_block_prefix), (signatures)?
Post by: wudouzheng on October 24, 2018, 05:48:42 am
thank you .:)