curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/jsonrpc \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"method": "eth_getTransactionByBlockNumberAndIndex",
"params": [
"0xfb82f0",
"0x0"
],
"id": 64
}
'{
"jsonrpc": "2.0",
"id": 64,
"result": {}
}curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/jsonrpc \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"method": "eth_getTransactionByBlockNumberAndIndex",
"params": [
"0xfb82f0",
"0x0"
],
"id": 64
}
'{
"jsonrpc": "2.0",
"id": 64,
"result": {}
}jsonrpc — the JSON-RPC protocol version (always “2.0”)method — the method name (always “eth_getTransactionByBlockNumberAndIndex”)params — array containing method parameters
blockNumber — the block number as a hexadecimal string or block tag (“latest”, “earliest”, “pending”)transactionIndex — the transaction index position in the block as a hexadecimal stringid — request identifier (number or string)jsonrpc — the JSON-RPC protocol version (“2.0”)id — the request identifier that matches the requestresult — transaction object with Ethereum-compatible fields or null if not foundjsonrpc eth_getTransactionByBlockNumberAndIndex method is used for:
Was this page helpful?