Skip to main content
POST
Get a transaction by hash

Body

application/json
jsonrpc
enum<string>
default:2.0
required

JSON-RPC protocol version. Always 2.0.

Available options:
2.0
id
integer
default:1
required

Request identifier echoed back in the response.

method
enum<string>
default:eth_getTransactionByHash
required

JSON-RPC method name.

Available options:
eth_getTransactionByHash
params
tuple
required

[transactionHash].

Response

200 - application/json

JSON-RPC 2.0 response. Errors are reported in-band via an error object with code and message in place of result.

jsonrpc
enum<string>
Available options:
2.0
id
integer
result
object | null

Transaction object, or null if unknown.