eth_getTransactionByBlockNumberAndIndex

Returns information about a transaction by block number and transaction index position.

Parameters

  1. QUANTITY|TAG - A non-negative block height in decimal or 0x-prefixed hexadecimal, or one of the tags earliest, latest, and finalized. earliest selects the genesis block, latest the current head block, and finalized the latest solidified block. The pending and safe tags are not supported and return an invalid-parameters error.
  2. QUANTITY - Transaction index position.

Example

Request

curl -X POST 'https://api.shasta.trongrid.io/jsonrpc' --data '{
	"jsonrpc": "2.0",
	"method": "eth_getTransactionByBlockNumberAndIndex",
	"params": ["0xfb82f0", "0x0"],
	"id": 64
}'

Response

{"jsonrpc":"2.0","id":64,"result":null}