eth_getTransactionByHash

Get Transaction By Hash RPC Method

POST https://eth-rpc.kolibr.io/ Returns information about a transaction using a transaction hash. If the transaction was sent to one of Kolibrios' endpoints and is in a pending state, the transaction data will also be returned.

Request Body Parameters

Name
Value

hash (required)

The hash of a transaction

Request Example

curl -X POST "https://eth-rpc.kolibr.io/" \
-H "Content-Type: application/json" \
-d '{
    "method": "eth_getTransactionByHash",
    "params": [
        "TX_HASH"
    ],
    "id": 1,
    "jsonrpc": "2.0"
}'

Response Example

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
        "blockHash": "0x0",
        "blockNumber": "0x0",
        "chainId": "0x1",
        "from": "0x...",
        "gas": "0x...",
        "gasPrice": "0x0",
        "hash": "0x...",
        "input": "0x1234",
        "nonce": "0x2c3",
        "r": "0x0",
        "s": "0x0",
        "to": "0x...",
        "transactionIndex": "0x0",
        "type": "0x0",
        "v": "0x0",
        "value": "0"
    }
}

Last updated