/

Ethereum Classic (ETC)

etc

Ethereum Classic (ETC)

Method: POST eth_getTransactionByHash

dropdown

POST eth_getTransactionByHash

Returns transaction information for the specified transaction hash.

Parameters

DATA - string

32-byte transaction hash.

Request

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


Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": {
        "blockHash": "0xbb50cb8d2d5698c1b10f1a845360ecf521ff18b08f71664a4639b6bdbb08fb38",
        "blockNumber": "0xcdf167",
        "from": "0x7eb4c9d6b763324eea4852f5d40985bbf0f29832",
        "gas": "0x45948",
        "gasPrice": "0x4a817c800",
        "hash": "0x01736b023300e297e3b3c7c13ab5db49c7c0be768d48790f46dd7baeefa7b047",
        "input": "0xfe97ea430000000000000000000000007eb4c9d6b763324eea4852f5d40985bbf0f298320000000000000000000000000000000000000000000000000000000000000017000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000000160dfb255ad11a4d8d2a4a6e264b0b41baf04737047bde86bfe5e16f27244215400000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000",
        "nonce": "0x224",
        "publicKey": "0x117cad045ab4df03fb6f1d95578db1f5999cb0174af179057a60e2e273a3fbd0560dce36f6f0842d103783f36bb0eeb6ada6af915c0ee324d0c9d97fd8c22a87",
        "r": "0x524cf6e9af494c47972461c61dc1778ed7d55c72842f1d14110e46c586801bc6",
        "raw": "0xf9016d8202248504a817c80083045948943c42649799074b438889b80312ea9f62bc798aa880b90104fe97ea430000000000000000000000007eb4c9d6b763324eea4852f5d40985bbf0f298320000000000000000000000000000000000000000000000000000000000000017000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000000160dfb255ad11a4d8d2a4a6e264b0b41baf04737047bde86bfe5e16f272442154000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000001ba0524cf6e9af494c47972461c61dc1778ed7d55c72842f1d14110e46c586801bc6a01f8ff9dc5ab5a50b6add0238819e8b6a004af37833db025eadeb71510b4d2b45",
        "s": "0x1f8ff9dc5ab5a50b6add0238819e8b6a004af37833db025eadeb71510b4d2b45",
        "to": "0x3c42649799074b438889b80312ea9f62bc798aa8",
        "transactionIndex": "0x0",
        "v": "0x1b",
        "value": "0x0"
    }
}