eth_getTransactionByBlockHashAndIndex

Network: Polygon Amoy · Testnet · Chain ID 80002 (0x13882)

Counts as 1 request. See Request Counting.

Description

Returns transaction by block hash and index.

Parameters

ParameterTypeRequiredDescription
blockHashhexYesBlock hash
indexhexYesTransaction index (hex)

Request

{ "jsonrpc": "2.0", "method": "eth_getTransactionByBlockHashAndIndex", "params": ["0x...", "0x0"], "id": 1 }

Code Examples

curl -X POST https://polygon-amoy-bor-rpc.blockreq.com/v1/rpc/public \ -H "Content-Type: application/json" \ -d '{"jsonrpc":"2.0","method":"eth_getTransactionByBlockHashAndIndex","params":["0x...","0x0"],"id":1}'

Try It