eth_getTransactionByBlockHashAndIndex

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

Example

curl https://bsc-<network>.web3api.com/v1/YOUR-API-KEY 
-X POST 
-H "Content-Type: application/json"  
-d "{\"jsonrpc\":\"2.0\",\"method\":\"eth_getTransactionByBlockHashAndIndex\",\"params\": [\"0x4afd743f186bc6028c44e2916a62405b9b46200e4dabebe59b79b24a40c792b6\", \"0x0\"],\"id\":1}"
  1. BLOCK HASH - a string representing the hash (32 bytes) of a block.

  2. TRANSACTION INDEX POSITION - a hex of the integer representing the position in the block, appended with 0x such as 0x0 .

Last updated