Last chance to get at old price: Dedicated SOL and archival ARB & ETH

banner image

Last updated on January 1, 1970

2 min read

Method eth_getTransactionByBlockNumberAndIndex Moonbeam (GLMR)
connect with JSON-RPC protocol

eth_getTransactionByBlockNumberAndIndex

info-circle-fill

Returns information about a transaction by block number and transactionindex position.

Parameters

QUANTITY|TAG - string

block number or "latest", "earliest" or "pending"

QUANTITY - string

Transaction index position.

Request

curl --location --request POST 'https://glmr.getblock.io/mainnet/' 
--header 'x-api-key: YOUR-API-KEY' 
--header 'Content-Type: application/json' 
--data-raw '{"jsonrpc": "2.0",
"method": "eth_getTransactionByBlockNumberAndIndex",
"params": ["0x3752e7", "0x0"],
"id": "getblock.io"}'

Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": {
        "accessList": [],
        "blockHash": "0xd630e02dd2ee043d4ca55399582db9a5313a2cb6a1c66c949ea470a9fe5673e3",
        "blockNumber": "0x3752e7",
        "chainId": "0x504",
        "creates": null,
        "from": "0x36f2c30c86abe0133564d42606c045c1fe54a449",
        "gas": "0x75300",
        "gasPrice": "0x1dceba9762",
        "hash": "0x96daee1a0e35a5059de0fb64674f0f403c9255a941c6ee57ebe1845a9a0787f5",
        "input": "0x918ca412000000000000000000000000818ec0a7fe18ff94269904fced6ae3dae6d6dc0b00000000000000000000000000000000000000000000000000000000000c5a480000000000000000000000000000000000000000000001917abf96ae4b39008700000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000672edcd926f115fc25c9f7917d79e7d0873e4b8000000000000000000000000818ec0a7fe18ff94269904fced6ae3dae6d6dc0b00000000000000000000000000000000000000000000000000000000000fc6f800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000b77ef0475910d1b25fb9e66e3021be63270071c5000000000000000000000000818ec0a7fe18ff94269904fced6ae3dae6d6dc0b00000000000000000000000000000000000000000000000000000000000fc6f80000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000007bea90000000000000000000000000000000000000000000000000000000000049b9f000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000001b0201857401857430172290d10db83bc84e6ab5ed60d057495e86b00000000000000000000000000000000000000000000000000000000000000000000000003602018574018574b929914b89584b4081c7966ac6287636f7efd053020185740185746e509b52728c5674997a25a3ee8d6b5227678f9800000000000000000000",
        "maxFeePerGas": "0x23b3ef2d76",
        "maxPriorityFeePerGas": "0x5a23dde0",
        "nonce": "0x163a",
        "publicKey": "0xa69c7d2248907db19088ccc98faae7280effbe4c4536412d436a10f904801009dfc6f2859d66db5a1c919ecedcff73cb6d08f72b94fa7327791cd6c56434c477",
        "r": "0xf41b3f80fad32db67551c631572a81ee9d7e8cd4bdb6cac2b4415d54c474f511",
        "raw": "0x02f9037682050482163a845a23dde08523b3ef2d768307530094e7fa4105cc4c3e566922da4dbd47a3ae5171b4de80b90304918ca412000000000000000000000000818ec0a7fe18ff94269904fced6ae3dae6d6dc0b00000000000000000000000000000000000000000000000000000000000c5a480000000000000000000000000000000000000000000001917abf96ae4b39008700000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000672edcd926f115fc25c9f7917d79e7d0873e4b8000000000000000000000000818ec0a7fe18ff94269904fced6ae3dae6d6dc0b00000000000000000000000000000000000000000000000000000000000fc6f800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000b77ef0475910d1b25fb9e66e3021be63270071c5000000000000000000000000818ec0a7fe18ff94269904fced6ae3dae6d6dc0b00000000000000000000000000000000000000000000000000000000000fc6f80000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000007bea90000000000000000000000000000000000000000000000000000000000049b9f000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000001b0201857401857430172290d10db83bc84e6ab5ed60d057495e86b00000000000000000000000000000000000000000000000000000000000000000000000003602018574018574b929914b89584b4081c7966ac6287636f7efd053020185740185746e509b52728c5674997a25a3ee8d6b5227678f9800000000000000000000c080a0f41b3f80fad32db67551c631572a81ee9d7e8cd4bdb6cac2b4415d54c474f511a011f7e9a4f83a4c7e8078a7fff4d52e2aa4e03baddb59ff9c44525bc67e17d421",
        "s": "0x11f7e9a4f83a4c7e8078a7fff4d52e2aa4e03baddb59ff9c44525bc67e17d421",
        "standardV": "0x0",
        "to": "0xe7fa4105cc4c3e566922da4dbd47a3ae5171b4de",
        "transactionIndex": "0x0",
        "type": "0x2",
        "v": "0x0",
        "value": "0x0"
    }
}
banner icon

Start Building with GetBlock RPCs for Free