POST
/
{api-key}
curl --request POST \
  --url https://{network}.s.chainbase.online/v1/{api-key} \
  --header 'Content-Type: application/json' \
  --data '{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "eth_getTransactionByHash",
  "params": [
    "0x0b8f9635aad56d18381d2fd7ad0578cd54fb316b0b017948a3048915cfd29034"
  ]
}'
{
  "id": 1,
  "jsonrpc": "2.0",
  "result": {
    "blockHash": "<string>",
    "blockNumber": "<string>",
    "from": "<string>",
    "gas": "<string>",
    "gasPrice": "<string>",
    "hash": "<string>",
    "input": "<string>",
    "nonce": "<string>",
    "to": "<string>",
    "transactionIndex": "<string>",
    "value": "<string>",
    "v": "<string>",
    "r": "<string>",
    "s": "<string>"
  }
}

Path Parameters

api-key
string
required
Example:

"demo"

Body

application/json
id
integer
default:1
required
Example:

1

jsonrpc
string
default:2.0
required
Example:

"2.0"

method
string
default:eth_getTransactionByHash
required
params
any[]
required

Response

200 - application/json
Successful Response
id
integer
required
Example:

1

jsonrpc
string
required
Example:

"2.0"

result
object
required