Skip to main content
QUERY
operationById(id: Int64!): Operation

Arguments

id
Int64!
required

Operation ID (TOID).

Returns

Operation
id
Int64!

Operation ID (TOID): a globally unique, chronologically sortable identifier.

type
OperationType!

The operation's type.

operationXdr
String!

The operation body, base64-encoded XDR.

resultCode
String!

Operation result code in snake case (for example op_success, op_underfunded, op_bad_auth).

successful
Boolean!

Whether the operation succeeded.

ledgerNumber
UInt32!

Sequence number of the ledger that included this operation.

ledgerCreatedAt
Time!

Close time of the ledger that included this operation.

ingestedAt
Time!

When the indexer persisted this operation.

transaction
Transaction!

Transaction that contains this operation.

accounts
[Account!]!

Accounts and contracts that participated in this operation. Each one has this operation in its operations history.

stateChanges
StateChangeConnection!

State changes produced by this operation, in ledger order.

Arguments
first
Int

Return up to this many edges from the start of the list, or after after. Default 50 when neither first nor last is set. Maximum 100. Cannot be combined with last or before.

after
String

Cursor from a previous page. Returns the edges after it. Requires first; ignored without it.

last
Int

Return up to this many edges from the end of the list, or before before. Maximum 100. Cannot be combined with first or after.

before
String

Cursor from a previous page. Returns the edges before it. Requires last; ignored without it.

Query
Variables
Response