transaction - Ethereum Classic
Query an Ethereum Classic transaction with the GraphQL API.
Returns a transaction by its hash, including sender, recipient, value, gas, status, and — when selected — its receipt logs, in a single query.
Schema
transaction(hash: Bytes32!): TransactionArguments
Argument
Type
Description
hash
Bytes32!
Transaction hash
Query
query {
transaction(hash: "0x3c8a1f5b9e2d4c7a6b0f1e3d5c8a2b4f6e9d0c1a3b5f7e9d2c4a6b8f0e1d3c5a7") {
hash
from { address }
to { address }
value
gasUsed
status
block { number }
}
}Example
Response
Response Fields
Field
Type
Description
from
Account
Sender account
to
Account
Recipient account
value
BigInt
Value transferred in wei
status
Long
1 on success, 0 on revert
Use Cases
Status Checks: Confirm a transaction succeeded
Wallet History: Render transaction detail with nested block
Receipts: Select logs alongside the transaction
Error Handling
Error
Message
Description
errors[]
transaction not found
No transaction matches the hash
403 / RBAC: access denied
Access denied
The GetBlock access token is missing or incorrect
Last updated
Was this helpful?