Skip to content

Latest commit

 

History

History
122 lines (75 loc) · 2.34 KB

File metadata and controls

122 lines (75 loc) · 2.34 KB

Chain data & utilities

Query transactions, blocks, and chain parameters, plus local encoding utilities.

How to get transaction information

GetTransactionById

Get transaction information based on a transaction ID.

GetTransactionCountByBlockNum

Get the number of transactions in the block based on the block height.

> GetTransactionCountByBlockNum number

GetTransactionInfoById

Get transaction info based on a transaction ID, generally used to check the result of a smart contract trigger.

GetTransactionInfoByBlockNum

Get the list of transaction information in the block based on the block height.

> GetTransactionInfoByBlockNum number

How to get block information

GetBlock

Get the block according to the block number; if you do not pass the parameter, get the latest block.

> GetBlock [BlockNum]

GetBlockById

Get a block based on block ID.

GetBlockByIdOrNum

Get blocks based on their ID or block height. If no parameters are passed, get the header block.

GetBlockByLatestNum

> GetBlockByLatestNum n

Get the latest n blocks, where 0 < n < 100.

GetBlockByLimitNext

> GetBlockByLimitNext startBlockId endBlockId

Get the block in the range [startBlockId, endBlockId).

Chain parameters & nodes

GetChainParameters

Show all parameters that the blockchain committee can set.

> GetChainParameters

GetNextMaintenanceTime

Get the start time of the next maintenance period.

ListNodes

Get other peer information.

BroadcastTransaction

Broadcast the transaction, where the transaction is in hex-string format.

Local utilities

EncodingConverter

A useful encoding converter.

wallet> EncodingConverter

==============================
  Encoding Converter (CLI)
==============================
1) TRON - EVM Address
2) Base64 Encode / Decode
3) Base58Check Encode / Decode
4) Public Key -> Address
5) Private Key -> Public Key & Address
0) Exit
> 

GetPrivateKeyByMnemonic

Get the private key through mnemonics.

wallet> GetPrivateKeyByMnemonic

Please enter 12 or 24 words (separated by spaces) [Attempt 1/3]:

See also