Which is the accurate method to get the block number
to which a transaction is written after executing a transaction?
The response of push_transaction
API is not accurate
Can anyone help me with this?
EOS.IO Stack Exchange is a question and answer site for users and developers of distributed applications built on top of the blockchain operating system, EOS.IO. It only takes a minute to sign up.
Sign up to join this communityWhich is the accurate method to get the block number
to which a transaction is written after executing a transaction?
The response of push_transaction
API is not accurate
Can anyone help me with this?
Use EOSJS
the "result" contains several pieces of information including the transaction id and the corresponding block number.
const result = await api.transact({...})
You can access it from the command line using:
cleos get transaction TRANSACTION_ID | jq '.block_num'