API Reference

eth_getTransactionByBlockNumberAndIndex - Linea

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 'https://linea-mainnet.unifra.io/v1/{your-api-key}' \ --header 'Content-Type: application/json' \ --data '{ "jsonrpc": "2.0", "method": "eth_getTransactionByBlockNumberAndIndex", "params": [ "0x47fa1", "0x0" ], "id": "1693211491" }'

Result

{ "jsonrpc": "2.0", "id": "1693211488", "result": { "blockHash": "0x07aa087f4cde7b9adba3652e179004181dd2d2cb0c02c69dddbf15a2f2a6dc8d", "blockNumber": "0x47fa1", "from": "0xb8ff877ed78ba520ece21b1de7843a8a57ca47cb", "gas": "0x48d9c", "gasPrice": "0x711ac85c", "hash": "0x856cecd59fe7c35c7a236a8353f7628ef6f173cffdcb4245fa146e0c2764a5d8", "input": "0x6c459a2800000000000000000000000038de71124f7a447a01d67945a51edce9ff49125100000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000064ecafa900000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000084704316e5000000000000000000000000000000000000000000000000000000000000006ef6878711628ecc5e34d24fa30b9125fb74cf1bf6140a01d6155667a48a6473df0000000000000000000000000000000000000000000000000000000000000014f6878711628ecc5e34d24fa30b9125fb74cf1bf6140a01d6155667a48a6473df0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000820bead3c7dfad04c655a5fe8006b028d0340e634d2724297fd144e7cde6c26057733c0693a00858b9fa64353a6af4805b482b7f313715c0545e60d4f36b50c9051b1451ec3cd89041cd0662ce66f2238c189141e6fe3b3bc8ca231c8451b4123e9d310386c3237e49bc7c2a4fd4c0102abaeb8abbd66a11bd83beaa91c6630ec9031c000000000000000000000000000000000000000000000000000000000000", "nonce": "0x17f0a", "to": "0xcb566e3b6934fa77258d68ea18e931fa75e1aaaa", "transactionIndex": "0x0", "value": "0x0", "type": "0x0", "chainId": "0xe708", "v": "0x1ce34", "r": "0x4902df9786e5fec0f7b7db01f69f302336272ff89eb31bb21845935cc474b2f4", "s": "0x386767c2caa68b3bdb769b0777dbb10009f227871ccf8bb45da8ff19d3544b94" } }
Path Params
string
required
Defaults to demo
Body Params
string
Defaults to { "jsonrpc": "2.0", "method": "eth_getTransactionByBlockNumberAndIndex", "params": [ "latest", "0x0" ], "id": "1" }
Responses

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