Share your GetBlock experience with other devs and get 5M RPCs

banner image

Last updated on January 1, 1970

2 min read

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

eth_getTransactionByHash

info-circle-fill

Returns the information about a transaction requested by transactionhash.

Parameters

DATA - string

Hash of a transaction.

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_getTransactionByHash",
"params": ["0x4ab47371392d03d9abd8cdbd0997b711b64ac57df0ae28717328ed56621b2c50"],
"id": "getblock.io"}'

Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": {
        "accessList": [],
        "blockHash": "0xd630e02dd2ee043d4ca55399582db9a5313a2cb6a1c66c949ea470a9fe5673e3",
        "blockNumber": "0x3752e7",
        "chainId": "0x504",
        "creates": null,
        "from": "0x7e175bd3c50e3a9fd58c468233a36bcb97690bbf",
        "gas": "0x3ca4d4",
        "gasPrice": "0x1dcdfee882",
        "hash": "0x4ab47371392d03d9abd8cdbd0997b711b64ac57df0ae28717328ed56621b2c50",
        "input": "0xd254c8b8000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000162b3f37660000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000acc15dc74880c9944775448304b263d191c6077f00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000006c020185a60185a6a927e1e1e044ca1d9fe1854585003477331fe2af02018574018574e4b52aed43938894d9d73656758f25ea91abdfda0201857401857430172290d10db83bc84e6ab5ed60d057495e86b002018574018574b929914b89584b4081c7966ac6287636f7efd0530000000000000000000000000000000000000000",
        "maxFeePerGas": "0x23b3337e96",
        "maxPriorityFeePerGas": "0x59682f00",
        "nonce": "0x4cf4",
        "publicKey": "0x028be0c4f459dc1cd63c7e602fc699af69762964a8f619eab0189483800213251ffc58dda0ae26fa378feb5d01fc1fb5c7373e24fad50e00e4a24f7740a3c6da",
        "r": "0x6bd4c7d27198dabeaba01628197cec5b6a58c82f020ab12a590e024933de971a",
        "raw": "0x02f901f6820504824cf48459682f008523b3337e96833ca4d494e7fa4105cc4c3e566922da4dbd47a3ae5171b4de80b90184d254c8b8000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000162b3f37660000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000acc15dc74880c9944775448304b263d191c6077f00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000006c020185a60185a6a927e1e1e044ca1d9fe1854585003477331fe2af02018574018574e4b52aed43938894d9d73656758f25ea91abdfda0201857401857430172290d10db83bc84e6ab5ed60d057495e86b002018574018574b929914b89584b4081c7966ac6287636f7efd0530000000000000000000000000000000000000000c080a06bd4c7d27198dabeaba01628197cec5b6a58c82f020ab12a590e024933de971aa053419743bc8c22fe6c1432ff8ccf41fc3968c32960f0bdcd7ac9f16771a4e0c9",
        "s": "0x53419743bc8c22fe6c1432ff8ccf41fc3968c32960f0bdcd7ac9f16771a4e0c9",
        "standardV": "0x0",
        "to": "0xe7fa4105cc4c3e566922da4dbd47a3ae5171b4de",
        "transactionIndex": "0x1",
        "type": "0x2",
        "v": "0x0",
        "value": "0x0"
    }
}
banner icon

Start Building with GetBlock RPCs for Free