eth_getTransactionByBlockHashAndIndex - Zeta

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

Parameters

  • DATA, 32 Bytes - Hash of a block.
  • QUANTITY - Integer of the transaction index position.
params: [
	"0x07aa087f4cde7b9adba3652e179004181dd2d2cb0c02c69dddbf15a2f2a6dc8d",
	"0x1"
];

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_getTransactionByBlockHashAndIndex",
    "params": [
        "0xe9393ffcb4b63b078afa17274b044526de7e5f34981bc98c40da132249cc680e",
        "0x0"
    ],
    "id": "11223"
}'

Result

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