eth_getTransactionByHash

Returns the information about a transaction requested by transaction hash.

Request

This endpoint expects an object.
transactionHashstringRequiredformat: "^0x[a-fA-F0-9]{64}$"
Hash of the transaction to look up.

Response

Transaction details, or null when the transaction is not found.
hashstringformat: "^0x[a-fA-F0-9]{64}$"

32-byte transaction hash.

noncestringformat: "^0x(?:0|[1-9a-fA-F][a-fA-F0-9]*)$"

Hex-encoded integer quantity.

blockHashstring or nullformat: "^0x[a-fA-F0-9]{64}$"

32-byte block hash.

blockNumberstring or nullformat: "^0x(?:0|[1-9a-fA-F][a-fA-F0-9]*)$"

Hex-encoded integer quantity.

transactionIndexstring or nullformat: "^0x(?:0|[1-9a-fA-F][a-fA-F0-9]*)$"

Hex-encoded integer quantity.

fromstringformat: "^0x[a-fA-F0-9]{40}$"

20-byte EVM address.

tostring or nullformat: "^0x[a-fA-F0-9]{40}$"

20-byte EVM address.

valuestringformat: "^0x(?:0|[1-9a-fA-F][a-fA-F0-9]*)$"

Hex-encoded integer quantity.

gasstringformat: "^0x(?:0|[1-9a-fA-F][a-fA-F0-9]*)$"

Hex-encoded integer quantity.

gasPricestringformat: "^0x(?:0|[1-9a-fA-F][a-fA-F0-9]*)$"

Hex-encoded integer quantity.

inputstringformat: "^0x([a-fA-F0-9]{2})*$"

Hex-encoded byte data.

typestringOptionalformat: "^0x(?:0|[1-9a-fA-F][a-fA-F0-9]*)$"

Hex-encoded integer quantity.

chainIdstringOptionalformat: "^0x(?:0|[1-9a-fA-F][a-fA-F0-9]*)$"

Hex-encoded integer quantity.

vstringOptionalformat: "^0x(?:0|[1-9a-fA-F][a-fA-F0-9]*)$"

Hex-encoded integer quantity.

rstringOptionalformat: "^0x(?:0|[1-9a-fA-F][a-fA-F0-9]*)$"

Hex-encoded integer quantity.

sstringOptionalformat: "^0x(?:0|[1-9a-fA-F][a-fA-F0-9]*)$"

Hex-encoded integer quantity.

maxFeePerGasstringOptionalformat: "^0x(?:0|[1-9a-fA-F][a-fA-F0-9]*)$"

Hex-encoded integer quantity.

maxPriorityFeePerGasstringOptionalformat: "^0x(?:0|[1-9a-fA-F][a-fA-F0-9]*)$"

Hex-encoded integer quantity.