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 Huobi ECO Chain (HECO)
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://heco.getblock.io/mainnet/' 
--header 'x-api-key: YOUR-API-KEY' 
--header 'Content-Type: application/json' 
--data-raw '{"jsonrpc": "2.0",
"method": "eth_getTransactionByHash",
"params": ["0xf32e8f9bbaaac3cc64cfd8547033435a56e830165c53369d9af9a205101f503b"],
"id": "getblock.io"}'

Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": {
        "blockHash": "0x779f94a2fad68383ed932e9f8fd04234a92b85f9d849bec2188c675dcdb0f16d",
        "blockNumber": "0x62ccd5",
        "from": "0x9a0894cca9fe2c619bf58ff633d7e2c0c05f96de",
        "gas": "0x2dc6c0",
        "gasPrice": "0xd0ad054b",
        "hash": "0xf32e8f9bbaaac3cc64cfd8547033435a56e830165c53369d9af9a205101f503b",
        "input": "0x75d8cde900000000000000000000000000000000000000000000000029c5ab0d65ecff2a000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000062ccd50000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000004000000000000000000000000a71edc38d189767582c38a3145b5873052c3e47a000000000000000000000000180dae91d6d56235453a892d2e56a3e40ba81df800000000000000000000000025d2e80cb6b86881fd7e07dd263fb79f4abe033c000000000000000000000000ae3a768f9ab104c69a7cd6041fe16ffa235d18100000000000000000000000000000000000000000000000000000000000000002000000000000000000000000ae3a768f9ab104c69a7cd6041fe16ffa235d1810000000000000000000000000a71edc38d189767582c38a3145b5873052c3e47a0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000ed7d5f38c79115ca12fe6c0041abb22f0a06c300000000000000000000000000e38623b265b5acc9f35e696381769e556ed932f9",
        "nonce": "0x888e",
        "r": "0xe3901a85705510ecb7ab32882974a15271abc2ab150a0d942e3829a32831db39",
        "s": "0x7999715b2cc36d89ef95803cff5ff0f81ab407836f360eb559fc944ab4c43d0",
        "to": "0xa7df0f4affe5cc11df55c59e56fde237f4b42371",
        "transactionIndex": "0x0",
        "type": "0x0",
        "v": "0x1c",
        "value": "0x0"
    }
}
banner icon

Start Building with GetBlock RPCs for Free