Skip to main content

Retrieve a Ledger Operations REST API Endpoint

Returns successful operations in a specific ledger

Updated on
Oct 04, 2023

Path Parameters

sequence
integer
REQUIRED

The sequence number of a specific ledger

Query Parameters

cursor
integer

A number that points to a specific location in a collection of responses which is pulled from the paging_token value of a record

order
string

The designation of the order of the records. It can be ascending or descending. By default it is set to ascending

limit
integer

The maximum number of records returned

include_failed
boolean

If true, it includes failed operations in results

join
string

It includes the transactions which created each of the operations in the response

Returns

_links
object

Links to related resources associated with the specific operation

self
object

The self link object which contains the following field:

href
string

A link to the current operation, allowing navigation to the details of the operation

effects
object

The effects link object which contains the following field:

href
string

A link to the effects associated with the operation

succeeds
object

The succeeds link object which contains the following field:

href
string

A link to effects with an order in descending order relative to this operation's order

precedes
object

The precedes link object which contains the following field:

href
string

A link to effects with an order in ascending order relative to this operation's order

transaction
object

The transaction link object which contains the following field:

href
string

A link to the transaction containing the operation, enabling access to the details of the parent transaction

id
string

The unique identifier of the operation

paging_token
string

A token used for pagination, providing a reference point for navigating between pages of operation records

transaction_successful
boolean

A boolean indicating whether the transaction associated with this operation was successful

source_account
string

The source account that initiated the operation

type
string

The type of operation

type_i
integer

The numeric code representing the operation type

created_at
string

The timestamp indicating when the operation was created

transaction_hash
string

The hash of the transaction containing the operation

amount
string

The amount associated with the operation

price
string

The price of the operation, indicating the exchange rate if applicable

price_r
object

The rational representation of the price, with a numerator (n) and a denominator (d)

n
integer

The numerator

d
integer

The denominator

buying_asset_type
string

The type of asset being bought in the operation

buying_asset_code
string

The asset code of the buying asset

buying_asset_issuer
string

The issuer of the buying asset

selling_asset_type
string

The type of asset being sold in the operation

selling_asset_code
string

The asset code of the selling asset

selling_asset_issuer
string

The issuer of the selling asset

offer_id
integer

The ID of the offer associated with the operation

Request
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free