API Reference

eth_getTransactionByBlockHashAndIndex - Linea

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 'https://linea-mainnet.unifra.io/v1//health' \
--header 'Content-Type: application/json' \
--data '{
    "jsonrpc": "2.0",
    "method": "eth_getTransactionByBlockHashAndIndex",
    "params": [
        "0x07aa087f4cde7b9adba3652e179004181dd2d2cb0c02c69dddbf15a2f2a6dc8d",
        "0x1"
    ],
    "id": "1234"
}'

Result

{
    "jsonrpc": "2.0",
    "id": "1234",
    "result": {
        "blockHash": "0x07aa087f4cde7b9adba3652e179004181dd2d2cb0c02c69dddbf15a2f2a6dc8d",
        "blockNumber": "0x47fa1",
        "from": "0x6a2162583c9674b79ee7efa0362d1af8634ad71c",
        "gas": "0x7b0c",
        "gasPrice": "0x5f5e1000",
        "hash": "0xc455bb9255b76102854d7178000295ad17b76700dd054ae48e39c39a0b7a6371",
        "input": "0x",
        "nonce": "0x6",
        "to": "0x80c67432656d59144ceff962e8faf8926599bcf8",
        "transactionIndex": "0x1",
        "value": "0x446ec952ebede336",
        "type": "0x0",
        "chainId": "0xe708",
        "v": "0x1ce34",
        "r": "0xa6713e79b89363f064ff7a2db681f4e0ededdf67dc4632be4b41d510c037ceac",
        "s": "0x4b1f0d19ad4a6101d9a0b577f3fcc5126ced22c62740af6deb8c3e3124dc1928"
    }
}
Language
Click Try It! to start a request and see the response here!