GetTxnBodiesForTxBlockEx
This API behaves similar to GetTxBodiesForTxBlock except it returns the transactions in batches (or pages) of 2,500.
The number of pages available is defined by the NumPages
header value in the GetTxBlock or GetLatestTxBlock response. Page indexing is zero-based and indicated in the request after the block number.
For example, to retrieve all the transactions for a block with NumPages=3
, one must call GetTxBodiesForTxBlockEx
three times with page number 0, 1, and 2.
This API is available from Zilliqa V7.2.0
onwards.
Example Request
=== "cURL"
Example Response
Arguments
id
string
Required
"1"
jsonrpc
string
Required
"2.0"
method
string
Required
"GetTxnBodiesForTxBlockEx"
params
array
Required
Block parameters
Block Parameters
Block number
string
Required
Specifed TX block number to return. Example: "1002353"
Page number
string
Required
Page number (zero-based). Example: "2"