Skip to main content
Version: 6.1.0 - 6.1.1

getCurrentRefBlockParams <src>

Retrieve the parameters required for transaction building

Usage

tronWeb.trx.getCurrentRefBlockParams()

Return

Object - with 4 properties that can be passed to transactionBuilder methods:

  • ref_block_bytes
  • ref_block_hash
  • expiration
  • timestamp

Example

await tronWeb.trx.getCurrentRefBlockParams();
{
ref_block_bytes: '0015',
ref_block_hash: 'a7e9b8b30827c333',
expiration: 1760932113000,
timestamp: 1760932053000
}