Log In

eth_getTransactionByBlockNumberAndIndex-Zeta

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

Parameters

  • QUANTITY|TAG - A block number, or the string "earliest", "latest" or "pending", as in the default block parameter.
  • QUANTITY - The transaction index position.
params: [
	"0x47fa1", // 668
	"0x0", // 0
];

Returns

See eth_getTransactionByHash


Example

Request

curl --location 'http://zetachain-athens-3.unifra.io/v1/{your-api-key}' \
--header 'Content-Type: application/json' \
--data '{
    "jsonrpc": "2.0",
    "method": "eth_getTransactionByBlockNumberAndIndex",
    "params": [
        "0x151fb7",
        "0x0"
    ],
    "id": "1693277463"
}'

Result

{
    "jsonrpc": "2.0",
    "id": "1693277463",
    "error": {
        "code": -32000,
        "message": "method handler crashed"
    }
}
Language
Click Try It! to start a request and see the response here!