API Reference

eth_getTransactionByBlockHashAndIndex - Base

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: [ "0x71879822f39a582fd3f7fbf79e5b0f74d78338c4c324a9a57749caefcc6a048d", "0x1" ];

Returns

See eth_getTransactionByHash


Example

Request

curl --request POST \ --url https://base-testnet.unifra.io/v1/{your-api-key} \ --header 'accept: application/json' \ --header 'content-type: application/json' \ --data ' { "jsonrpc": "2.0", "method": "eth_getTransactionByBlockHashAndIndex", "params": [ "0x71879822f39a582fd3f7fbf79e5b0f74d78338c4c324a9a57749caefcc6a048d", "0x1" ], "id": "1" } '

Result

{ "jsonrpc": "2.0", "id": "1", "result": { "blockHash": "0x71879822f39a582fd3f7fbf79e5b0f74d78338c4c324a9a57749caefcc6a048d", "blockNumber": "0x5c97ad", "from": "0x041de9fbe5223b709a4406da99254390b67cab96", "gas": "0x3d090", "gasPrice": "0x59682f32", "maxFeePerGas": "0x59682f32", "maxPriorityFeePerGas": "0x59682f32", "hash": "0xa489818e494904c0e7924781344cc025d4fdd418ad8ca4c870a852148b0990d9", "input": "0xe2bbb1580000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000015c377b634f87a3", "nonce": "0x7", "to": "0xdb8726189978d09d8c8a449eda6c72a1e2eb228e", "transactionIndex": "0x1", "value": "0x0", "type": "0x2", "accessList": [], "chainId": "0x14a33", "v": "0x0", "r": "0xee81449bb730af0544258e52ff4e10df76880b321ad1e8ad13c1a508ccf255f8", "s": "0x5f141b8ee8172e0b31905192f5fe852f84d333a6c4d68c68f0e23f4d32f938a" } }
Path Params
string
required
Defaults to demo
Body Params
string
Defaults to { "jsonrpc": "2.0", "method": "eth_getTransactionByBlockHashAndIndex", "params": [ "0x71879822f39a582fd3f7fbf79e5b0f74d78338c4c324a9a57749caefcc6a048d", "0x1" ], "id": "1" }
Responses

Language
Click Try It! to start a request and see the response here! Or choose an example:
application/json