Author Topic: How to get(ref_block_num), (ref_block_prefix), (signatures)?  (Read 292 times)

0 Members and 1 Guest are viewing this topic.

Offline wudouzheng

How to get(ref_block_num), (ref_block_prefix), (signatures)?
« on: October 22, 2018, 04:35:41 am »
How to get them parameters especially signatures for using broadcast API of transactions

Offline abit

  • Committee member
  • Hero Member
  • *
  • Posts: 3428
    • View Profile
    • Steemit Blog
  • BitShares: abit
  • GitHub: abitmore
Re: How to get(ref_block_num), (ref_block_prefix), (signatures)?
« Reply #1 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.
« Last Edit: October 22, 2018, 10:18:41 pm by abit »
BTS account: abit
BTS committee member: abit
BTS witness: in.abit

Offline wudouzheng

Re: How to get(ref_block_num), (ref_block_prefix), (signatures)?
« Reply #2 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规则,
自己构建签名吗?


Offline abit

  • Committee member
  • Hero Member
  • *
  • Posts: 3428
    • View Profile
    • Steemit Blog
  • BitShares: abit
  • GitHub: abitmore
Re: How to get(ref_block_num), (ref_block_prefix), (signatures)?
« Reply #3 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.
BTS account: abit
BTS committee member: abit
BTS witness: in.abit

Offline wudouzheng

Re: How to get(ref_block_num), (ref_block_prefix), (signatures)?
« Reply #4 on: October 24, 2018, 05:48:42 am »
thank you .:)