Node API
Supported Chains
API Reference
Stellar

Stellar

Stellar API is available on Web3 API platform (opens in a new tab).

Stellar is a layer-1 open-source, decentralized, peer-to-peer blockchain network that provides a framework for developers to create applications, issue assets, and connect to existing financial rails. Stellar is designed to enable creators, innovators, and developers to build projects on the network that can interoperate with each other.

For Stellar, we support blockchain interaction via the following methods:

Horizon REST methods

Accounts:

Assets:

Claimable Balances:

Effects:

Ledgers:

Liquidity Pools:

Offers:

Operations:

Trades:

Transactions:


Accounts

Users interact with the Stellar network through accounts. Everything else in the ledger—assets, offers, trustlines, etc.—are owned by accounts, and accounts must authorize all changes to the ledger through signed transactions.

GET /accounts

Retrieves all accounts matching a filter.

This endpoint lists accounts by one of four filters : signer, asset, liquidity pool or sponsor.

Parameters

  • sponsor (string; query): account ID of the sponsor. Every account in the response will either be sponsored by the given account ID or have a subentry (trust line, offer, or data entry) which is sponsored by the given account ID.
  • asset (any; query): an issued asset represented as “Code:IssuerAccountID”. Every account in the response will have a trust line for the given asset.
  • signer (string; query): account ID of the signer. Every account in the response will have the given account ID as a signer.
  • liqudity_pool (any; query): with this parameter, the results will include only accounts which have trust lines to the specified liquidity pool.
  • cursor (integer; query): a number that points to a specific location in a collection of responses and is pulled from the paging_token value of a record.
  • order (string; query): possible values: [asc, desc]. A designation of the order in which records should appear. Options include asc (ascending) or desc (descending). If this argument isn’t set, it defaults to asc.
  • limit (integer; query): the maximum number of records returned. The limit can range from 1 to 200 - an upper limit that is hardcoded in Horizon for performance reasons. If this argument isn’t designated, it defaults to 10.

Returns

{
  "_links": {
    "self": {
      "href": "string",
      "templated": true
    },
    "next": {
      "href": "string",
      "templated": true
    },
    "prev": {
      "href": "string",
      "templated": true
    }
  },
  "_embedded": {
    "records": [
      {
        "_links": {
          "self": {
            "href": "string",
            "templated": true
          },
          "transactions": {
            "href": "string",
            "templated": true
          },
          "operations": {
            "href": "string",
            "templated": true
          },
          "payments": {
            "href": "string",
            "templated": true
          },
          "effects": {
            "href": "string",
            "templated": true
          },
          "offers": {
            "href": "string",
            "templated": true
          },
          "trades": {
            "href": "string",
            "templated": true
          },
          "data": {
            "href": "string",
            "templated": true
          }
        },
        "id": "string",
        "account_id": "string",
        "sequence": "string",
        "sequence_ledger": 0,
        "sequence_time": "string",
        "subentry_count": 0,
        "inflation_destination": "string",
        "home_domain": "string",
        "last_modified_ledger": 0,
        "last_modified_time": "string",
        "thresholds": {
          "low_threshold": 0,
          "med_threshold": 0,
          "high_threshold": 0
        },
        "flags": {
          "auth_required": true,
          "auth_revocable": true,
          "auth_immutable": true,
          "auth_clawback_enabled": true
        },
        "balances": [
          {
            "balance": "string",
            "liquidity_pool_id": "string",
            "limit": "string",
            "buying_liabilites": "string",
            "selling_liabilites": "string",
            "sponser": "string",
            "last_modified_ledger": 0,
            "is_authorized": true,
            "is_authorized_to_maintain_liabilites": true,
            "is_clawback_enabled": true,
            "asset_type": "native"
          },
          {
            "balance": "string",
            "limit": "string",
            "buying_liabilites": "string",
            "selling_liabilites": "string",
            "sponser": "string",
            "last_modified_ledger": 0,
            "is_authorized": true,
            "is_authorized_to_maintain_liabilites": true,
            "is_clawback_enabled": true,
            "asset_type": "native",
            "asset_code": "string",
            "asset_issuer": "string"
          },
          {
            "liquidity_pool_id": "string",
            "asset_type": "liquidity_pool_shares",
            "balance": "string",
            "limit": "string",
            "last_modified_ledger": 0,
            "sponser": "string",
            "is_authorized": true,
            "is_authorized_to_maintain_liabilites": true,
            "is_clawback_enabled": true
          }
        ],
        "signers": [
          {
            "key": "string",
            "weight": 0,
            "type": "ed25519_public_key",
            "sponser": "string"
          }
        ],
        "data": {},
        "num_sponsoring": 0,
        "num_sponsered": 0,
        "sponser": "string",
        "paging_token": "string"
      }
    ]
  }
}

Request example

curl https://rpc.ankr.com/http/stellar_horizon/accounts?cursor=&limit=1&order=asc&signer=GDI73WJ4SX7LOG3XZDJC3KCK6ED6E5NBYK2JUBQSPBCNNWEG3ZN7T75U (opens in a new tab)

curl https://rpc.ankr.com/http/stellar_horizon/accounts{?signer,sponsor,asset,liquidity_pool,cursor,limit,order}

Response example

{
    "_links": {
        "self": {
            "href": "https://rpc.ankr.com/accounts?cursor=\u0026limit=2\u0026order=desc\u0026signer=GDI73WJ4SX7LOG3XZDJC3KCK6ED6E5NBYK2JUBQSPBCNNWEG3ZN7T75U"
        },
        "next": {
            "href": "https://rpc.ankr.com/accounts?cursor=GDI73WJ4SX7LOG3XZDJC3KCK6ED6E5NBYK2JUBQSPBCNNWEG3ZN7T75U\u0026limit=2\u0026order=desc\u0026signer=GDI73WJ4SX7LOG3XZDJC3KCK6ED6E5NBYK2JUBQSPBCNNWEG3ZN7T75U"
        },
        "prev": {
            "href": "https://rpc.ankr.com/accounts?cursor=GDI73WJ4SX7LOG3XZDJC3KCK6ED6E5NBYK2JUBQSPBCNNWEG3ZN7T75U\u0026limit=2\u0026order=asc\u0026signer=GDI73WJ4SX7LOG3XZDJC3KCK6ED6E5NBYK2JUBQSPBCNNWEG3ZN7T75U"
        }
    },
    "_embedded": {
        "records": [
            {
                "_links": {
                    "self": {
                        "href": "https://rpc.ankr.com/accounts/GDI73WJ4SX7LOG3XZDJC3KCK6ED6E5NBYK2JUBQSPBCNNWEG3ZN7T75U"
                    },
                    "transactions": {
                        "href": "https://rpc.ankr.com/accounts/GDI73WJ4SX7LOG3XZDJC3KCK6ED6E5NBYK2JUBQSPBCNNWEG3ZN7T75U/transactions{?cursor,limit,order}",
                        "templated": true
                    },
                    "operations": {
                        "href": "https://rpc.ankr.com/accounts/GDI73WJ4SX7LOG3XZDJC3KCK6ED6E5NBYK2JUBQSPBCNNWEG3ZN7T75U/operations{?cursor,limit,order}",
                        "templated": true
                    },
                    "payments": {
                        "href": "https://rpc.ankr.com/accounts/GDI73WJ4SX7LOG3XZDJC3KCK6ED6E5NBYK2JUBQSPBCNNWEG3ZN7T75U/payments{?cursor,limit,order}",
                        "templated": true
                    },
                    "effects": {
                        "href": "https://rpc.ankr.com/accounts/GDI73WJ4SX7LOG3XZDJC3KCK6ED6E5NBYK2JUBQSPBCNNWEG3ZN7T75U/effects{?cursor,limit,order}",
                        "templated": true
                    },
                    "offers": {
                        "href": "https://rpc.ankr.com/accounts/GDI73WJ4SX7LOG3XZDJC3KCK6ED6E5NBYK2JUBQSPBCNNWEG3ZN7T75U/offers{?cursor,limit,order}",
                        "templated": true
                    },
                    "trades": {
                        "href": "https://rpc.ankr.com/accounts/GDI73WJ4SX7LOG3XZDJC3KCK6ED6E5NBYK2JUBQSPBCNNWEG3ZN7T75U/trades{?cursor,limit,order}",
                        "templated": true
                    },
                    "data": {
                        "href": "https://rpc.ankr.com/accounts/GDI73WJ4SX7LOG3XZDJC3KCK6ED6E5NBYK2JUBQSPBCNNWEG3ZN7T75U/data/{key}",
                        "templated": true
                    }
                },
                "id": "GDI73WJ4SX7LOG3XZDJC3KCK6ED6E5NBYK2JUBQSPBCNNWEG3ZN7T75U",
                "account_id": "GDI73WJ4SX7LOG3XZDJC3KCK6ED6E5NBYK2JUBQSPBCNNWEG3ZN7T75U",
                "sequence": "24739097524306474",
                "subentry_count": 3,
                "inflation_destination": "GDI73WJ4SX7LOG3XZDJC3KCK6ED6E5NBYK2JUBQSPBCNNWEG3ZN7T75U",
                "home_domain": "tempo.eu.com",
                "last_modified_ledger": 46469501,
                "last_modified_time": null,
                "thresholds": {
                    "low_threshold": 5,
                    "med_threshold": 0,
                    "high_threshold": 0
                },
                "flags": {
                    "auth_required": false,
                    "auth_revocable": true,
                    "auth_immutable": false,
                    "auth_clawback_enabled": false
                },
                "balances": [
                    {
                        "balance": "0.0000000",
                        "limit": "922337203685.4775807",
                        "buying_liabilities": "0.0000000",
                        "selling_liabilities": "0.0000000",
                        "last_modified_ledger": 40074670,
                        "is_authorized": true,
                        "is_authorized_to_maintain_liabilities": true,
                        "asset_type": "credit_alphanum4",
                        "asset_code": "EURT",
                        "asset_issuer": "GAP5LETOV6YIE62YAM56STDANPRDO7ZFDBGSNHJQIYGGKSMOZAHOOS2S"
                    },
                    {
                        "balance": "0.0000000",
                        "limit": "922337203685.4775807",
                        "buying_liabilities": "0.0000000",
                        "selling_liabilities": "0.0000000",
                        "last_modified_ledger": 20213845,
                        "is_authorized": true,
                        "is_authorized_to_maintain_liabilities": true,
                        "asset_type": "credit_alphanum4",
                        "asset_code": "NGN",
                        "asset_issuer": "GCC4YLCR7DDWFCIPTROQM7EB2QMFD35XRWEQVIQYJQHVW6VE5MJZXIGW"
                    },
                    {
                        "balance": "0.0000000",
                        "limit": "922337203685.4775807",
                        "buying_liabilities": "0.0000000",
                        "selling_liabilities": "0.0000000",
                        "last_modified_ledger": 7877447,
                        "is_authorized": false,
                        "is_authorized_to_maintain_liabilities": false,
                        "asset_type": "credit_alphanum4",
                        "asset_code": "PHP",
                        "asset_issuer": "GBUQWP3BOUZX34TOND2QV7QQ7K7VJTG6VSE7WMLBTMDJLLAW7YKGU6EP"
                    },
                    {
                        "balance": "80.8945748",
                        "buying_liabilities": "0.0000000",
                        "selling_liabilities": "0.0000000",
                        "asset_type": "native"
                    }
                ],
                "signers": [
                    {
                        "weight": 10,
                        "key": "GDI73WJ4SX7LOG3XZDJC3KCK6ED6E5NBYK2JUBQSPBCNNWEG3ZN7T75U",
                        "type": "ed25519_public_key"
                    }
                ],
                "data": {},
                "num_sponsoring": 0,
                "num_sponsored": 0,
                "paging_token": "GDI73WJ4SX7LOG3XZDJC3KCK6ED6E5NBYK2JUBQSPBCNNWEG3ZN7T75U"
            }
        ]
    }
}

GET /accounts/{account_id}

Retrieves account info by account ID.

The single account endpoint provides information on a specific account. The balances section in the response will also list all the trust lines this account has established, including trust lines that haven’t been authorized yet.

Parameters

  • account_id (string; path; required): the account’s public key encoded in a base32 string representation.

Returns

{
  "_links": {
    "self": {
      "href": "string",
      "templated": true
    },
    "next": {
      "href": "string",
      "templated": true
    },
    "prev": {
      "href": "string",
      "templated": true
    }
  },
  "_embedded": {
    "records": [
      {
        "_links": {
          "self": {
            "href": "string",
            "templated": true
          },
          "transactions": {
            "href": "string",
            "templated": true
          },
          "operations": {
            "href": "string",
            "templated": true
          },
          "payments": {
            "href": "string",
            "templated": true
          },
          "effects": {
            "href": "string",
            "templated": true
          },
          "offers": {
            "href": "string",
            "templated": true
          },
          "trades": {
            "href": "string",
            "templated": true
          },
          "data": {
            "href": "string",
            "templated": true
          }
        },
        "id": "string",
        "account_id": "string",
        "sequence": "string",
        "sequence_ledger": 0,
        "sequence_time": "string",
        "subentry_count": 0,
        "inflation_destination": "string",
        "home_domain": "string",
        "last_modified_ledger": 0,
        "last_modified_time": "string",
        "thresholds": {
          "low_threshold": 0,
          "med_threshold": 0,
          "high_threshold": 0
        },
        "flags": {
          "auth_required": true,
          "auth_revocable": true,
          "auth_immutable": true,
          "auth_clawback_enabled": true
        },
        "balances": [
          {
            "balance": "string",
            "liquidity_pool_id": "string",
            "limit": "string",
            "buying_liabilites": "string",
            "selling_liabilites": "string",
            "sponser": "string",
            "last_modified_ledger": 0,
            "is_authorized": true,
            "is_authorized_to_maintain_liabilites": true,
            "is_clawback_enabled": true,
            "asset_type": "native"
          },
          {
            "balance": "string",
            "limit": "string",
            "buying_liabilites": "string",
            "selling_liabilites": "string",
            "sponser": "string",
            "last_modified_ledger": 0,
            "is_authorized": true,
            "is_authorized_to_maintain_liabilites": true,
            "is_clawback_enabled": true,
            "asset_type": "native",
            "asset_code": "string",
            "asset_issuer": "string"
          },
          {
            "liquidity_pool_id": "string",
            "asset_type": "liquidity_pool_shares",
            "balance": "string",
            "limit": "string",
            "last_modified_ledger": 0,
            "sponser": "string",
            "is_authorized": true,
            "is_authorized_to_maintain_liabilites": true,
            "is_clawback_enabled": true
          }
        ],
        "signers": [
          {
            "key": "string",
            "weight": 0,
            "type": "ed25519_public_key",
            "sponser": "string"
          }
        ],
        "data": {},
        "num_sponsoring": 0,
        "num_sponsered": 0,
        "sponser": "string",
        "paging_token": "string"
      }
    ]
  }
}

Request example

curl https://rpc.ankr.com/http/stellar_horizon/accounts/{account_id}

Response example

{
    "_links": {
        "self": {
            "href": "https://rpc.ankr.com/accounts/GAYOLLLUIZE4DZMBB2ZBKGBUBZLIOYU6XFLW37GBP2VZD3ABNXCW4BVA"
        },
        "transactions": {
            "href": "https://rpc.ankr.com/accounts/GAYOLLLUIZE4DZMBB2ZBKGBUBZLIOYU6XFLW37GBP2VZD3ABNXCW4BVA/transactions{?cursor,limit,order}",
            "templated": true
        },
        "operations": {
            "href": "https://rpc.ankr.com/accounts/GAYOLLLUIZE4DZMBB2ZBKGBUBZLIOYU6XFLW37GBP2VZD3ABNXCW4BVA/operations{?cursor,limit,order}",
            "templated": true
        },
        "payments": {
            "href": "https://rpc.ankr.com/accounts/GAYOLLLUIZE4DZMBB2ZBKGBUBZLIOYU6XFLW37GBP2VZD3ABNXCW4BVA/payments{?cursor,limit,order}",
            "templated": true
        },
        "effects": {
            "href": "https://rpc.ankr.com/accounts/GAYOLLLUIZE4DZMBB2ZBKGBUBZLIOYU6XFLW37GBP2VZD3ABNXCW4BVA/effects{?cursor,limit,order}",
            "templated": true
        },
        "offers": {
            "href": "https://rpc.ankr.com/accounts/GAYOLLLUIZE4DZMBB2ZBKGBUBZLIOYU6XFLW37GBP2VZD3ABNXCW4BVA/offers{?cursor,limit,order}",
            "templated": true
        },
        "trades": {
            "href": "https://rpc.ankr.com/accounts/GAYOLLLUIZE4DZMBB2ZBKGBUBZLIOYU6XFLW37GBP2VZD3ABNXCW4BVA/trades{?cursor,limit,order}",
            "templated": true
        },
        "data": {
            "href": "https://rpc.ankr.com/accounts/GAYOLLLUIZE4DZMBB2ZBKGBUBZLIOYU6XFLW37GBP2VZD3ABNXCW4BVA/data/{key}",
            "templated": true
        }
    },
    "id": "GAYOLLLUIZE4DZMBB2ZBKGBUBZLIOYU6XFLW37GBP2VZD3ABNXCW4BVA",
    "account_id": "GAYOLLLUIZE4DZMBB2ZBKGBUBZLIOYU6XFLW37GBP2VZD3ABNXCW4BVA",
    "sequence": "120192344968520093",
    "subentry_count": 6,
    "last_modified_ledger": 48375369,
    "last_modified_time": null,
    "thresholds": {
        "low_threshold": 0,
        "med_threshold": 0,
        "high_threshold": 0
    },
    "flags": {
        "auth_required": false,
        "auth_revocable": false,
        "auth_immutable": false,
        "auth_clawback_enabled": false
    },
    "balances": [
        {
            "balance": "1.0000000",
            "limit": "922337203685.4775807",
            "buying_liabilities": "0.0000000",
            "selling_liabilities": "0.0000000",
            "last_modified_ledger": 27984972,
            "is_authorized": true,
            "is_authorized_to_maintain_liabilities": true,
            "asset_type": "credit_alphanum4",
            "asset_code": "BB1",
            "asset_issuer": "GD5J6HLF5666X4AZLTFTXLY46J5SW7EXRKBLEYPJP33S33MXZGV6CWFN"
        },
        {
            "balance": "20.0000000",
            "limit": "922337203685.4775807",
            "buying_liabilities": "0.0000000",
            "selling_liabilities": "0.0000000",
            "last_modified_ledger": 27984988,
            "is_authorized": true,
            "is_authorized_to_maintain_liabilities": true,
            "asset_type": "credit_alphanum4",
            "asset_code": "CNY",
            "asset_issuer": "GAREELUB43IRHWEASCFBLKHURCGMHE5IF6XSE7EXDLACYHGRHM43RFOX"
        },
        {
            "balance": "3.0000008",
            "limit": "922337203685.4775807",
            "buying_liabilities": "0.0000000",
            "selling_liabilities": "0.0000000",
            "last_modified_ledger": 34781349,
            "is_authorized": true,
            "is_authorized_to_maintain_liabilities": true,
            "asset_type": "credit_alphanum4",
            "asset_code": "EURT",
            "asset_issuer": "GAP5LETOV6YIE62YAM56STDANPRDO7ZFDBGSNHJQIYGGKSMOZAHOOS2S"
        },
        {
            "balance": "194.9999990",
            "limit": "922337203685.4775807",
            "buying_liabilities": "0.0000000",
            "selling_liabilities": "0.0000000",
            "last_modified_ledger": 28524340,
            "is_authorized": true,
            "is_authorized_to_maintain_liabilities": true,
            "asset_type": "credit_alphanum4",
            "asset_code": "NGNT",
            "asset_issuer": "GAWODAROMJ33V5YDFY3NPYTHVYQG7MJXVJ2ND3AOGIHYRWINES6ACCPD"
        },
        {
            "balance": "2.5000000",
            "limit": "922337203685.4775807",
            "buying_liabilities": "0.0000000",
            "selling_liabilities": "0.0000000",
            "last_modified_ledger": 29107236,
            "is_authorized": true,
            "is_authorized_to_maintain_liabilities": true,
            "asset_type": "credit_alphanum4",
            "asset_code": "USD",
            "asset_issuer": "GBNLJIYH34UWO5YZFA3A3HD3N76R6DOI33N4JONUOHEEYZYCAYTEJ5AK"
        },
        {
            "balance": "3.1200000",
            "limit": "922337203685.4775807",
            "buying_liabilities": "0.0000000",
            "selling_liabilities": "0.0000000",
            "last_modified_ledger": 29882476,
            "is_authorized": true,
            "is_authorized_to_maintain_liabilities": true,
            "asset_type": "credit_alphanum4",
            "asset_code": "USD",
            "asset_issuer": "GDUKMGUGDZQK6YHYA5Z6AY2G4XDSZPSZ3SW5UN3ARVMO6QSRDWP5YLEX"
        },
        {
            "balance": "15.7298615",
            "buying_liabilities": "0.0000000",
            "selling_liabilities": "0.0000000",
            "asset_type": "native"
        }
    ],
    "signers": [
        {
            "weight": 1,
            "key": "GAYOLLLUIZE4DZMBB2ZBKGBUBZLIOYU6XFLW37GBP2VZD3ABNXCW4BVA",
            "type": "ed25519_public_key"
        }
    ],
    "data": {},
    "num_sponsoring": 0,
    "num_sponsored": 0,
    "paging_token": "GAYOLLLUIZE4DZMBB2ZBKGBUBZLIOYU6XFLW37GBP2VZD3ABNXCW4BVA"
}

GET /accounts/{account_id}/transactions

Parameters

  • account_id (string; path; required): the account’s public key encoded in a base32 string representation.
  • cursor (integer; query): a number that points to a specific location in a collection of responses and is pulled from the paging_token value of a record.
  • order (string; query): a designation of the order in which records should appear. Options include asc (ascending) or desc (descending). If this argument isn’t set, it defaults to asc.
  • limit (integer; query): the maximum number of records returned. The limit can range from 1 to 200 - an upper limit that is hardcoded in Horizon for performance reasons. If this argument isn’t designated, it defaults to 10.
  • include_failed (boolean; query): set to true to include failed operations in results. Options include true and false.

Returns

{
  "_links": {
    "self": {
      "href": "string",
      "templated": true
    },
    "next": {
      "href": "string",
      "templated": true
    },
    "prev": {
      "href": "string",
      "templated": true
    }
  },
  "_embedded": {
    "records": [
      {
        "memo": "string",
        "_links": {
          "self": {
            "href": "string",
            "templated": true
          },
          "account": {
            "href": "string",
            "templated": true
          },
          "ledger": {
            "href": "string",
            "templated": true
          },
          "operations": {
            "href": "string",
            "templated": true
          },
          "effects": {
            "href": "string",
            "templated": true
          },
          "precedes": {
            "href": "string",
            "templated": true
          },
          "succeeds": {
            "href": "string",
            "templated": true
          },
          "transaction": {
            "href": "string",
            "templated": true
          }
        },
        "id": "string",
        "paging_token": "string",
        "successful": true,
        "hash": "string",
        "ledger": 0,
        "created_at": "string",
        "source_account": "string",
        "account_muxed": "string",
        "account_muxed_id": "string",
        "source_account_sequence": "string",
        "fee_account": "string",
        "fee_account_muxed": "string",
        "fee_account_muxed_id": "string",
        "fee_charged": "string",
        "max_fee": "string",
        "operation_count": 0,
        "envelope_xdr": "string",
        "result_xdr": "string",
        "result_meta_xdr": "string",
        "fee_meta_xdr": "string",
        "memo_type": "string",
        "signatures": [
          "string"
        ],
        "valid_after": "string",
        "valid_before": "string",
        "preconditions": {
          "timebounds": {
            "min_time": "string",
            "max_time": "string"
          },
          "ledgerbounds": {
            "min_ledger": "string",
            "max_ledger": "string"
          },
          "min_account_sequence": "string",
          "min_account_sequence_age": "string",
          "min_account_sequence_ledger_gap": 0,
          "extra_signers": [
            "string"
          ]
        },
        "fee_bump_transaction": {
          "hash": "string",
          "signatures": [
            "string"
          ]
        },
        "inner_transaction": {
          "hash": "string",
          "signatures": [
            "string"
          ],
          "max_fee": "string"
        }
      }
    ]
  }
}

Request example

curl https://rpc.ankr.com/http/stellar_horizon/accounts/{account_id}/transactions{?cursor,limit,order}

Response example

{
  "_links": {
    "self": {
      "href": "https://rpc.ankr.com/accounts/GBVFTZL5HIPT4PFQVTZVIWR77V7LWYCXU4CLYWWHHOEXB64XPG5LDMTU/transactions?cursor=\u0026limit=1\u0026order=asc"
    },
    "next": {
      "href": "https://rpc.ankr.com/accounts/GBVFTZL5HIPT4PFQVTZVIWR77V7LWYCXU4CLYWWHHOEXB64XPG5LDMTU/transactions?cursor=94658837230923776\u0026limit=1\u0026order=asc"
    },
    "prev": {
      "href": "https://rpc.ankr.com/accounts/GBVFTZL5HIPT4PFQVTZVIWR77V7LWYCXU4CLYWWHHOEXB64XPG5LDMTU/transactions?cursor=94658837230923776\u0026limit=1\u0026order=desc"
    }
  },
  "_embedded": {
    "records": [
      {
        "memo": "",
        "memo_bytes": "",
        "_links": {
          "self": {
            "href": "https://rpc.ankr.com/transactions/4826a3d41a5a795bf795767d0fb5e39c4abbcf695cf888b3578aa126b5b257ee"
          },
          "account": {
            "href": "https://rpc.ankr.com/accounts/GBYSOAM7D42RMUN4LCKCFYNXZU3F7TJVKD2NMR672J4372BCH6DE4BKR"
          },
          "ledger": {
            "href": "https://rpc.ankr.com/ledgers/22039478"
          },
          "operations": {
            "href": "https://rpc.ankr.com/transactions/4826a3d41a5a795bf795767d0fb5e39c4abbcf695cf888b3578aa126b5b257ee/operations{?cursor,limit,order}",
            "templated": true
          },
          "effects": {
            "href": "https://rpc.ankr.com/transactions/4826a3d41a5a795bf795767d0fb5e39c4abbcf695cf888b3578aa126b5b257ee/effects{?cursor,limit,order}",
            "templated": true
          },
          "precedes": {
            "href": "https://rpc.ankr.com/transactions?order=asc\u0026cursor=94658837230923776"
          },
          "succeeds": {
            "href": "https://rpc.ankr.com/transactions?order=desc\u0026cursor=94658837230923776"
          },
          "transaction": {
            "href": "https://rpc.ankr.com/transactions/4826a3d41a5a795bf795767d0fb5e39c4abbcf695cf888b3578aa126b5b257ee"
          }
        },
        "id": "4826a3d41a5a795bf795767d0fb5e39c4abbcf695cf888b3578aa126b5b257ee",
        "paging_token": "94658837230923776",
        "successful": true,
        "hash": "4826a3d41a5a795bf795767d0fb5e39c4abbcf695cf888b3578aa126b5b257ee",
        "ledger": 22039478,
        "created_at": "2019-01-18T14:40:47Z",
        "source_account": "GBYSOAM7D42RMUN4LCKCFYNXZU3F7TJVKD2NMR672J4372BCH6DE4BKR",
        "source_account_sequence": "90296735301107721",
        "fee_account": "GBYSOAM7D42RMUN4LCKCFYNXZU3F7TJVKD2NMR672J4372BCH6DE4BKR",
        "fee_charged": "100",
        "max_fee": "100",
        "operation_count": 1,
        "envelope_xdr": "AAAAAHEnAZ8fNRZRvFiUIuG3zTZfzTVQ9NZH39J5v+giP4ZOAAAAZAFAzGcAAAAJAAAAAQAAAAAAAAAAAAAAAFxB5cMAAAABAAAAAAAAAAEAAAAAAAAAAAAAAABqWeV9Oh8+PLCs81RaP/1+u2BXpwS8Wsc7iXD7l3m6sQAAAAAC+vCAAAAAAAAAAAEiP4ZOAAAAQO421wcb/JYfBpnYEJzHpMyQnrM8rHd4PUoyHXpPlvQAUGzARqwbX8hcLSM4tlk51AwbuZOaZfWCaFQfzFZJuAA=",
        "result_xdr": "AAAAAAAAAGQAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAA=",
        "result_meta_xdr": "AAAAAgAAAAIAAAADAVBLtgAAAAAAAAAAcScBnx81FlG8WJQi4bfNNl/NNVD01kff0nm/6CI/hk4AAAAAI9MEZAFAzGcAAAAIAAAAAAAAAAEAAAAA7Nxp7lmV7taqQfqoSP+tlqjOHWeANaQYFqhDkCQERZQAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAVBLtgAAAAAAAAAAcScBnx81FlG8WJQi4bfNNl/NNVD01kff0nm/6CI/hk4AAAAAI9MEZAFAzGcAAAAJAAAAAAAAAAEAAAAA7Nxp7lmV7taqQfqoSP+tlqjOHWeANaQYFqhDkCQERZQAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAAAwAAAAMBUEu2AAAAAAAAAABxJwGfHzUWUbxYlCLht802X801UPTWR9/Seb/oIj+GTgAAAAAj0wRkAUDMZwAAAAkAAAAAAAAAAQAAAADs3GnuWZXu1qpB+qhI/62WqM4dZ4A1pBgWqEOQJARFlAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEBUEu2AAAAAAAAAABxJwGfHzUWUbxYlCLht802X801UPTWR9/Seb/oIj+GTgAAAAAg2BPkAUDMZwAAAAkAAAAAAAAAAQAAAADs3GnuWZXu1qpB+qhI/62WqM4dZ4A1pBgWqEOQJARFlAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAABUEu2AAAAAAAAAABqWeV9Oh8+PLCs81RaP/1+u2BXpwS8Wsc7iXD7l3m6sQAAAAAC+vCAAVBLtgAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAA=",
        "fee_meta_xdr": "AAAAAgAAAAMBUCemAAAAAAAAAABxJwGfHzUWUbxYlCLht802X801UPTWR9/Seb/oIj+GTgAAAAAj0wTIAUDMZwAAAAgAAAAAAAAAAQAAAADs3GnuWZXu1qpB+qhI/62WqM4dZ4A1pBgWqEOQJARFlAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEBUEu2AAAAAAAAAABxJwGfHzUWUbxYlCLht802X801UPTWR9/Seb/oIj+GTgAAAAAj0wRkAUDMZwAAAAgAAAAAAAAAAQAAAADs3GnuWZXu1qpB+qhI/62WqM4dZ4A1pBgWqEOQJARFlAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==",
        "memo_type": "text",
        "signatures": [
          "7jbXBxv8lh8GmdgQnMekzJCeszysd3g9SjIdek+W9ABQbMBGrBtfyFwtIzi2WTnUDBu5k5pl9YJoVB/MVkm4AA=="
        ],
        "valid_after": "1970-01-01T00:00:00Z",
        "valid_before": "2019-01-18T14:42:11Z",
        "preconditions": {
          "timebounds": {
            "min_time": "0",
            "max_time": "1547822531"
          }
        }
      }
    ]
  }
}

GET /accounts/{account_id}/operations

Retrieves an account's operations.

The endpoint represents successful operations for a given account and can be used in streaming mode. Streaming mode allows you to listen for new operations for this account as they are added to the Stellar ledger. If called in streaming mode, Horizon will start at the earliest known operation unless a cursor is set, in which case it will start from that cursor. By setting the cursor value to now, you can stream operations created since your request time.

Parameters

  • account_id (string; path; required): the account’s public key encoded in a base32 string representation.
  • cursor (integer; query): a number that points to a specific location in a collection of responses and is pulled from the paging_token value of a record.
  • order (string; query): a designation of the order in which records should appear. Options include asc (ascending) or desc (descending). If this argument isn’t set, it defaults to asc.
  • limit (integer; query): the maximum number of records returned. The limit can range from 1 to 200 - an upper limit that is hardcoded in Horizon for performance reasons. If this argument isn’t designated, it defaults to 10.
  • include_failed (boolean; query): set to true to include failed operations in results. Options include true and false.
  • join (any; query): set to transactions to include the transactions which created each of the operations in the response.

Returns

{
  "_links": {
    "self": {
      "href": "string",
      "templated": true
    },
    "next": {
      "href": "string",
      "templated": true
    },
    "prev": {
      "href": "string",
      "templated": true
    },
    "transaction": {
      "href": "string",
      "templated": true
    },
    "effects": {
      "href": "string",
      "templated": true
    },
    "succeeds": {
      "href": "string",
      "templated": true
    },
    "precedes": {
      "href": "string",
      "templated": true
    }
  },
  "id": "string",
  "paging_token": "string",
  "transaction_successful": true,
  "source_account": "string",
  "type": "create_account",
  "type_i": 0,
  "created_at": "string",
  "transaction_hash": "string",
  "starting_balance": "string",
  "funder": "string",
  "account": "string"
}

Request example

curl https://rpc.ankr.com/http/stellar_horizon/accounts/{account_id}/operations

Response example

{
    "_links": {
        "self": {
            "href": "https://rpc.ankr.com/accounts/GAYOLLLUIZE4DZMBB2ZBKGBUBZLIOYU6XFLW37GBP2VZD3ABNXCW4BVA/operations?cursor=120194466505179137\u0026limit=10\u0026order=asc"
        },
        "next": {
            "href": "https://rpc.ankr.com/accounts/GAYOLLLUIZE4DZMBB2ZBKGBUBZLIOYU6XFLW37GBP2VZD3ABNXCW4BVA/operations?cursor=213638377747542068\u0026limit=10\u0026order=asc"
        },
        "prev": {
            "href": "https://rpc.ankr.com/accounts/GAYOLLLUIZE4DZMBB2ZBKGBUBZLIOYU6XFLW37GBP2VZD3ABNXCW4BVA/operations?cursor=213638377747542068\u0026limit=10\u0026order=desc"
        }
    },
    "_embedded": {
        "records": [
            {
                "_links": {
                    "self": {
                        "href": "https://rpc.ankr.com/operations/213638377747542068"
                    },
                    "transaction": {
                        "href": "https://rpc.ankr.com/transactions/64946c9e2ea9e30bf076bbc92068dcfdafcfaaf0fa77f4fee1060858751b9974"
                    },
                    "effects": {
                        "href": "https://rpc.ankr.com/operations/213638377747542068/effects"
                    },
                    "succeeds": {
                        "href": "https://rpc.ankr.com/effects?order=desc\u0026cursor=213638377747542068"
                    },
                    "precedes": {
                        "href": "https://rpc.ankr.com/effects?order=asc\u0026cursor=213638377747542068"
                    }
                },
                "id": "213638377747542068",
                "paging_token": "213638377747542068",
                "transaction_successful": true,
                "source_account": "GCAHDBWNRTRNYGE5CX4RDVC74BVW3DOZOP5U6NMH3HLWTV46QZBZPFH4",
                "type": "payment",
                "type_i": 1,
                "created_at": "2024-01-02T18:20:33Z",
                "transaction_hash": "64946c9e2ea9e30bf076bbc92068dcfdafcfaaf0fa77f4fee1060858751b9974",
                "asset_type": "native",
                "from": "GCAHDBWNRTRNYGE5CX4RDVC74BVW3DOZOP5U6NMH3HLWTV46QZBZPFH4",
                "to": "GAYOLLLUIZE4DZMBB2ZBKGBUBZLIOYU6XFLW37GBP2VZD3ABNXCW4BVA",
                "amount": "0.0610489"
            }
        ]
    }
}

GET /accounts/{account_id}/payments

Retrieves an account's payments.

This endpoint represents successful payments for a given account and can be used in streaming mode. Streaming mode allows you to listen for new payments for this account as they are added to the Stellar ledger. If called in streaming mode, Horizon will start at the earliest known payment unless a cursor is set, in which case it will start from that cursor. By setting the cursor value to now, you can stream payments created since your request time.

Parameters

  • account_id (string; path; required): the account’s public key encoded in a base32 string representation.
  • cursor (integer; query): a number that points to a specific location in a collection of responses and is pulled from the paging_token value of a record.
  • order (string; query): a designation of the order in which records should appear. Options include asc (ascending) or desc (descending). If this argument isn’t set, it defaults to asc.
  • limit (integer; query): the maximum number of records returned. The limit can range from 1 to 200 - an upper limit that is hardcoded in Horizon for performance reasons. If this argument isn’t designated, it defaults to 10.
  • include_failed (boolean; query): set to true to include failed operations in results. Options include true and false.
  • join (any; query): set to transactions to include the transactions which created each of the operations in the response.

Returns

{
  "_links": {
    "self": {
      "href": "string",
      "templated": true
    },
    "next": {
      "href": "string",
      "templated": true
    },
    "prev": {
      "href": "string",
      "templated": true
    }
  },
  "_embedded": {
    "records": [
      {
        "_links": {
          "self": {
            "href": "string",
            "templated": true
          },
          "transaction": {
            "href": "string",
            "templated": true
          },
          "effects": {
            "href": "string",
            "templated": true
          },
          "succeeds": {
            "href": "string",
            "templated": true
          },
          "precedes": {
            "href": "string",
            "templated": true
          }
        },
        "id": "string",
        "paging_token": "string",
        "transaction_successful": true,
        "source_account": "string",
        "type": "payment",
        "type_i": "string",
        "created_at": "string",
        "transaction_hash": "string",
        "asset_type": "string",
        "asset_issuer": "string",
        "from": "string",
        "to": "string",
        "amount": "string"
      }
    ]
  }
}

Request example

curl https://rpc.ankr.com/http/stellar_horizon/accounts/{account_id}/payments{?cursor,limit,order}

Response example

{
    "_links": {
        "self": {
            "href": "https://rpc.ankr.com/accounts/GAYOLLLUIZE4DZMBB2ZBKGBUBZLIOYU6XFLW37GBP2VZD3ABNXCW4BVA/payments?cursor=148289273518190684\u0026limit=10\u0026order=asc"
        },
        "next": {
            "href": "https://rpc.ankr.com/accounts/GAYOLLLUIZE4DZMBB2ZBKGBUBZLIOYU6XFLW37GBP2VZD3ABNXCW4BVA/payments?cursor=213638377747542068\u0026limit=10\u0026order=asc"
        },
        "prev": {
            "href": "https://rpc.ankr.com/accounts/GAYOLLLUIZE4DZMBB2ZBKGBUBZLIOYU6XFLW37GBP2VZD3ABNXCW4BVA/payments?cursor=213638377747542068\u0026limit=10\u0026order=desc"
        }
    },
    "_embedded": {
        "records": [
            {
                "_links": {
                    "self": {
                        "href": "https://rpc.ankr.com/operations/213638377747542068"
                    },
                    "transaction": {
                        "href": "https://rpc.ankr.com/transactions/64946c9e2ea9e30bf076bbc92068dcfdafcfaaf0fa77f4fee1060858751b9974"
                    },
                    "effects": {
                        "href": "https://rpc.ankr.com/operations/213638377747542068/effects"
                    },
                    "succeeds": {
                        "href": "https://rpc.ankr.com/effects?order=desc\u0026cursor=213638377747542068"
                    },
                    "precedes": {
                        "href": "https://rpc.ankr.com/effects?order=asc\u0026cursor=213638377747542068"
                    }
                },
                "id": "213638377747542068",
                "paging_token": "213638377747542068",
                "transaction_successful": true,
                "source_account": "GCAHDBWNRTRNYGE5CX4RDVC74BVW3DOZOP5U6NMH3HLWTV46QZBZPFH4",
                "type": "payment",
                "type_i": 1,
                "created_at": "2024-01-02T18:20:33Z",
                "transaction_hash": "64946c9e2ea9e30bf076bbc92068dcfdafcfaaf0fa77f4fee1060858751b9974",
                "asset_type": "native",
                "from": "GCAHDBWNRTRNYGE5CX4RDVC74BVW3DOZOP5U6NMH3HLWTV46QZBZPFH4",
                "to": "GAYOLLLUIZE4DZMBB2ZBKGBUBZLIOYU6XFLW37GBP2VZD3ABNXCW4BVA",
                "amount": "0.0610489"
            }
        ]
    }
}

GET /accounts/{account_id}/effects

Retrieves an account's effects.

This endpoint returns the effects of a specific account and can be used in streaming mode. Streaming mode allows you to listen for new effects for this account as they are added to the Stellar ledger. If called in streaming mode, Horizon will start at the earliest known effect unless a cursor is set, in which case it will start from that cursor. By setting the cursor value to now, you can stream effects created since your request time.

Parameters

  • account_id (string; path; required): the account’s public key encoded in a base32 string representation.
  • cursor (integer; query): a number that points to a specific location in a collection of responses and is pulled from the paging_token value of a record.
  • order (string; query): a designation of the order in which records should appear. Options include asc (ascending) or desc (descending). If this argument isn’t set, it defaults to asc.
  • limit (integer; query): the maximum number of records returned. The limit can range from 1 to 200 - an upper limit that is hardcoded in Horizon for performance reasons. If this argument isn’t designated, it defaults to 10.

Returns

{
  "_links": {
    "self": {
      "href": "string",
      "templated": true
    },
    "next": {
      "href": "string",
      "templated": true
    },
    "prev": {
      "href": "string",
      "templated": true
    },
    "transaction": {
      "href": "string",
      "templated": true
    },
    "effects": {
      "href": "string",
      "templated": true
    },
    "succeeds": {
      "href": "string",
      "templated": true
    },
    "precedes": {
      "href": "string",
      "templated": true
    }
  },
  "id": "string",
  "paging_token": "string",
  "transaction_successful": true,
  "source_account": "string",
  "type": "create_account",
  "type_i": 0,
  "created_at": "string",
  "transaction_hash": "string",
  "starting_balance": "string",
  "funder": "string",
  "account": "string"
}

Request example

curl https://rpc.ankr.com/http/stellar_horizon/accounts/{account_id}/effects{?cursor,limit,order}

Response example

{
    "_links": {
        "self": {
            "href": "https://rpc.ankr.com/accounts/GCNL55IJTH2HX26HLNIGYD2JIQLTBAQL3SVPNZA6PXK7NAVHU423WOTE/effects?cursor=\u0026limit=1\u0026order=asc"
        },
        "next": {
            "href": "https://rpc.ankr.com/accounts/GCNL55IJTH2HX26HLNIGYD2JIQLTBAQL3SVPNZA6PXK7NAVHU423WOTE/effects?cursor=110694007436259329-1\u0026limit=1\u0026order=asc"
        },
        "prev": {
            "href": "https://rpc.ankr.com/accounts/GCNL55IJTH2HX26HLNIGYD2JIQLTBAQL3SVPNZA6PXK7NAVHU423WOTE/effects?cursor=110694007436259329-1\u0026limit=1\u0026order=desc"
        }
    },
    "_embedded": {
        "records": [
            {
                "_links": {
                    "operation": {
                        "href": "https://rpc.ankr.com/operations/110694007436259329"
                    },
                    "succeeds": {
                        "href": "https://rpc.ankr.com/effects?order=desc\u0026cursor=110694007436259329-1"
                    },
                    "precedes": {
                        "href": "https://rpc.ankr.com/effects?order=asc\u0026cursor=110694007436259329-1"
                    }
                },
                "id": "0110694007436259329-0000000001",
                "paging_token": "110694007436259329-1",
                "account": "GCNL55IJTH2HX26HLNIGYD2JIQLTBAQL3SVPNZA6PXK7NAVHU423WOTE",
                "type": "account_created",
                "type_i": 0,
                "created_at": "2019-09-11T13:16:44Z",
                "starting_balance": "1.0000000"
            }
        ]
    }
}

GET /accounts/{account_id}/offers

Retrieves an account's offers.

Parameters

  • account_id (string; path; required): the account’s public key encoded in a base32 string representation.
  • cursor (integer; query): a number that points to a specific location in a collection of responses and is pulled from the paging_token value of a record.
  • order (string; query): a designation of the order in which records should appear. Options include asc (ascending) or desc (descending). If this argument isn’t set, it defaults to asc.
  • limit (integer; query): the maximum number of records returned. The limit can range from 1 to 200 - an upper limit that is hardcoded in Horizon for performance reasons. If this argument isn’t designated, it defaults to 10.

Returns

{
  "_links": {
    "self": {
      "href": "string",
      "templated": true
    },
    "next": {
      "href": "string",
      "templated": true
    },
    "prev": {
      "href": "string",
      "templated": true
    }
  },
  "_embedded": {
    "records": [
      {
        "_links": {
          "self": {
            "href": "string",
            "templated": true
          },
          "offer_maker": {
            "href": "string",
            "templated": true
          }
        },
        "id": "string",
        "paging_token": "string",
        "seller": "string",
        "selling": {
          "asset_type": "string",
          "asset_code": "string",
          "asset_issuer": "string"
        },
        "buying": {
          "asset_type": "string",
          "asset_code": "string",
          "asset_issuer": "string"
        },
        "amount": "string",
        "price_r": {
          "n": 0,
          "d": 0
        },
        "price": "string",
        "last_modified_ledger": 0,
        "last_modified_time": "string",
        "sponser": "string"
      }
    ]
  }
}

Request example

curl https://rpc.ankr.com/http/stellar_horizon/accounts/{account_id}/offers{?cursor,limit,order}

Response example

{
    "_links": {
        "self": {
            "href": "https://rpc.ankr.com/accounts/GD3CJYUTZAY6JQF4CEI6Z7VW5O6VNGKZTBYUECTOJPEDTB7I2HZSPI2K/offers?cursor=164943216\u0026limit=10\u0026order=asc"
        },
        "next": {
            "href": "https://rpc.ankr.com/accounts/GD3CJYUTZAY6JQF4CEI6Z7VW5O6VNGKZTBYUECTOJPEDTB7I2HZSPI2K/offers?cursor=164943216\u0026limit=10\u0026order=asc"
        },
        "prev": {
            "href": "https://rpc.ankr.com/accounts/GD3CJYUTZAY6JQF4CEI6Z7VW5O6VNGKZTBYUECTOJPEDTB7I2HZSPI2K/offers?cursor=164943216\u0026limit=10\u0026order=desc"
        }
    },
    "_embedded": {
        "records": []
    }
}

GET /accounts/{account_id}/trades

Retrieves an account's trades.

This endpoint represents all trades for a given account and can be used in streaming mode. Streaming mode allows you to listen for trades for this account as they are added to the Stellar ledger. If called in streaming mode, Horizon will start at the earliest known trade unless a cursor is set, in which case it will start from that cursor. By setting the cursor value to now, you can stream trades created since your request time.

Parameters

  • account_id (string; path; required): the account’s public key encoded in a base32 string representation.
  • cursor (integer; query): a number that points to a specific location in a collection of responses and is pulled from the paging_token value of a record.
  • order (string; query): a designation of the order in which records should appear. Options include asc (ascending) or desc (descending). If this argument isn’t set, it defaults to asc.
  • limit (integer; query): the maximum number of records returned. The limit can range from 1 to 200 - an upper limit that is hardcoded in Horizon for performance reasons. If this argument isn’t designated, it defaults to 10.

Returns

{
  "_links": {
    "self": {
      "href": "string",
      "templated": true
    },
    "next": {
      "href": "string",
      "templated": true
    },
    "prev": {
      "href": "string",
      "templated": true
    }
  },
  "_embedded": {
    "records": [
      {
        "_links": {
          "self": {
            "href": "string",
            "templated": true
          },
          "base": {
            "href": "string",
            "templated": true
          },
          "counter": {
            "href": "string",
            "templated": true
          },
          "operation": {
            "href": "string",
            "templated": true
          }
        },
        "id": "string",
        "paging_token": "string",
        "ledger_close_time": "string",
        "offer_id": "string",
        "trade_type": "string",
        "liquidity_pool_fee_bp": 0,
        "base_liquidity_pool_id": "string",
        "base_offer_id": "string",
        "base_account": "string",
        "base_amount": "string",
        "base_asset_type": "string",
        "base_asset_code": "string",
        "base_asset_issuer": "string",
        "counter_liquidity_pool_id": "string",
        "counter_offer_id": "string",
        "counter_account": "string",
        "counter_amount": "string",
        "counter_asset_type": "string",
        "counter_asset_code": "string",
        "counter_asset_issuer": "string",
        "base_is_seller": true,
        "price": {
          "n": "string",
          "d": "string"
        }
      }
    ]
  }
}

Request example

curl https://rpc.ankr.com/http/stellar_horizon/accounts/{account_id}/trades{?cursor,limit,order}

Response example

{
    "_links": {
        "self": {
            "href": "https://rpc.ankr.com/accounts/GD3CJYUTZAY6JQF4CEI6Z7VW5O6VNGKZTBYUECTOJPEDTB7I2HZSPI2K/trades?cursor=\u0026limit=1\u0026order=asc"
        },
        "next": {
            "href": "https://rpc.ankr.com/accounts/GD3CJYUTZAY6JQF4CEI6Z7VW5O6VNGKZTBYUECTOJPEDTB7I2HZSPI2K/trades?cursor=107449468881756161-0\u0026limit=1\u0026order=asc"
        },
        "prev": {
            "href": "https://rpc.ankr.com/accounts/GD3CJYUTZAY6JQF4CEI6Z7VW5O6VNGKZTBYUECTOJPEDTB7I2HZSPI2K/trades?cursor=107449468881756161-0\u0026limit=1\u0026order=desc"
        }
    },
    "_embedded": {
        "records": [
            {
                "_links": {
                    "self": {
                        "href": ""
                    },
                    "base": {
                        "href": "https://rpc.ankr.com/accounts/GCO7OW5P2PP7WDN6YUDXUUOPAR4ZHJSDDCZTIAQRTRZHKQWV45WUPBWX"
                    },
                    "counter": {
                        "href": "https://rpc.ankr.com/accounts/GD3CJYUTZAY6JQF4CEI6Z7VW5O6VNGKZTBYUECTOJPEDTB7I2HZSPI2K"
                    },
                    "operation": {
                        "href": "https://rpc.ankr.com/operations/107449468881756161"
                    }
                },
                "id": "107449468881756161-0",
                "paging_token": "107449468881756161-0",
                "ledger_close_time": "2019-07-26T09:17:02Z",
                "trade_type": "orderbook",
                "base_offer_id": "104078276",
                "base_account": "GCO7OW5P2PP7WDN6YUDXUUOPAR4ZHJSDDCZTIAQRTRZHKQWV45WUPBWX",
                "base_amount": "4433.2000000",
                "base_asset_type": "native",
                "counter_offer_id": "4719135487309144065",
                "counter_account": "GD3CJYUTZAY6JQF4CEI6Z7VW5O6VNGKZTBYUECTOJPEDTB7I2HZSPI2K",
                "counter_amount": "443.3200000",
                "counter_asset_type": "credit_alphanum4",
                "counter_asset_code": "BB1",
                "counter_asset_issuer": "GD5J6HLF5666X4AZLTFTXLY46J5SW7EXRKBLEYPJP33S33MXZGV6CWFN",
                "base_is_seller": true,
                "price": {
                    "n": "1",
                    "d": "10"
                }
            }
        ]
    }
}

GET /accounts/{account_id}/data/{key}

Retrieve an account's data.

This endpoint represents a single data for a given account.

Parameters

  • account_id (string; path; required): the account’s public key encoded in a base32 string representation.
  • key (string; path; required): the key name for this data.

Returns

{
  "value": "string"
}

Request example

curl https://rpc.ankr.com/http/stellar_horizon/accounts/{account_id}/data/{key}

Response example

{
  "value": "MQ=="
}

Assets

Assets are representations of value issued on the Stellar network. An asset consists of a type, code, and issuer.

GET /assets

Lists all assets.

This endpoint lists all assets.

Parameters

  • asset_code (any; query): the code of the asset you would like to filter by.
  • asset_issuer (any; query): the Stellar address of the issuer for the asset you would like to filter by.
  • cursor (integer; query): a number that points to a specific location in a collection of responses and is pulled from the paging_token value of a record.
  • order (string; query): a designation of the order in which records should appear. Options include asc (ascending) or desc (descending). If this argument isn’t set, it defaults to asc.
  • limit (integer; query): the maximum number of records returned. The limit can range from 1 to 200 - an upper limit that is hardcoded in Horizon for performance reasons. If this argument isn’t designated, it defaults to 10.

Returns

{
  "_links": {
    "self": {
      "href": "string",
      "templated": true
    },
    "next": {
      "href": "string",
      "templated": true
    },
    "prev": {
      "href": "string",
      "templated": true
    }
  },
  "_embedded": {
    "records": [
      {
        "_links": {
          "toml": {
            "href": "string",
            "templated": true
          }
        },
        "asset_type": "string",
        "asset_issuer": "string",
        "paging_token": "string",
        "accounts": {
          "authorized": 0,
          "authorized_to_maintain_liabilities": 0,
          "unauthorized": 0
        },
        "num_claimable_balances": 0,
        "num_contracts": 0,
        "num_liquidity_pools": 0,
        "balances": {
          "authorized": "string",
          "authorized_to_maintain_liabilities": "string",
          "unauthorized": "string"
        },
        "claimable_balances_amount": "string",
        "contracts_amount": "string",
        "liquidity_pools_amount": "string",
        "amount": "string",
        "num_accounts": 0,
        "flags": {
          "auth_required": true,
          "auth_revocable": true,
          "auth_immutable": true
        }
      }
    ]
  }
}

Request example

curl https://rpc.ankr.com/http/stellar_horizon/assets{?asset_code,asset_issuer,cursor,limit,order}

Response example

{
    "_links": {
        "self": {
            "href": "https://rpc.ankr.com/assets?cursor=\u0026limit=1\u0026order=asc"
        },
        "next": {
            "href": "https://rpc.ankr.com/assets?cursor=0_GBBJZOYEGLOCW32Q4ZGWRWQ7UKIGMMIQXIRBBBOVJVFJTZW7CR2VQKAT_credit_alphanum4\u0026limit=1\u0026order=asc"
        },
        "prev": {
            "href": "https://rpc.ankr.com/assets?cursor=0_GBBJZOYEGLOCW32Q4ZGWRWQ7UKIGMMIQXIRBBBOVJVFJTZW7CR2VQKAT_credit_alphanum4\u0026limit=1\u0026order=desc"
        }
    },
    "_embedded": {
        "records": [
            {
                "_links": {
                    "toml": {
                        "href": "https://emily.stellarskull.io/.well-known/stellar.toml"
                    }
                },
                "asset_type": "credit_alphanum4",
                "asset_code": "0",
                "asset_issuer": "GBBJZOYEGLOCW32Q4ZGWRWQ7UKIGMMIQXIRBBBOVJVFJTZW7CR2VQKAT",
                "paging_token": "0_GBBJZOYEGLOCW32Q4ZGWRWQ7UKIGMMIQXIRBBBOVJVFJTZW7CR2VQKAT_credit_alphanum4",
                "num_accounts": 24,
                "num_claimable_balances": 0,
                "num_liquidity_pools": 0,
                "amount": "998.9481303",
                "accounts": {
                    "authorized": 24,
                    "authorized_to_maintain_liabilities": 0,
                    "unauthorized": 0
                },
                "claimable_balances_amount": "0.0000000",
                "liquidity_pools_amount": "0.0000000",
                "balances": {
                    "authorized": "998.9481303",
                    "authorized_to_maintain_liabilities": "0.0000000",
                    "unauthorized": "0.0000000"
                },
                "flags": {
                    "auth_required": false,
                    "auth_revocable": false,
                    "auth_immutable": false,
                    "auth_clawback_enabled": false
                }
            }
        ]
    }
}

Claimable balances

A claimable balance represents the transfer of ownership of some amount of an asset. Claimable balances provide a mechanism for setting up a payment which can be claimed in the future. This allows you to make payments to accounts which are currently not able to accept them.

GET /claimable_balances

Lists all claimable balances.

This endpoint lists all available claimable balances.

Parameters

  • sponsor (string; query): an account ID of the sponsor. Every account in the response will either be sponsored by the given account ID or have a sub-entry (trustline, offer, or data entry) which is sponsored by the given account ID.
  • asset (any; query): an issued asset represented as “Code:IssuerAccountID”. Every account in the response will have a trustline for the given asset.
  • claimant (any; query): an account ID of the destination address. Only include claimable balances which can be claimed by the given account ID.
  • cursor (integer; query): a number that points to a specific location in a collection of responses and is pulled from the paging_token value of a record.
  • order (string; query): a designation of the order in which records should appear. Options include asc (ascending) or desc (descending). If this argument isn’t set, it defaults to asc.
  • limit (integer; query): the maximum number of records returned. The limit can range from 1 to 200 - an upper limit that is hardcoded in Horizon for performance reasons. If this argument isn’t designated, it defaults to 10.

Returns

{
  "_links": {
    "self": {
      "href": "string",
      "templated": true
    },
    "next": {
      "href": "string",
      "templated": true
    },
    "prev": {
      "href": "string",
      "templated": true
    }
  },
  "_embedded": {
    "records": [
      {
        "_links": {
          "self": {
            "href": "string",
            "templated": true
          },
          "operations": {
            "href": "string",
            "templated": true
          },
          "transactions": {
            "href": "string",
            "templated": true
          }
        },
        "id": "string",
        "paging_token": "string",
        "asset": "string",
        "amount": "string",
        "sponsor": "string",
        "last_modified_ledger": "string",
        "last_modified_time": "string",
        "claimants": [
          {
            "destination": "string",
            "predicate": {
              "and": [
                {
                  "or": [
                    {
                      "relBefore": "string",
                      "absBefore": "string",
                      "absBeforeEpoch": "string"
                    }
                  ],
                  "not": {
                    "unconditional": true,
                    "relBefore": "string",
                    "absBefore": "string",
                    "absBeforeEpoch": "string"
                  }
                }
              ]
            }
          }
        ],
        "flags": 0
      }
    ]
  }
}

Request example

curl https://rpc.ankr.com/http/stellar_horizon/claimable_balances{?asset,sponsor,claimant,cursor,limit,order}

Response example

{
    "_links": {
        "self": {
            "href": "https://rpc.ankr.com/claimable_balances?asset=native\u0026cursor=\u0026limit=1\u0026order=asc"
        },
        "next": {
            "href": "https://rpc.ankr.com/claimable_balances?asset=native\u0026cursor=33324106-00000000691787983bc3ea12361092fe49ae83cbbe37804ee1590fe2b9b3e3860fc8261f\u0026limit=1\u0026order=asc"
        },
        "prev": {
            "href": "https://rpc.ankr.com/claimable_balances?asset=native\u0026cursor=33324106-00000000691787983bc3ea12361092fe49ae83cbbe37804ee1590fe2b9b3e3860fc8261f\u0026limit=1\u0026order=desc"
        }
    },
    "_embedded": {
        "records": [
            {
                "_links": {
                    "self": {
                        "href": "https://rpc.ankr.com/claimable_balances/00000000691787983bc3ea12361092fe49ae83cbbe37804ee1590fe2b9b3e3860fc8261f"
                    },
                    "transactions": {
                        "href": "https://rpc.ankr.com/claimable_balances/00000000691787983bc3ea12361092fe49ae83cbbe37804ee1590fe2b9b3e3860fc8261f/transactions{?cursor,limit,order}",
                        "templated": true
                    },
                    "operations": {
                        "href": "https://rpc.ankr.com/claimable_balances/00000000691787983bc3ea12361092fe49ae83cbbe37804ee1590fe2b9b3e3860fc8261f/operations{?cursor,limit,order}",
                        "templated": true
                    }
                },
                "id": "00000000691787983bc3ea12361092fe49ae83cbbe37804ee1590fe2b9b3e3860fc8261f",
                "asset": "native",
                "amount": "0.1000000",
                "sponsor": "GDOZMXWISPB57FITUQIGTFH2KNNW7QTFESXF5DZEAMZK6QHE3KVO5TRT",
                "last_modified_ledger": 33324106,
                "last_modified_time": null,
                "claimants": [
                    {
                        "destination": "GCD3T6UIQLYZPGRCYVSE7LKQB5HYYNVT7ENY6RCSFRFQYR5JTBDCECO3",
                        "predicate": {
                            "and": [
                                {
                                    "abs_before": "2020-12-30T23:03:56Z",
                                    "abs_before_epoch": "1609369436"
                                },
                                {
                                    "not": {
                                        "abs_before": "2020-12-30T23:05:56Z",
                                        "abs_before_epoch": "1609369556"
                                    }
                                }
                            ]
                        }
                    }
                ],
                "flags": {
                    "clawback_enabled": false
                },
                "paging_token": "33324106-00000000691787983bc3ea12361092fe49ae83cbbe37804ee1590fe2b9b3e3860fc8261f"
            }
        ]
    }
}

GET /claimable_balances/{claimable_balance_id}

Retrieves a particular claimable balance.

The single claimable balance endpoint provides information on a claimable balance.

Parameters

  • claimable_balance_id (string; path; required): a unique identifier for this claimable balance.

Returns

{
  "_links": {
    "self": {
      "href": "string",
      "templated": true
    },
    "operations": {
      "href": "string",
      "templated": true
    },
    "transactions": {
      "href": "string",
      "templated": true
    }
  },
  "id": "string",
  "asset": "string",
  "amount": "string",
  "sponsor": "string",
  "last_modified_ledger": "string",
  "last_modified_time": "string",
  "claimants": [
    {
      "destination": "string",
      "predicate": {
        "and": [
          {
            "or": [
              {
                "relBefore": "string",
                "absBefore": "string",
                "absBeforeEpoch": "string"
              }
            ],
            "not": {
              "unconditional": true,
              "relBefore": "string",
              "absBefore": "string",
              "absBeforeEpoch": "string"
            }
          }
        ]
      }
    }
  ],
  "flags": 0,
  "paging_token": "string"
}

Request example

curl https://rpc.ankr.com/http/stellar_horizon/claimable_balances/{claimable_balance_id}

Response example

{
  "_links": {
    "self": {
      "href": "https://rpc.ankr.com/claimable_balances/000000000102030000000000000000000000000000000000000000000000000000000000"
    },
    "operations": {
      "href": "https://rpc.ankr.com/claimable_balances/000000000102030000000000000000000000000000000000000000000000000000000000/operations{?cursor,limit,order}",
      "templated": true
    },
    "transactions": {
      "href": "https://rpc.ankr.com/claimable_balances/000000000102030000000000000000000000000000000000000000000000000000000000/transactions{?cursor,limit,order}",
      "templated": true
    }
  },
  "id": "000000000102030000000000000000000000000000000000000000000000000000000000",
  "paging_token": "000000000102030000000000000000000000000000000000000000000000000000000000",
  "asset": "native",
  "amount": "10.0000000",
  "claimants": [
    {
      "destination": "GC3C4AKRBQLHOJ45U4XG35ESVWRDECWO5XLDGYADO6DPR3L7KIDVUMML",
      "predicate": {
        "and": [
          {
            "or": [
              {
                "relBefore": "12"
              },
              {
                "absBefore": "2020-08-26T11:15:39Z",
                "absBeforeEpoch": "1598440539"
              }
            ]
          },
          {
            "not": {
              "unconditional": true
            }
          }
        ]
      }
    }
  ],
  "last_modified_ledger": 28411995,
  "last_modified_time": "2020-02-26T19:29:16Z"
}

GET /claimable_balances/{claimable_balance_id}/transactions

Retrieves transactions of a particular claimable balance.

This endpoint represents successful transactions referencing a given claimable balance and can be used in streaming mode. Streaming mode allows you to listen for new transactions referencing this claimable balance as they are added to the Stellar ledger. If called in streaming mode, Horizon will start at the earliest known transaction unless a cursor is set, in which case it will start from that cursor. By setting the cursor value to now, you can stream transactions created since your request time.

Parameters

  • claimable_balance_id (string; path; required): a unique identifier for this claimable balance.
  • cursor (integer; query): a number that points to a specific location in a collection of responses and is pulled from the paging_token value of a record.
  • order (string; query): a designation of the order in which records should appear. Options include asc (ascending) or desc (descending). If this argument isn’t set, it defaults to asc.
  • limit (integer; query): the maximum number of records returned. The limit can range from 1 to 200 - an upper limit that is hardcoded in Horizon for performance reasons. If this argument isn’t designated, it defaults to 10.
  • include_failed (boolean; query): set to true to include failed operations in results. Options include true and false.

Returns

{
  "_links": {
    "self": {
      "href": "string",
      "templated": true
    },
    "next": {
      "href": "string",
      "templated": true
    },
    "prev": {
      "href": "string",
      "templated": true
    }
  },
  "_embedded": {
    "records": [
      {
        "memo": "string",
        "_links": {
          "self": {
            "href": "string",
            "templated": true
          },
          "account": {
            "href": "string",
            "templated": true
          },
          "ledger": {
            "href": "string",
            "templated": true
          },
          "operations": {
            "href": "string",
            "templated": true
          },
          "effects": {
            "href": "string",
            "templated": true
          },
          "precedes": {
            "href": "string",
            "templated": true
          },
          "succeeds": {
            "href": "string",
            "templated": true
          },
          "transaction": {
            "href": "string",
            "templated": true
          }
        },
        "id": "string",
        "paging_token": "string",
        "successful": true,
        "hash": "string",
        "ledger": 0,
        "created_at": "string",
        "source_account": "string",
        "account_muxed": "string",
        "account_muxed_id": "string",
        "source_account_sequence": "string",
        "fee_account": "string",
        "fee_account_muxed": "string",
        "fee_account_muxed_id": "string",
        "fee_charged": "string",
        "max_fee": "string",
        "operation_count": 0,
        "envelope_xdr": "string",
        "result_xdr": "string",
        "result_meta_xdr": "string",
        "fee_meta_xdr": "string",
        "memo_type": "string",
        "signatures": [
          "string"
        ],
        "valid_after": "string",
        "valid_before": "string",
        "preconditions": {
          "timebounds": {
            "min_time": "string",
            "max_time": "string"
          },
          "ledgerbounds": {
            "min_ledger": "string",
            "max_ledger": "string"
          },
          "min_account_sequence": "string",
          "min_account_sequence_age": "string",
          "min_account_sequence_ledger_gap": 0,
          "extra_signers": [
            "string"
          ]
        },
        "fee_bump_transaction": {
          "hash": "string",
          "signatures": [
            "string"
          ]
        },
        "inner_transaction": {
          "hash": "string",
          "signatures": [
            "string"
          ],
          "max_fee": "string"
        }
      }
    ]
  }
}

Request example

curl https://rpc.ankr.com/http/stellar_horizon/claimable_balances/{claimable_balance_id}/transactions{?cursor,order,limit,include_failed}

Response

{
  "_links": {
    "self": {
      "href": "https://rpc.ankr.com/claimable_balances/00000000178826fbfe339e1f5c53417c6fedfe2c05e8bec14303143ec46b38981b09c3f9/transactions?cursor=&limit=2&order=asc"
    },
    "next": {
      "href": "https://rpc.ankr.com/claimable_balances/00000000178826fbfe339e1f5c53417c6fedfe2c05e8bec14303143ec46b38981b09c3f9/transactions?cursor=140648659841806336&limit=2&order=asc"
    },
    "prev": {
      "href": "https://rpc.ankr.com/claimable_balances/00000000178826fbfe339e1f5c53417c6fedfe2c05e8bec14303143ec46b38981b09c3f9/transactions?cursor=140648659841806336&limit=2&order=desc"
    }
  },
  "_embedded": {
    "records": [
      {
        "_links": {
          "self": {
            "href": "https://rpc.ankr.com/transactions/fc5a98fc3869df408ebd4ac1c2e3fefec8b0a858e82ff1d14e362676708b91e8"
          },
          "account": {
            "href": "https://rpc.ankr.com/accounts/GDCJIHD3623OCYNH65UUQC3NLG2D6YCNCDPZULRLCLOA76TBQRL6A3TF"
          },
          "ledger": {
            "href": "https://rpc.ankr.com/ledgers/32747318"
          },
          "operations": {
            "href": "https://rpc.ankr.com/transactions/fc5a98fc3869df408ebd4ac1c2e3fefec8b0a858e82ff1d14e362676708b91e8/operations{?cursor,limit,order}",
            "templated": true
          },
          "effects": {
            "href": "https://rpc.ankr.com/transactions/fc5a98fc3869df408ebd4ac1c2e3fefec8b0a858e82ff1d14e362676708b91e8/effects{?cursor,limit,order}",
            "templated": true
          },
          "precedes": {
            "href": "https://rpc.ankr.com/transactions?order=asc&cursor=140648659841806336"
          },
          "succeeds": {
            "href": "https://rpc.ankr.com/transactions?order=desc&cursor=140648659841806336"
          },
          "transaction": {
            "href": "https://rpc.ankr.com/transactions/fc5a98fc3869df408ebd4ac1c2e3fefec8b0a858e82ff1d14e362676708b91e8"
          }
        },
        "id": "fc5a98fc3869df408ebd4ac1c2e3fefec8b0a858e82ff1d14e362676708b91e8",
        "paging_token": "140648659841806336",
        "successful": true,
        "hash": "fc5a98fc3869df408ebd4ac1c2e3fefec8b0a858e82ff1d14e362676708b91e8",
        "ledger": 32747318,
        "created_at": "2020-11-23T16:02:38Z",
        "source_account": "GDCJIHD3623OCYNH65UUQC3NLG2D6YCNCDPZULRLCLOA76TBQRL6A3TF",
        "source_account_sequence": "140646847365513218",
        "fee_account": "GDCJIHD3623OCYNH65UUQC3NLG2D6YCNCDPZULRLCLOA76TBQRL6A3TF",
        "fee_charged": "100",
        "max_fee": "100",
        "operation_count": 1,
        "envelope_xdr": "AAAAAgAAAADElBx79rbhYaf3aUgLbVm0P2BNEN+aLisS3A/6YYRX4AAAAGQB862QAAAAAgAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAADgAAAAJCT0RISQAAAAAAAAAAAAAAxJQce/a24WGn92lIC21ZtD9gTRDfmi4rEtwP+mGEV+AAAAAAAA9CQAAAAAEAAAAAAAAAAElBqA1BXzKd9k9nuPoodv0YBKY+Hgh6Uz/UxozgnvyzAAAAAAAAAAAAAAABYYRX4AAAAEDf41ykW+eq8IVpJNOc4iDaht5Beil8NpQB8WMHkOxW3rocUBF3EHKqUXDIsD9CzzY7Xr1PbzVk5FZ4iBKNF4MM",
        "result_xdr": "AAAAAAAAAGQAAAAAAAAAAQAAAAAAAAAOAAAAAAAAAAAXiCb7/jOeH1xTQXxv7f4sBei+wUMDFD7EaziYGwnD+QAAAAA=",
        "result_meta_xdr": "AAAAAgAAAAIAAAADAfOvNgAAAAAAAAAAxJQce/a24WGn92lIC21ZtD9gTRDfmi4rEtwP+mGEV+AAAAAAAcnCVAHzrZAAAAABAAAAAAAAAAAAAAAAAAAAD2dpdmluZ2JvZGhpLm9yZwABAAAAAAAAAAAAAAAAAAAAAAAAAQHzrzY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hpLm9yZwABAAAAAAAAAAAAAAAAAAAA",
        "memo_type": "none",
        "signatures": [
          "3+NcpFvnqvCFaSTTnOIg2obeQXopfDaUAfFjB5DsVt66HFARdxByqlFwyLA/Qs82O169T281ZORWeIgSjReDDA=="
        ],
        "valid_after": "1970-01-01T00:00:00Z",
        "preconditions": {
          "timebounds": {
            "min_time": "0"
          }
        }
      }
    ]
  }
}

GET /claimable_balances/{claimable_balance_id}/operations

Retrieves operations of a particular claimable balance.

This endpoint represents successful operations referencing a given claimable balance and can be used in streaming mode. Streaming mode allows you to listen for new operations referencing this claimable balance as they are added to the Stellar ledger. If called in streaming mode, Horizon will start at the earliest known operation unless a cursor is set, in which case it will start from that cursor. By setting the cursor value to now, you can stream operations created since your request time.

Parameters

  • claimable_balance_id (string; path; required): a unique identifier for this claimable balance.
  • cursor (integer; query): a number that points to a specific location in a collection of responses and is pulled from the paging_token value of a record.
  • order (string; query): a designation of the order in which records should appear. Options include asc (ascending) or desc (descending). If this argument isn’t set, it defaults to asc.
  • limit (integer; query): the maximum number of records returned. The limit can range from 1 to 200 - an upper limit that is hardcoded in Horizon for performance reasons. If this argument isn’t designated, it defaults to 10.
  • include_failed (boolean; query): set to true to include failed operations in results. Options include true and false.
  • join (any; query): set to transactions to include the transactions which created each of the operations in the response.

Returns

{
  "_links": {
    "self": {
      "href": "string",
      "templated": true
    },
    "next": {
      "href": "string",
      "templated": true
    },
    "prev": {
      "href": "string",
      "templated": true
    },
    "transaction": {
      "href": "string",
      "templated": true
    },
    "effects": {
      "href": "string",
      "templated": true
    },
    "succeeds": {
      "href": "string",
      "templated": true
    },
    "precedes": {
      "href": "string",
      "templated": true
    }
  },
  "id": "string",
  "paging_token": "string",
  "transaction_successful": true,
  "source_account": "string",
  "type": "create_account",
  "type_i": 0,
  "created_at": "string",
  "transaction_hash": "string",
  "starting_balance": "string",
  "funder": "string",
  "account": "string"
}

Request example

curl https://rpc.ankr.com/http/stellar_horizon/claimable_balances/{claimable_balance_id}/operations{?cursor,order,limit,include_failed,join}

Response example

{
  "_links": {
    "self": {
      "href": "https://rpc.ankr.com/claimable_balances/00000000178826fbfe339e1f5c53417c6fedfe2c05e8bec14303143ec46b38981b09c3f9/operations?cursor=&limit=3&order=asc"
    },
    "next": {
      "href": "https://rpc.ankr.com/claimable_balances/00000000178826fbfe339e1f5c53417c6fedfe2c05e8bec14303143ec46b38981b09c3f9/operations?cursor=140648659841806337&limit=3&order=asc"
    },
    "prev": {
      "href": "https://rpc.ankr.com/claimable_balances/00000000178826fbfe339e1f5c53417c6fedfe2c05e8bec14303143ec46b38981b09c3f9/operations?cursor=140648659841806337&limit=3&order=desc"
    }
  },
  "_embedded": {
    "records": [
      {
        "_links": {
          "self": {
            "href": "https://rpc.ankr.com/operations/140648659841806337"
          },
          "transaction": {
            "href": "https://rpc.ankr.com/transactions/fc5a98fc3869df408ebd4ac1c2e3fefec8b0a858e82ff1d14e362676708b91e8"
          },
          "effects": {
            "href": "https://rpc.ankr.com/operations/140648659841806337/effects"
          },
          "succeeds": {
            "href": "https://rpc.ankr.com/effects?order=desc&cursor=140648659841806337"
          },
          "precedes": {
            "href": "https://rpc.ankr.com/effects?order=asc&cursor=140648659841806337"
          }
        },
        "id": "140648659841806337",
        "paging_token": "140648659841806337",
        "transaction_successful": true,
        "source_account": "GDCJIHD3623OCYNH65UUQC3NLG2D6YCNCDPZULRLCLOA76TBQRL6A3TF",
        "type": "create_claimable_balance",
        "type_i": 14,
        "created_at": "2020-11-23T16:02:38Z",
        "transaction_hash": "fc5a98fc3869df408ebd4ac1c2e3fefec8b0a858e82ff1d14e362676708b91e8",
        "sponsor": "GDCJIHD3623OCYNH65UUQC3NLG2D6YCNCDPZULRLCLOA76TBQRL6A3TF",
        "asset": "BODHI:GDCJIHD3623OCYNH65UUQC3NLG2D6YCNCDPZULRLCLOA76TBQRL6A3TF",
        "amount": "0.1000000",
        "claimants": [
          {
            "destination": "GBEUDKANIFPTFHPWJ5T3R6RIO36RQBFGHYPAQ6STH7KMNDHAT36LHOLD",
            "predicate": {
              "unconditional": true
            }
          }
        ]
      }
    ]
  }
}

Effects

Effects represent specific changes that occur in the ledger as a result of successful operations, but are not necessarily directly reflected in the ledger or history, as transactions and operations are.

GET /effects

Lists all effects.

This endpoint lists all effects and can be used in streaming mode. Streaming mode allows you to listen for new effects as they are added to the Stellar ledger. If called in streaming mode, Horizon will start at the earliest known effect unless a cursor is set, in which case it will start from that cursor. By setting the cursor value to now, you can stream effects created since your request time.

Parameters

  • cursor (integer; query): a number that points to a specific location in a collection of responses and is pulled from the paging_token value of a record.
  • order (string; query): a designation of the order in which records should appear. Options include asc (ascending) or desc (descending). If this argument isn’t set, it defaults to asc.
  • limit (integer; query): the maximum number of records returned. The limit can range from 1 to 200 - an upper limit that is hardcoded in Horizon for performance reasons. If this argument isn’t designated, it defaults to 10.

Returns

{
  "_links": {
    "self": {
      "href": "string",
      "templated": true
    },
    "next": {
      "href": "string",
      "templated": true
    },
    "prev": {
      "href": "string",
      "templated": true
    }
  },
  "_embedded": {
    "records": [
      {
        "_links": {
          "operation": {
            "href": "string",
            "templated": true
          },
          "succeeds": {
            "href": "string",
            "templated": true
          },
          "precedes": {
            "href": "string",
            "templated": true
          }
        },
        "id": "string",
        "paging_token": "string",
        "account": "string",
        "type": "Account Created",
        "type_i": 1,
        "created_at": "string"
      }
    ]
  }
}

Request example

curl https://rpc.ankr.com/http/stellar_horizon/effects{?curson,order,limit}

Response example

{
    "_links": {
        "self": {
            "href": "https://rpc.ankr.com/effects?cursor=\u0026limit=1\u0026order=asc"
        },
        "next": {
            "href": "https://rpc.ankr.com/effects?cursor=211459450643517441-1\u0026limit=1\u0026order=asc"
        },
        "prev": {
            "href": "https://rpc.ankr.com/effects?cursor=211459450643517441-1\u0026limit=1\u0026order=desc"
        }
    },
    "_embedded": {
        "records": [
            {
                "_links": {
                    "operation": {
                        "href": "https://rpc.ankr.com/operations/211459450643517441"
                    },
                    "succeeds": {
                        "href": "https://rpc.ankr.com/effects?order=desc\u0026cursor=211459450643517441-1"
                    },
                    "precedes": {
                        "href": "https://rpc.ankr.com/effects?order=asc\u0026cursor=211459450643517441-1"
                    }
                },
                "id": "0211459450643517441-0000000001",
                "paging_token": "211459450643517441-1",
                "account": "GCV7NQTKV3ZZGC366FYVH2XOSZBOTQIOTHG7JJFJJP2XKCLGEYUZHRRR",
                "type": "account_credited",
                "type_i": 2,
                "created_at": "2023-11-29T10:37:29Z",
                "asset_type": "native",
                "amount": "0.0251621"
            }
        ]
    }
}

Ledgers

Each ledger stores the state of the network at a point in time and contains all the changes - transactions, operations, effects, etc. - to that state.

GET /ledgers

List all ledgers.

This endpoint lists all ledgers and can be used in streaming mode. Streaming mode allows you to listen for new ledgers as they close. If called in streaming mode, Horizon will start at the earliest known ledger unless a cursor is set, in which case it will start from that cursor. By setting the cursor value to now, you can stream ledgers since your request time.

Parameters

  • cursor (integer; query): a number that points to a specific location in a collection of responses and is pulled from the paging_token value of a record.
  • order (string; query): a designation of the order in which records should appear. Options include asc (ascending) or desc (descending). If this argument isn’t set, it defaults to asc.
  • limit (integer; query): the maximum number of records returned. The limit can range from 1 to 200 - an upper limit that is hardcoded in Horizon for performance reasons. If this argument isn’t designated, it defaults to 10.

Returns

{
  "_embedded": {
    "records": [
      {
        "_links": {
          "self": {
            "href": "string",
            "templated": true
          },
          "transactions": {
            "href": "string",
            "templated": true
          },
          "operations": {
            "href": "string",
            "templated": true
          },
          "payments": {
            "href": "string",
            "templated": true
          },
          "effects": {
            "href": "string",
            "templated": true
          }
        },
        "id": "string",
        "paging_token": "string",
        "hash": "string",
        "pre_hash": "string",
        "sequence": 0,
        "successful_transaction_count": 0,
        "failed_transaction_count": 0,
        "operation_count": 0,
        "tx_set_operation_count": 0,
        "closed_at": "string",
        "total_coins": "string",
        "fee_pool": "string",
        "base_fee_in_stroops": 0,
        "base_reserve_in_stroops": 0,
        "max_tx_set_size": 0,
        "protocol_version": 0,
        "header_xdr": "string"
      }
    ]
  }
}

Request example

curl https://rpc.ankr.com/http/stellar_horizon/ledgers{?curson,order,limit}

Response example

{
    "_links": {
        "self": {
            "href": "https://rpc.ankr.com/ledgers?cursor=\u0026limit=2\u0026order=asc"
        },
        "next": {
            "href": "https://rpc.ankr.com/ledgers?cursor=211459454938382336\u0026limit=2\u0026order=asc"
        },
        "prev": {
            "href": "https://rpc.ankr.com/ledgers?cursor=211459450643415040\u0026limit=2\u0026order=desc"
        }
    },
    "_embedded": {
        "records": [
            {
                "_links": {
                    "self": {
                        "href": "https://rpc.ankr.com/ledgers/49234240"
                    },
                    "transactions": {
                        "href": "https://rpc.ankr.com/ledgers/49234240/transactions{?cursor,limit,order}",
                        "templated": true
                    },
                    "operations": {
                        "href": "https://rpc.ankr.com/ledgers/49234240/operations{?cursor,limit,order}",
                        "templated": true
                    },
                    "payments": {
                        "href": "https://rpc.ankr.com/ledgers/49234240/payments{?cursor,limit,order}",
                        "templated": true
                    },
                    "effects": {
                        "href": "https://rpc.ankr.com/ledgers/49234240/effects{?cursor,limit,order}",
                        "templated": true
                    }
                },
                "id": "5265a451c307cfca00bca3931a0abce38c34010a88260c52b0569881ef820d45",
                "paging_token": "211459450643415040",
                "hash": "5265a451c307cfca00bca3931a0abce38c34010a88260c52b0569881ef820d45",
                "prev_hash": "f0aac2ec4af61e88481b1b47c79d346041fe1a09d6a43c24bcaf416acd937f75",
                "sequence": 49234240,
                "successful_transaction_count": 153,
                "failed_transaction_count": 47,
                "operation_count": 494,
                "tx_set_operation_count": 673,
                "closed_at": "2023-11-29T10:37:29Z",
                "total_coins": "105443902087.3472865",
                "fee_pool": "4270449.1081721",
                "base_fee_in_stroops": 100,
                "base_reserve_in_stroops": 5000000,
                "max_tx_set_size": 1000,
                "protocol_version": 19,
                "header_xdr": "AAAAE/CqwuxK9h6ISBsbR8edNGBB/hoJ1qQ8JLyvQWrNk391dpkM53++2Odc2P3uwVpsimH3sW1rfHemGyOle94syIIAAAAAZWcUaQAAAAAAAAABAAAAAFMKIvR3Lya8FJ+cNeaJjXTX3wCSqBxw3WYftnPvFVHeAAAAQHDQ+BSiecIZ2eYWRwR+r8v3rUXz1IpU32/kosKtPS/zStlrBvqi6moxShcT4mHzqyov8VA2FIhzSqznIoLsyQvFjIxal5BMXIRP6LE2pVbuhI3iJ5iGbOy1s90z0Cfu1/Lz1I1vlBmRsfKzQc8JP2pkawR/gktVJgRTbNaIMTwTAu9BQA6iHrPseVthAAAm1uoFb/kAAAEWAAAAAFREgMsAAABkAExLQAAAA+jiy/A54/0RJsdgB3p3iG4xmmfch6G208T/VI/BFUv4ERjxmfiAnjFIK14tlbcrLvvGX9DEM6kTlFV7U3tfHISPWobdcbkpe4hlTxt+iUMnU6fqMLuFDMYBLwL7kvSbsnWSMMEe8/r7pDlxCuKa1eY4rqGQf8oaUCJcZ4Og+zrIwQAAAAA="
            },
            {
                "_links": {
                    "self": {
                        "href": "https://rpc.ankr.com/ledgers/49234241"
                    },
                    "transactions": {
                        "href": "https://rpc.ankr.com/ledgers/49234241/transactions{?cursor,limit,order}",
                        "templated": true
                    },
                    "operations": {
                        "href": "https://rpc.ankr.com/ledgers/49234241/operations{?cursor,limit,order}",
                        "templated": true
                    },
                    "payments": {
                        "href": "https://rpc.ankr.com/ledgers/49234241/payments{?cursor,limit,order}",
                        "templated": true
                    },
                    "effects": {
                        "href": "https://rpc.ankr.com/ledgers/49234241/effects{?cursor,limit,order}",
                        "templated": true
                    }
                },
                "id": "a3f6611d47eb0303cd0352a7b6bcecfe540d3c82d4ea85b7c3d0d494ea89d260",
                "paging_token": "211459454938382336",
                "hash": "a3f6611d47eb0303cd0352a7b6bcecfe540d3c82d4ea85b7c3d0d494ea89d260",
                "prev_hash": "5265a451c307cfca00bca3931a0abce38c34010a88260c52b0569881ef820d45",
                "sequence": 49234241,
                "successful_transaction_count": 174,
                "failed_transaction_count": 50,
                "operation_count": 452,
                "tx_set_operation_count": 874,
                "closed_at": "2023-11-29T10:37:35Z",
                "total_coins": "105443902087.3472865",
                "fee_pool": "4270449.1171621",
                "base_fee_in_stroops": 100,
                "base_reserve_in_stroops": 5000000,
                "max_tx_set_size": 1000,
                "protocol_version": 19,
                "header_xdr": "AAAAE1JlpFHDB8/KALyjkxoKvOOMNAEKiCYMUrBWmIHvgg1FALlcFm56tDS2cb0ia8B+N6yLaiJXuQLWsWa74aQmM0wAAAAAZWcUbwAAAAAAAAABAAAAAALFJZ5Gu3RxX6evZlFupBENfCKbFy8HGJOsqYaXrFMrAAAAQLrU3H1O/MbfNJ7vmCQY0fRXyDtdaYnBqOATsrPsiMbrRU80fmRMEIGZgb58GPEaZdpZXxHcVPirZQf3VvNvQwyWO71I7+SuPAtJRllRAeexSnqrFApXvxsS0uatsDbtJ+uZq+JZS9bso557+bjqki7e5+7EyGZ7sDxzoZEqSqBlAu9BQQ6iHrPseVthAAAm1uoGzyUAAAEWAAAAAFREgU0AAABkAExLQAAAA+jiy/A54/0RJsdgB3p3iG4xmmfch6G208T/VI/BFUv4ERjxmfiAnjFIK14tlbcrLvvGX9DEM6kTlFV7U3tfHISPWobdcbkpe4hlTxt+iUMnU6fqMLuFDMYBLwL7kvSbsnWSMMEe8/r7pDlxCuKa1eY4rqGQf8oaUCJcZ4Og+zrIwQAAAAA="
            }
        ]
    }
}

GET /ledgers/{sequence}

Retrieves a particular ledger.

The single ledger endpoint provides information on a specific ledger.

Parameters

  • sequence (integer; path; required): the sequence number of a specific ledger.

Returns

{
  "_embedded": {
    "records": [
      {
        "_links": {
          "self": {
            "href": "string",
            "templated": true
          },
          "transactions": {
            "href": "string",
            "templated": true
          },
          "operations": {
            "href": "string",
            "templated": true
          },
          "payments": {
            "href": "string",
            "templated": true
          },
          "effects": {
            "href": "string",
            "templated": true
          }
        },
        "id": "string",
        "paging_token": "string",
        "hash": "string",
        "pre_hash": "string",
        "sequence": 0,
        "successful_transaction_count": 0,
        "failed_transaction_count": 0,
        "operation_count": 0,
        "tx_set_operation_count": 0,
        "closed_at": "string",
        "total_coins": "string",
        "fee_pool": "string",
        "base_fee_in_stroops": 0,
        "base_reserve_in_stroops": 0,
        "max_tx_set_size": 0,
        "protocol_version": 0,
        "header_xdr": "string"
      }
    ]
  }
}

Request example

curl https://rpc.ankr.com/http/stellar_horizon/ledgers/{sequence}

Response example

{
  "_links": {
    "self": {
      "href": "https://rpc.ankr.com/ledgers/27146933"
    },
    "transactions": {
      "href": "https://rpc.ankr.com/ledgers/27146933/transactions{?cursor,limit,order}",
      "templated": true
    },
    "operations": {
      "href": "https://rpc.ankr.com/ledgers/27146933/operations{?cursor,limit,order}",
      "templated": true
    },
    "payments": {
      "href": "https://rpc.ankr.com/ledgers/27146933/payments{?cursor,limit,order}",
      "templated": true
    },
    "effects": {
      "href": "https://rpc.ankr.com/ledgers/27146933/effects{?cursor,limit,order}",
      "templated": true
    }
  },
  "id": "e1218a337cecda05526fba902c61d3d7130baa58d8db41f544bf563f779b6329",
  "paging_token": "116595189421703168",
  "hash": "e1218a337cecda05526fba902c61d3d7130baa58d8db41f544bf563f779b6329",
  "prev_hash": "9eac16fecd885147067b58b7684f60d216f931b813f651265bbc97de4cea313d",
  "sequence": 27146933,
  "successful_transaction_count": 26,
  "failed_transaction_count": 9,
  "operation_count": 67,
  "closed_at": "2019-12-06T22:39:32Z",
  "total_coins": "105443902087.3472865",
  "fee_pool": "1807264.7509661",
  "base_fee_in_stroops": 100,
  "base_reserve_in_stroops": 5000000,
  "max_tx_set_size": 1000,
  "protocol_version": 12,
  "header_xdr": "AAAADJ6sFv7NiFFHBntYt2hPYNIW+TG4E/ZRJlu8l95M6jE9bsvzId+Gtul2mNMW4UZQ+KqSb/nbN8F1CTxAfQsyUy8AAAAAXerYpAAAAAAAAAAAXQNpS8daKGZUeY5quYUcIiJZBMB7LiLsZJsEx9qw79fx99Bu/lk+sIePNUNcuOC2euthzfhLuWJ1nZBuoQFDjgGeOrUOoh6z7HlbYQAAEG/dvCadAAABFgAAAAAIOwAqAAAAZABMS0AAAAPooSNtHXJNJKKWlBtgkAM1LBxzlzYjIlS0xwpjP+uCi76fQj59wgTy0+xtx7O1qTb+W6zcI2zWZnrUU/8v8RZHFBfoo20QYKh95+wWr348yZAexZpdrjhyCxbChxlVTZOX6nZfIgcYBMnZRkOTCLdPO76yeqpDhqu9KrPe3YPTO3wAAAAA"
}

GET /ledgers/{sequence}/transactions

Retrieves transactions of a particular ledger.

This endpoint represents successful transactions in a given ledger.

Parameters

  • sequence (integer; path; required): the sequence number of a specific ledger.
  • cursor (integer; query): a number that points to a specific location in a collection of responses and is pulled from the paging_token value of a record.
  • order (string; query): a designation of the order in which records should appear. Options include asc (ascending) or desc (descending). If this argument isn’t set, it defaults to asc.
  • limit (integer; query): the maximum number of records returned. The limit can range from 1 to 200 - an upper limit that is hardcoded in Horizon for performance reasons. If this argument isn’t designated, it defaults to 10.
  • include_failed (boolean; query): set to true to include failed operations in results. Options include true and false.

Returns

{
  "_links": {
    "self": {
      "href": "string",
      "templated": true
    },
    "next": {
      "href": "string",
      "templated": true
    },
    "prev": {
      "href": "string",
      "templated": true
    }
  },
  "_embedded": {
    "records": [
      {
        "memo": "string",
        "_links": {
          "self": {
            "href": "string",
            "templated": true
          },
          "account": {
            "href": "string",
            "templated": true
          },
          "ledger": {
            "href": "string",
            "templated": true
          },
          "operations": {
            "href": "string",
            "templated": true
          },
          "effects": {
            "href": "string",
            "templated": true
          },
          "precedes": {
            "href": "string",
            "templated": true
          },
          "succeeds": {
            "href": "string",
            "templated": true
          },
          "transaction": {
            "href": "string",
            "templated": true
          }
        },
        "id": "string",
        "paging_token": "string",
        "successful": true,
        "hash": "string",
        "ledger": 0,
        "created_at": "string",
        "source_account": "string",
        "account_muxed": "string",
        "account_muxed_id": "string",
        "source_account_sequence": "string",
        "fee_account": "string",
        "fee_account_muxed": "string",
        "fee_account_muxed_id": "string",
        "fee_charged": "string",
        "max_fee": "string",
        "operation_count": 0,
        "envelope_xdr": "string",
        "result_xdr": "string",
        "result_meta_xdr": "string",
        "fee_meta_xdr": "string",
        "memo_type": "string",
        "signatures": [
          "string"
        ],
        "valid_after": "string",
        "valid_before": "string",
        "preconditions": {
          "timebounds": {
            "min_time": "string",
            "max_time": "string"
          },
          "ledgerbounds": {
            "min_ledger": "string",
            "max_ledger": "string"
          },
          "min_account_sequence": "string",
          "min_account_sequence_age": "string",
          "min_account_sequence_ledger_gap": 0,
          "extra_signers": [
            "string"
          ]
        },
        "fee_bump_transaction": {
          "hash": "string",
          "signatures": [
            "string"
          ]
        },
        "inner_transaction": {
          "hash": "string",
          "signatures": [
            "string"
          ],
          "max_fee": "string"
        }
      }
    ]
  }
}

Request example

curl https://rpc.ankr.com/http/stellar_horizon/ledgers/{sequence}/transactions{?cursor,order,limit,include_failed}

Response example

{
    "_links": {
        "self": {
            "href": "https://rpc.ankr.com/ledgers/27147222/transactions?cursor=\u0026limit=1\u0026order=asc"
        },
        "next": {
            "href": "https://rpc.ankr.com/ledgers/27147222/transactions?cursor=116596430667255808\u0026limit=1\u0026order=asc"
        },
        "prev": {
            "href": "https://rpc.ankr.com/ledgers/27147222/transactions?cursor=116596430667255808\u0026limit=1\u0026order=desc"
        }
    },
    "_embedded": {
        "records": [
            {
                "memo": "FadBcV0owHrsLQif/V2TxZKGA2YiX+MoifI7oB/UjJM=",
                "_links": {
                    "self": {
                        "href": "https://rpc.ankr.com/transactions/3a644389bbec63dd2b107a03c16711563fc549daa7b7f56f951a2e470f81f2e0"
                    },
                    "account": {
                        "href": "https://rpc.ankr.com/accounts/GBKTEASNXABG2NC4TY6N3IA5UFC6YW53Y4KTIKY3CUEKQ2W5EIYRMYVB"
                    },
                    "ledger": {
                        "href": "https://rpc.ankr.com/ledgers/27147222"
                    },
                    "operations": {
                        "href": "https://rpc.ankr.com/transactions/3a644389bbec63dd2b107a03c16711563fc549daa7b7f56f951a2e470f81f2e0/operations{?cursor,limit,order}",
                        "templated": true
                    },
                    "effects": {
                        "href": "https://rpc.ankr.com/transactions/3a644389bbec63dd2b107a03c16711563fc549daa7b7f56f951a2e470f81f2e0/effects{?cursor,limit,order}",
                        "templated": true
                    },
                    "precedes": {
                        "href": "https://rpc.ankr.com/transactions?order=asc\u0026cursor=116596430667255808"
                    },
                    "succeeds": {
                        "href": "https://rpc.ankr.com/transactions?order=desc\u0026cursor=116596430667255808"
                    },
                    "transaction": {
                        "href": "https://rpc.ankr.com/transactions/3a644389bbec63dd2b107a03c16711563fc549daa7b7f56f951a2e470f81f2e0"
                    }
                },
                "id": "3a644389bbec63dd2b107a03c16711563fc549daa7b7f56f951a2e470f81f2e0",
                "paging_token": "116596430667255808",
                "successful": true,
                "hash": "3a644389bbec63dd2b107a03c16711563fc549daa7b7f56f951a2e470f81f2e0",
                "ledger": 27147222,
                "created_at": "2019-12-06T23:05:38Z",
                "source_account": "GBKTEASNXABG2NC4TY6N3IA5UFC6YW53Y4KTIKY3CUEKQ2W5EIYRMYVB",
                "source_account_sequence": "113943107245989112",
                "fee_account": "GBKTEASNXABG2NC4TY6N3IA5UFC6YW53Y4KTIKY3CUEKQ2W5EIYRMYVB",
                "fee_charged": "100",
                "max_fee": "100",
                "operation_count": 1,
                "envelope_xdr": "AAAAAFUyAk24Am00XJ483aAdoUXsW7vHFTQrGxUIqGrdIjEWAAAAZAGUzqcAAFz4AAAAAQAAAAAAAAAAAAAAAAAAAAAAAAADFadBcV0owHrsLQif/V2TxZKGA2YiX+MoifI7oB/UjJMAAAABAAAAAQAAAADhZHiqD/Q3uSTgjYEWGVRfCCHYvFmeqJU12G9SkzJYEQAAAAEAAAAAB77j4CQxLlm5aPrq/PDwFhGNs2ldqbdCZwkSfzXhUhYAAAABTk9ETAAAAAB1jYLXrFzNBOWCoPnZSHI3PJAhHtc1TrCaiPuZwSf5pgAAAAAAAABNAAAAAAAAAALw9Tl2AAAAQLSLnL3XT3F6dq5m2WHZ7tH3HBrK/e+p2G7Hrl3WXQToUsgxKIRH6bhHT/mIWwnrfLZ9nlVjMCFoZPqVKrI2lgLdIjEWAAAAQCrZ9IbjDAB408VgQaqNpwX8hXr/OUsoEexkWGkN9PjcBG2nf4bKWdbjiaqHZ+LrvM+DdmhxtA3L9bzmCie8NgA=",
                "result_xdr": "AAAAAAAAAGQAAAAAAAAAAQAAAAAAAAABAAAAAAAAAAA=",
                "result_meta_xdr": "AAAAAgAAAAIAAAADAZ471gAAAAAAAAAAVTICTbgCbTRcnjzdoB2hRexbu8cVNCsbFQioat0iMRYAAAAAB5tToAGUzqcAAFz3AAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAZ471gAAAAAAAAAAVTICTbgCbTRcnjzdoB2hRexbu8cVNCsbFQioat0iMRYAAAAAB5tToAGUzqcAAFz4AAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAABAAAAAMBnju+AAAAAQAAAAAHvuPgJDEuWblo+ur88PAWEY2zaV2pt0JnCRJ/NeFSFgAAAAFOT0RMAAAAAHWNgtesXM0E5YKg+dlIcjc8kCEe1zVOsJqI+5nBJ/mmAAAAAAAIP38ASptjhEiAAAAAAAEAAAAAAAAAAAAAAAEBnjvWAAAAAQAAAAAHvuPgJDEuWblo+ur88PAWEY2zaV2pt0JnCRJ/NeFSFgAAAAFOT0RMAAAAAHWNgtesXM0E5YKg+dlIcjc8kCEe1zVOsJqI+5nBJ/mmAAAAAAAIP8wASptjhEiAAAAAAAEAAAAAAAAAAAAAAAMBnjvVAAAAAQAAAADhZHiqD/Q3uSTgjYEWGVRfCCHYvFmeqJU12G9SkzJYEQAAAAFOT0RMAAAAAHWNgtesXM0E5YKg+dlIcjc8kCEe1zVOsJqI+5nBJ/mmAAAALEhqMpZ//////////wAAAAEAAAAAAAAAAAAAAAEBnjvWAAAAAQAAAADhZHiqD/Q3uSTgjYEWGVRfCCHYvFmeqJU12G9SkzJYEQAAAAFOT0RMAAAAAHWNgtesXM0E5YKg+dlIcjc8kCEe1zVOsJqI+5nBJ/mmAAAALEhqMkl//////////wAAAAEAAAAAAAAAAAAAAAA=",
                "fee_meta_xdr": "AAAAAgAAAAMBnjvKAAAAAAAAAABVMgJNuAJtNFyePN2gHaFF7Fu7xxU0KxsVCKhq3SIxFgAAAAAHm1QEAZTOpwAAXPcAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEBnjvWAAAAAAAAAABVMgJNuAJtNFyePN2gHaFF7Fu7xxU0KxsVCKhq3SIxFgAAAAAHm1OgAZTOpwAAXPcAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==",
                "memo_type": "hash",
                "signatures": [
                    "tIucvddPcXp2rmbZYdnu0fccGsr976nYbseuXdZdBOhSyDEohEfpuEdP+YhbCet8tn2eVWMwIWhk+pUqsjaWAg==",
                    "Ktn0huMMAHjTxWBBqo2nBfyFev85SygR7GRYaQ30+NwEbad/hspZ1uOJqodn4uu8z4N2aHG0Dcv1vOYKJ7w2AA=="
                ],
                "valid_after": "1970-01-01T00:00:00Z",
                "preconditions": {
                    "timebounds": {
                        "min_time": "0"
                    }
                }
            }
        ]
    }
}

GET /ledgers/{sequence}/operations

Retrieves operations of a particular ledger.

This endpoint returns successful operations in a specific ledger.

Parameters

  • sequence (integer; path; required): the sequence number of a specific ledger.
  • cursor (integer; query): a number that points to a specific location in a collection of responses and is pulled from the paging_token value of a record.
  • order (string; query): a designation of the order in which records should appear. Options include asc (ascending) or desc (descending). If this argument isn’t set, it defaults to asc.
  • limit (integer; query): the maximum number of records returned. The limit can range from 1 to 200 - an upper limit that is hardcoded in Horizon for performance reasons. If this argument isn’t designated, it defaults to 10.
  • include_failed (boolean; query): set to true to include failed operations in results. Options include true and false.
  • join (any; query): set to transactions to include the transactions which created each of the operations in the response.

Returns

{
  "_links": {
    "effects": {
      "href": "string",
      "templated": true
    },
    "precedes": {
      "href": "string",
      "templated": true
    },
    "self": {
      "href": "string",
      "templated": true
    },
    "succeds": {
      "href": "string",
      "templated": true
    },
    "transaction": {
      "href": "string",
      "templated": true
    }
  },
  "id": "string",
  "paging_token": "string",
  "type_i": 0,
  "type": "create_account"
}

Request example

curl https://rpc.ankr.com/http/stellar_horizon/ledgers/{sequence}/operations{?cursor,order,limit,include_failed,join}

Response example

{
    "_links": {
        "self": {
            "href": "https://rpc.ankr.com/ledgers/27147222/operations?cursor=\u0026limit=1\u0026order=asc"
        },
        "next": {
            "href": "https://rpc.ankr.com/ledgers/27147222/operations?cursor=116596430667255809\u0026limit=1\u0026order=asc"
        },
        "prev": {
            "href": "https://rpc.ankr.com/ledgers/27147222/operations?cursor=116596430667255809\u0026limit=1\u0026order=desc"
        }
    },
    "_embedded": {
        "records": [
            {
                "_links": {
                    "self": {
                        "href": "https://rpc.ankr.com/operations/116596430667255809"
                    },
                    "transaction": {
                        "href": "https://rpc.ankr.com/transactions/3a644389bbec63dd2b107a03c16711563fc549daa7b7f56f951a2e470f81f2e0"
                    },
                    "effects": {
                        "href": "https://rpc.ankr.com/operations/116596430667255809/effects"
                    },
                    "succeeds": {
                        "href": "https://rpc.ankr.com/effects?order=desc\u0026cursor=116596430667255809"
                    },
                    "precedes": {
                        "href": "https://rpc.ankr.com/effects?order=asc\u0026cursor=116596430667255809"
                    }
                },
                "id": "116596430667255809",
                "paging_token": "116596430667255809",
                "transaction_successful": true,
                "source_account": "GDQWI6FKB72DPOJE4CGYCFQZKRPQQIOYXRMZ5KEVGXMG6UUTGJMBCASH",
                "type": "payment",
                "type_i": 1,
                "created_at": "2019-12-06T23:05:38Z",
                "transaction_hash": "3a644389bbec63dd2b107a03c16711563fc549daa7b7f56f951a2e470f81f2e0",
                "asset_type": "credit_alphanum4",
                "asset_code": "NODL",
                "asset_issuer": "GB2Y3AWXVROM2BHFQKQPTWKIOI3TZEBBD3LTKTVQTKEPXGOBE742NODL",
                "from": "GDQWI6FKB72DPOJE4CGYCFQZKRPQQIOYXRMZ5KEVGXMG6UUTGJMBCASH",
                "to": "GAD35Y7AEQYS4WNZND5OV7HQ6ALBDDNTNFO2TN2CM4ERE7ZV4FJBNXZ6",
                "amount": "0.0000077"
            }
        ]
    }
}

GET /ledgers/{sequence}/payments

Retrieves payments of a particular ledger.

This endpoint returns all payment-related operations in a specific ledger. Operation types that can be returned by this endpoint include: create_account, payment, path_payment, and account_merge.

Parameters

  • sequence (integer; path; required): the sequence number of a specific ledger.
  • cursor (integer; query): a number that points to a specific location in a collection of responses and is pulled from the paging_token value of a record.
  • order (string; query): a designation of the order in which records should appear. Options include asc (ascending) or desc (descending). If this argument isn’t set, it defaults to asc.
  • limit (integer; query): the maximum number of records returned. The limit can range from 1 to 200 - an upper limit that is hardcoded in Horizon for performance reasons. If this argument isn’t designated, it defaults to 10.
  • include_failed (boolean; query): set to true to include failed operations in results. Options include true and false.
  • join (any; query): set to transactions to include the transactions which created each of the operations in the response.

Returns

{
  "_links": {
    "self": {
      "href": "string",
      "templated": true
    },
    "next": {
      "href": "string",
      "templated": true
    },
    "prev": {
      "href": "string",
      "templated": true
    }
  },
  "_embedded": {
    "records": [
      {
        "_links": {
          "self": {
            "href": "string",
            "templated": true
          },
          "transaction": {
            "href": "string",
            "templated": true
          },
          "effects": {
            "href": "string",
            "templated": true
          },
          "succeeds": {
            "href": "string",
            "templated": true
          },
          "precedes": {
            "href": "string",
            "templated": true
          }
        },
        "id": "string",
        "paging_token": "string",
        "transaction_successful": true,
        "source_account": "string",
        "type": "payment",
        "type_i": "string",
        "created_at": "string",
        "transaction_hash": "string",
        "asset_type": "string",
        "asset_issuer": "string",
        "from": "string",
        "to": "string",
        "amount": "string"
      }
    ]
  }
}

Request example

curl https://rpc.ankr.com/http/stellar_horizon/ledgers/{sequence}/payments{?cursor,order,limit,include_failed,join}

Response example

{
    "_links": {
        "self": {
            "href": "https://rpc.ankr.com/ledgers/27521176/payments?cursor=\u0026limit=1\u0026order=asc"
        },
        "next": {
            "href": "https://rpc.ankr.com/ledgers/27521176/payments?cursor=118202550867476481\u0026limit=1\u0026order=asc"
        },
        "prev": {
            "href": "https://rpc.ankr.com/ledgers/27521176/payments?cursor=118202550867476481\u0026limit=1\u0026order=desc"
        }
    },
    "_embedded": {
        "records": [
            {
                "_links": {
                    "self": {
                        "href": "https://rpc.ankr.com/operations/118202550867476481"
                    },
                    "transaction": {
                        "href": "https://rpc.ankr.com/transactions/971454b84a82baa38afa975e9eb4ff2632821b5a3e7f7993a7e20bbd9d7633ea"
                    },
                    "effects": {
                        "href": "https://rpc.ankr.com/operations/118202550867476481/effects"
                    },
                    "succeeds": {
                        "href": "https://rpc.ankr.com/effects?order=desc\u0026cursor=118202550867476481"
                    },
                    "precedes": {
                        "href": "https://rpc.ankr.com/effects?order=asc\u0026cursor=118202550867476481"
                    }
                },
                "id": "118202550867476481",
                "paging_token": "118202550867476481",
                "transaction_successful": true,
                "source_account": "GDQWI6FKB72DPOJE4CGYCFQZKRPQQIOYXRMZ5KEVGXMG6UUTGJMBCASH",
                "type": "payment",
                "type_i": 1,
                "created_at": "2019-12-30T22:35:49Z",
                "transaction_hash": "971454b84a82baa38afa975e9eb4ff2632821b5a3e7f7993a7e20bbd9d7633ea",
                "asset_type": "credit_alphanum4",
                "asset_code": "NODL",
                "asset_issuer": "GB2Y3AWXVROM2BHFQKQPTWKIOI3TZEBBD3LTKTVQTKEPXGOBE742NODL",
                "from": "GDQWI6FKB72DPOJE4CGYCFQZKRPQQIOYXRMZ5KEVGXMG6UUTGJMBCASH",
                "to": "GDGJS7AXAUFDZARIRDVZ5V7CFW6XY47WSBE2OVLCCGCDWOE7INKYN3PS",
                "amount": "0.0000017"
            }
        ]
    }
}

GET /ledgers/{sequence}/effects

Retrieves all effects of a particular ledger.

This endpoint returns the effects of a specific ledger.

Parameters

  • sequence (integer; path; required): the sequence number of a specific ledger.
  • cursor (integer; query): a number that points to a specific location in a collection of responses and is pulled from the paging_token value of a record.
  • order (string; query): a designation of the order in which records should appear. Options include asc (ascending) or desc (descending). If this argument isn’t set, it defaults to asc.
  • limit (integer; query): the maximum number of records returned. The limit can range from 1 to 200 - an upper limit that is hardcoded in Horizon for performance reasons. If this argument isn’t designated, it defaults to 10.

Returns

{
  "_links": {
    "self": {
      "href": "string",
      "templated": true
    },
    "next": {
      "href": "string",
      "templated": true
    },
    "prev": {
      "href": "string",
      "templated": true
    }
  },
  "_embedded": {
    "records": [
      {
        "_links": {
          "operation": {
            "href": "string",
            "templated": true
          },
          "succeeds": {
            "href": "string",
            "templated": true
          },
          "precedes": {
            "href": "string",
            "templated": true
          }
        },
        "id": "string",
        "paging_token": "string",
        "account": "string",
        "type": "Account Created",
        "type_i": 1,
        "created_at": "string"
      }
    ]
  }
}

Request example

curl https://rpc.ankr.com/http/stellar_horizon/ledgers/{sequence}/effects{?cursor,order,limit}

Response example

{
    "_links": {
        "self": {
            "href": "https://rpc.ankr.com/ledgers/0/effects?cursor=\u0026limit=1\u0026order=asc"
        },
        "next": {
            "href": "https://rpc.ankr.com/ledgers/0/effects?cursor=211459450643517441-1\u0026limit=1\u0026order=asc"
        },
        "prev": {
            "href": "https://rpc.ankr.com/ledgers/0/effects?cursor=211459450643517441-1\u0026limit=1\u0026order=desc"
        }
    },
    "_embedded": {
        "records": [
            {
                "_links": {
                    "operation": {
                        "href": "https://rpc.ankr.com/operations/211459450643517441"
                    },
                    "succeeds": {
                        "href": "https://rpc.ankr.com/effects?order=desc\u0026cursor=211459450643517441-1"
                    },
                    "precedes": {
                        "href": "https://rpc.ankr.com/effects?order=asc\u0026cursor=211459450643517441-1"
                    }
                },
                "id": "0211459450643517441-0000000001",
                "paging_token": "211459450643517441-1",
                "account": "GCV7NQTKV3ZZGC366FYVH2XOSZBOTQIOTHG7JJFJJP2XKCLGEYUZHRRR",
                "type": "account_credited",
                "type_i": 2,
                "created_at": "2023-11-29T10:37:29Z",
                "asset_type": "native",
                "amount": "0.0251621"
            }
        ]
    }
}

Liquidity pools

Liquidity pools provide a simple, non-interactive way to trade large amounts of capital and enable high volumes of trading.

GET /liquidity_pools

Lists all liquidity pools.

This endpoint lists all available liquidity pools.

Parameters

  • reserves (any; query): a comma-separated list of assets in canonical form (Code:IssuerAccountID), to only include liquidity pools which have reserves matching all listed assets.
  • account (any; query): a Stellar account ID, to only include liquidity pools in which this account is participating in (i.e. holds pool shares to).
  • cursor (integer; query): a number that points to a specific location in a collection of responses and is pulled from the paging_token value of a record.
  • order (string; query): a designation of the order in which records should appear. Options include asc (ascending) or desc (descending). If this argument isn’t set, it defaults to asc.
  • limit (integer; query): the maximum number of records returned. The limit can range from 1 to 200 - an upper limit that is hardcoded in Horizon for performance reasons. If this argument isn’t designated, it defaults to 10.

Returns

{
  "_links": {
    "self": {
      "href": "string",
      "templated": true
    },
    "next": {
      "href": "string",
      "templated": true
    },
    "prev": {
      "href": "string",
      "templated": true
    }
  },
  "_embedded": {
    "records": [
      {
        "id": "string",
        "paging_token": "string",
        "fee_bp": 0,
        "type": "string",
        "total_trustlines": "string",
        "total_shares": "string",
        "reserves": {
          "asset": "string",
          "amount": "string"
        },
        "last_modified_ledger": "string",
        "last_modified_time": "string"
      }
    ]
  }
}

Request example

curl https://rpc.ankr.com/http/stellar_horizon/liquidity_pools{?reserves,account,curson,order,limit}

Response example

{
    "_links": {
        "self": {
            "href": "https://rpc.ankr.com/liquidity_pools?cursor=\u0026limit=1\u0026order=asc"
        },
        "next": {
            "href": "https://rpc.ankr.com/liquidity_pools?cursor=0000a8198b5e25994c1ca5b0556faeb27325ac746296944144e0a7406d501e8a\u0026limit=1\u0026order=asc"
        },
        "prev": {
            "href": "https://rpc.ankr.com/liquidity_pools?cursor=0000a8198b5e25994c1ca5b0556faeb27325ac746296944144e0a7406d501e8a\u0026limit=1\u0026order=desc"
        }
    },
    "_embedded": {
        "records": [
            {
                "_links": {
                    "self": {
                        "href": "https://rpc.ankr.com/liquidity_pools/0000a8198b5e25994c1ca5b0556faeb27325ac746296944144e0a7406d501e8a"
                    },
                    "transactions": {
                        "href": "https://rpc.ankr.com/liquidity_pools/0000a8198b5e25994c1ca5b0556faeb27325ac746296944144e0a7406d501e8a/transactions{?cursor,limit,order}",
                        "templated": true
                    },
                    "operations": {
                        "href": "https://rpc.ankr.com/liquidity_pools/0000a8198b5e25994c1ca5b0556faeb27325ac746296944144e0a7406d501e8a/operations{?cursor,limit,order}",
                        "templated": true
                    }
                },
                "id": "0000a8198b5e25994c1ca5b0556faeb27325ac746296944144e0a7406d501e8a",
                "paging_token": "0000a8198b5e25994c1ca5b0556faeb27325ac746296944144e0a7406d501e8a",
                "fee_bp": 30,
                "type": "constant_product",
                "total_trustlines": "1",
                "total_shares": "5494.2144063",
                "reserves": [
                    {
                        "asset": "native",
                        "amount": "6.3915888"
                    },
                    {
                        "asset": "GOLDBANK001:GDEUQ2MX3YXMITFOTC3CO3GW5V3XE3IVG7JKLZZAOZ7WFYIN256INDUS",
                        "amount": "6259562.9445306"
                    }
                ],
                "last_modified_ledger": 49899809,
                "last_modified_time": "2024-01-13T13:23:26Z"
            }
        ]
    }
}

GET /liquidity_pools/{liquidity_pool_id}

Retrieves a particular liquidity pool.

The single liquidity pool endpoint provides information on a liquidity pool.

Parameters

  • liquidity_pool_id (any; path; required): a unique identifier for this liquidity pool.

Returns

{
  "_links": {
    "self": {
      "href": "string",
      "templated": true
    },
    "transactions": {
      "href": "string",
      "templated": true
    },
    "operations": {
      "href": "string",
      "templated": true
    }
  },
  "id": "string",
  "paging_token": "string",
  "fee_bp": 0,
  "type": "string",
  "total_trustlines": "string",
  "total_shares": "string",
  "reserves": {
    "asset": "string",
    "amount": "string"
  },
  "last_modified_ledger": "string",
  "last_modified_time": "string"
}

Request example

curl https://rpc.ankr.com/http/stellar_horizon/liquidity_pools/{liquidity_pool_id}

Response example

{
    "_links": {
        "self": {
            "href": "https://rpc.ankr.com/liquidity_pools/67260c4c1807b262ff851b0a3fe141194936bb0215b2f77447f1df11998eabb9"
        },
        "effects": {
            "href": "https://rpc.ankr.com/liquidity_pools/67260c4c1807b262ff851b0a3fe141194936bb0215b2f77447f1df11998eabb9/effects{?cursor,limit,order}",
            "templated": true
        },
        "operations": {
            "href": "https://rpc.ankr.com/liquidity_pools/67260c4c1807b262ff851b0a3fe141194936bb0215b2f77447f1df11998eabb9/operations{?cursor,limit,order}",
            "templated": true
        },
        "transactions": {
            "href": "https://rpc.ankr.com/liquidity_pools/67260c4c1807b262ff851b0a3fe141194936bb0215b2f77447f1df11998eabb9/transactions{?cursor,limit,order}",
            "templated": true
        }
    },
    "id": "67260c4c1807b262ff851b0a3fe141194936bb0215b2f77447f1df11998eabb9",
    "paging_token": "113725249324879873",
    "fee_bp": 30,
    "type": "constant_product",
    "total_trustlines": "300",
    "total_shares": "5000",
    "reserves": [
        {
            "amount": "1000.0000005",
            "asset": "EURT:GAP5LETOV6YIE62YAM56STDANPRDO7ZFDBGSNHJQIYGGKSMOZAHOOS2S"
        },
        {
            "amount": "2000.0000000",
            "asset": "PHP:GAP5LETOV6YIE62YAM56STDANPRDO7ZFDBGSNHJQIYGGKSMOZAHOOS2S"
        }
    ]
}

GET /liquidity_pools/{liquidity_pool_id}/effects

Retrieves effects of a particular liquidity pool.

This endpoint represents effects referencing a given liquidity pool and can be used in streaming mode. Streaming mode allows you to listen for new effects referencing this liquidity pool as they are added to the Stellar ledger. If called in streaming mode, Horizon will start at the earliest known effect unless a cursor is set, in which case it will start from that cursor. By setting the cursor value to now, you can stream effects created since your request time.

Parameters

  • liquidity_pool_id (any; path; required): a unique identifier for this liquidity pool.
  • cursor (integer; query): a number that points to a specific location in a collection of responses and is pulled from the paging_token value of a record.
  • order (string; query): a designation of the order in which records should appear. Options include asc (ascending) or desc (descending). If this argument isn’t set, it defaults to asc.
  • limit (integer; query): the maximum number of records returned. The limit can range from 1 to 200 - an upper limit that is hardcoded in Horizon for performance reasons. If this argument isn’t designated, it defaults to 10.

Returns

{
  "_links": {
    "self": {
      "href": "string",
      "templated": true
    },
    "next": {
      "href": "string",
      "templated": true
    },
    "prev": {
      "href": "string",
      "templated": true
    }
  },
  "_embedded": {
    "records": [
      {
        "_links": {
          "operation": {
            "href": "string",
            "templated": true
          },
          "succeeds": {
            "href": "string",
            "templated": true
          },
          "precedes": {
            "href": "string",
            "templated": true
          }
        },
        "id": "string",
        "paging_token": "string",
        "account": "string",
        "type": "Account Created",
        "type_i": 1,
        "created_at": "string"
      }
    ]
  }
}

Request example

curl https://rpc.ankr.com/http/stellar_horizon/liquidity_pools/{liquidity_pool_id}/effects{?cursor,order,limit}

Response example

{
    "_links": {
        "self": {
            "href": "https://rpc.ankr.com/liquidity_pools/67260c4c1807b262ff851b0a3fe141194936bb0215b2f77447f1df11998eabb9/effects?cursor=&order=asc"
        },
        "next": {
            "href": "https://rpc.ankr.com/liquidity_pools/67260c4c1807b262ff851b0a3fe141194936bb0215b2f77447f1df11998eabb9/effects?cursor=120192370561220608&order=asc"
        },
        "prev": {
            "href": "https://rpc.ankr.com/liquidity_pools/67260c4c1807b262ff851b0a3fe141194936bb0215b2f77447f1df11998eabb9/effects?cursor=120192344791343104&order=desc"
        }
    },
    "_embedded": {
        "records": [
            {
                "_links": {
                    "operation": {
                        "href": "https://rpc.ankr.com/operations/3849085266190337"
                    },
                    "succeeds": {
                        "href": "https://rpc.ankr.com/effects?order=desc&cursor=3849085266190337-1"
                    },
                    "precedes": {
                        "href": "https://rpc.ankr.com/effects?order=asc&cursor=3849085266190337-1"
                    }
                },
                "id": "0000000012884905986-0000000001",
                "paging_token": "12884905986-2",
                "account": "GAAZI4TCR3TY5OJHCTJC2A4QSY6CJWJH5IAJTGKIN2ER7LBNVKOCCWN7",
                "type": "liquidity_pool_deposited",
                "type_i": 81,
                "created_at": "2021-11-18T03:15:54Z",
                "liquidity_pool": {
                    "id": "67260c4c1807b262ff851b0a3fe141194936bb0215b2f77447f1df11998eabb9",
                    "fee_bp": 30,
                    "type": "constant_product",
                    "total_trustlines": "300",
                    "total_shares": "5000",
                    "reserves": [
                        {
                            "amount": "1000.0000005",
                            "asset": "EURT:GAP5LETOV6YIE62YAM56STDANPRDO7ZFDBGSNHJQIYGGKSMOZAHOOS2S"
                        },
                        {
                            "amount": "2000.0000000",
                            "asset": "PHP:GBUQWP3BOUZX34TOND2QV7QQ7K7VJTG6VSE7WMLBTMDJLLAW7YKGU6EP"
                        }
                    ]
                },
                "reserves_deposited": [
                    {
                        "asset": "EURT:GAP5LETOV6YIE62YAM56STDANPRDO7ZFDBGSNHJQIYGGKSMOZAHOOS2S",
                        "amount": "2378.0000005"
                    },
                    {
                        "asset": "PHP:GBUQWP3BOUZX34TOND2QV7QQ7K7VJTG6VSE7WMLBTMDJLLAW7YKGU6EP",
                        "amount": "983.0000005"
                    }
                ],
                "shares_received": "1000"
            }
        ]
    }
}

GET /liquidity_pools/{liquidity_pool_id}/trades

Retrieves trades of a particular liquidity pool.

This endpoint represents successful trades fulfilled by the given liquidity pool and can be used in streaming mode. Streaming mode allows you to listen for new trades referencing this liquidity pool as they are added to the Stellar ledger. If called in streaming mode, Horizon will start at the earliest known trade unless a cursor is set, in which case it will start from that cursor. By setting the cursor value to now, you can stream trade created since your request time.

Parameters

  • liquidity_pool_id (any; path; required): a unique identifier for this liquidity pool.
  • cursor (integer; query): a number that points to a specific location in a collection of responses and is pulled from the paging_token value of a record.
  • order (string; query): a designation of the order in which records should appear. Options include asc (ascending) or desc (descending). If this argument isn’t set, it defaults to asc.
  • limit (integer; query): the maximum number of records returned. The limit can range from 1 to 200 - an upper limit that is hardcoded in Horizon for performance reasons. If this argument isn’t designated, it defaults to 10.

Returns

{
  "_links": {
    "self": {
      "href": "string",
      "templated": true
    },
    "next": {
      "href": "string",
      "templated": true
    },
    "prev": {
      "href": "string",
      "templated": true
    }
  },
  "_embedded": {
    "records": [
      {
        "_links": {
          "self": {
            "href": "string",
            "templated": true
          },
          "base": {
            "href": "string",
            "templated": true
          },
          "counter": {
            "href": "string",
            "templated": true
          },
          "operation": {
            "href": "string",
            "templated": true
          }
        },
        "id": "string",
        "paging_token": "string",
        "ledger_close_time": "string",
        "offer_id": "string",
        "trade_type": "string",
        "liquidity_pool_fee_bp": 0,
        "base_liquidity_pool_id": "string",
        "base_offer_id": "string",
        "base_account": "string",
        "base_amount": "string",
        "base_asset_type": "string",
        "base_asset_code": "string",
        "base_asset_issuer": "string",
        "counter_liquidity_pool_id": "string",
        "counter_offer_id": "string",
        "counter_account": "string",
        "counter_amount": "string",
        "counter_asset_type": "string",
        "counter_asset_code": "string",
        "counter_asset_issuer": "string",
        "base_is_seller": true,
        "price": {
          "n": "string",
          "d": "string"
        }
      }
    ]
  }
}

Request example

curl https://rpc.ankr.com/http/stellar_horizon/liquidity_pools/{liquidity_pool_id}/trades{?cursor,order,limit}

Response example

{
    "_links": {
        "self": {
            "href": "https://rpc.ankr.com/liquidity_pools/3b476aff8a406a6ec3b61d5c038009cef85f2ddfaf616822dc4fec92845149b4/trades?cursor=\u0026limit=1\u0026order=asc"
        },
        "next": {
            "href": "https://rpc.ankr.com/liquidity_pools/3b476aff8a406a6ec3b61d5c038009cef85f2ddfaf616822dc4fec92845149b4/trades?cursor=212026605370699777-0\u0026limit=1\u0026order=asc"
        },
        "prev": {
            "href": "https://rpc.ankr.com/liquidity_pools/3b476aff8a406a6ec3b61d5c038009cef85f2ddfaf616822dc4fec92845149b4/trades?cursor=212026605370699777-0\u0026limit=1\u0026order=desc"
        }
    },
    "_embedded": {
        "records": [
            {
                "_links": {
                    "self": {
                        "href": ""
                    },
                    "base": {
                        "href": "https://rpc.ankr.com/accounts/GBEI3CDPMFUKZCJ3EFJNGO7UNQSFTKGGCFH6HUXGHLMJ4ML3H7P4Y7R6"
                    },
                    "counter": {
                        "href": "https://rpc.ankr.com/liquidity_pools/3b476aff8a406a6ec3b61d5c038009cef85f2ddfaf616822dc4fec92845149b4"
                    },
                    "operation": {
                        "href": "https://rpc.ankr.com/operations/212026605370699777"
                    }
                },
                "id": "212026605370699777-0",
                "paging_token": "212026605370699777-0",
                "ledger_close_time": "2023-12-08T09:16:26Z",
                "trade_type": "liquidity_pool",
                "liquidity_pool_fee_bp": 30,
                "base_offer_id": "4823712623798087681",
                "base_account": "GBEI3CDPMFUKZCJ3EFJNGO7UNQSFTKGGCFH6HUXGHLMJ4ML3H7P4Y7R6",
                "base_amount": "9.9125000",
                "base_asset_type": "native",
                "counter_liquidity_pool_id": "3b476aff8a406a6ec3b61d5c038009cef85f2ddfaf616822dc4fec92845149b4",
                "counter_amount": "1701.5904043",
                "counter_asset_type": "credit_alphanum4",
                "counter_asset_code": "VZT",
                "counter_asset_issuer": "GBENYXZDFFR2J4F4DB3YPBBAM244TXYOTIOOUQI5DBT3OKUU4ZJ2M7NO",
                "base_is_seller": false,
                "price": {
                    "n": "17015904043",
                    "d": "99125000"
                }
            }
        ]
    }
}

GET /liquidity_pools/{liquidity_pool_id}/transactions

Retrieves transactions of a particular liquidity pool.

This endpoint represents successful transactions referencing a given liquidity pool and can be used in streaming mode. Streaming mode allows you to listen for new transactions referencing this liquidity pool as they are added to the Stellar ledger. If called in streaming mode, Horizon will start at the earliest known transaction unless a cursor is set, in which case it will start from that cursor. By setting the cursor value to now, you can stream transactions created since your request time.

Parameters

  • liquidity_pool_id (any; path; required): a unique identifier for this liquidity pool.
  • cursor (integer; query): a number that points to a specific location in a collection of responses and is pulled from the paging_token value of a record.
  • order (string; query): a designation of the order in which records should appear. Options include asc (ascending) or desc (descending). If this argument isn’t set, it defaults to asc.
  • limit (integer; query): the maximum number of records returned. The limit can range from 1 to 200 - an upper limit that is hardcoded in Horizon for performance reasons. If this argument isn’t designated, it defaults to 10.
  • include_failed (boolean; query): set to true to include failed operations in results. Options include true and false.

Returns

{
  "_links": {
    "self": {
      "href": "string",
      "templated": true
    },
    "next": {
      "href": "string",
      "templated": true
    },
    "prev": {
      "href": "string",
      "templated": true
    }
  },
  "_embedded": {
    "records": [
      {
        "memo": "string",
        "_links": {
          "self": {
            "href": "string",
            "templated": true
          },
          "account": {
            "href": "string",
            "templated": true
          },
          "ledger": {
            "href": "string",
            "templated": true
          },
          "operations": {
            "href": "string",
            "templated": true
          },
          "effects": {
            "href": "string",
            "templated": true
          },
          "precedes": {
            "href": "string",
            "templated": true
          },
          "succeeds": {
            "href": "string",
            "templated": true
          },
          "transaction": {
            "href": "string",
            "templated": true
          }
        },
        "id": "string",
        "paging_token": "string",
        "successful": true,
        "hash": "string",
        "ledger": 0,
        "created_at": "string",
        "source_account": "string",
        "account_muxed": "string",
        "account_muxed_id": "string",
        "source_account_sequence": "string",
        "fee_account": "string",
        "fee_account_muxed": "string",
        "fee_account_muxed_id": "string",
        "fee_charged": "string",
        "max_fee": "string",
        "operation_count": 0,
        "envelope_xdr": "string",
        "result_xdr": "string",
        "result_meta_xdr": "string",
        "fee_meta_xdr": "string",
        "memo_type": "string",
        "signatures": [
          "string"
        ],
        "valid_after": "string",
        "valid_before": "string",
        "preconditions": {
          "timebounds": {
            "min_time": "string",
            "max_time": "string"
          },
          "ledgerbounds": {
            "min_ledger": "string",
            "max_ledger": "string"
          },
          "min_account_sequence": "string",
          "min_account_sequence_age": "string",
          "min_account_sequence_ledger_gap": 0,
          "extra_signers": [
            "string"
          ]
        },
        "fee_bump_transaction": {
          "hash": "string",
          "signatures": [
            "string"
          ]
        },
        "inner_transaction": {
          "hash": "string",
          "signatures": [
            "string"
          ],
          "max_fee": "string"
        }
      }
    ]
  }
}

Request example

curl https://rpc.ankr.com/http/stellar_horizon/liquidity_pools/{liquidity_pool_id}/transactions{?cursor,order,limit,include_failed}

Response example

{
    "_links": {
        "self": {
            "href": "https://rpc.ankr.com/liquidity_pools/3b476aff8a406a6ec3b61d5c038009cef85f2ddfaf616822dc4fec92845149b4/transactions?cursor=\u0026limit=1\u0026order=asc"
        },
        "next": {
            "href": "https://rpc.ankr.com/liquidity_pools/3b476aff8a406a6ec3b61d5c038009cef85f2ddfaf616822dc4fec92845149b4/transactions?cursor=212026605370699776\u0026limit=1\u0026order=asc"
        },
        "prev": {
            "href": "https://rpc.ankr.com/liquidity_pools/3b476aff8a406a6ec3b61d5c038009cef85f2ddfaf616822dc4fec92845149b4/transactions?cursor=212026605370699776\u0026limit=1\u0026order=desc"
        }
    },
    "_embedded": {
        "records": [
            {
                "_links": {
                    "self": {
                        "href": "https://rpc.ankr.com/transactions/f2c93ecfb152ad5a42114296518751781d44a5513833ab855f29122e93f3bb6d"
                    },
                    "account": {
                        "href": "https://rpc.ankr.com/accounts/GBEI3CDPMFUKZCJ3EFJNGO7UNQSFTKGGCFH6HUXGHLMJ4ML3H7P4Y7R6"
                    },
                    "ledger": {
                        "href": "https://rpc.ankr.com/ledgers/49366291"
                    },
                    "operations": {
                        "href": "https://rpc.ankr.com/transactions/f2c93ecfb152ad5a42114296518751781d44a5513833ab855f29122e93f3bb6d/operations{?cursor,limit,order}",
                        "templated": true
                    },
                    "effects": {
                        "href": "https://rpc.ankr.com/transactions/f2c93ecfb152ad5a42114296518751781d44a5513833ab855f29122e93f3bb6d/effects{?cursor,limit,order}",
                        "templated": true
                    },
                    "precedes": {
                        "href": "https://rpc.ankr.com/transactions?order=asc\u0026cursor=212026605370699776"
                    },
                    "succeeds": {
                        "href": "https://rpc.ankr.com/transactions?order=desc\u0026cursor=212026605370699776"
                    },
                    "transaction": {
                        "href": "https://rpc.ankr.com/transactions/f2c93ecfb152ad5a42114296518751781d44a5513833ab855f29122e93f3bb6d"
                    }
                },
                "id": "f2c93ecfb152ad5a42114296518751781d44a5513833ab855f29122e93f3bb6d",
                "paging_token": "212026605370699776",
                "successful": true,
                "hash": "f2c93ecfb152ad5a42114296518751781d44a5513833ab855f29122e93f3bb6d",
                "ledger": 49366291,
                "created_at": "2023-12-08T09:16:26Z",
                "source_account": "GBEI3CDPMFUKZCJ3EFJNGO7UNQSFTKGGCFH6HUXGHLMJ4ML3H7P4Y7R6",
                "source_account_sequence": "158971643161494781",
                "fee_account": "GBEI3CDPMFUKZCJ3EFJNGO7UNQSFTKGGCFH6HUXGHLMJ4ML3H7P4Y7R6",
                "fee_charged": "200",
                "max_fee": "200000",
                "operation_count": 2,
                "envelope_xdr": "AAAAAgAAAABIjYhvYWisiTshUtM79GwkWajGEU/j0uY62J4xez/fzAADDUACNMfeAABE/QAAAAAAAAAAAAAAAgAAAAEAAAAASI2Ib2ForIk7IVLTO/RsJFmoxhFP49LmOtie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AjTH3gAARPwAAAB0AAAAAQAAAADEccZDcGLJUGqJNC5TihraQE0vQc8dOiVfQyH3xuDhdQAAAAAAAAAJbG9ic3RyLmNvAAAAAQAAAAAAAAAAAAABAAAAJg293EYAAAAAAJiWfwAAAAIAAAAAAAAAAAAAAAAAAAADAAAAAALxRQsAAAAAZXLeuQAAAAAAAAABAvFFEwAAAAAAAAAASI2Ib2ForIk7IVLTO/RsJFmoxhFP49LmOtieMXs/38wAAAAAic7MdgI0x94AAET8AAAAdAAAAAEAAAAAxHHGQ3BiyVBqiTQuU4oa2kBNL0HPHTolX0Mh98bg4XUAAAAAAAAACWxvYnN0ci5jbwAAAAEAAAAAAAAAAAAAAQAAACYNvdxGAAAAAACYln8AAAACAAAAAAAAAAAAAAAAAAAAAwAAAAAC8UULAAAAAGVy3rkAAAAA",
                "memo_type": "none",
                "signatures": [
                    "9O2yimZGibf2Zc2CNW9PcfRlAaHQBpDUlKtCkx3IQSKlIp0F/rozUFUMqgdeyiuvH8n7Pg23g25f7x5n/EaYAA=="
                ]
            }
        ]
    }
}

GET /liquidity_pools/{liquidity_pool_id}/operations

Retrieves operations of a particular liquidity pool.

This endpoint represents successful operations referencing a given liquidity pool and can be used in streaming mode. Streaming mode allows you to listen for new operations referencing this liquidity pool as they are added to the Stellar ledger. If called in streaming mode, Horizon will start at the earliest known operation unless a cursor is set, in which case it will start from that cursor. By setting the cursor value to now, you can stream operations created since your request time.

Parameters

  • liquidity_pool_id (any; path; required): a unique identifier for this liquidity pool.
  • cursor (integer; query): a number that points to a specific location in a collection of responses and is pulled from the paging_token value of a record.
  • order (string; query): a designation of the order in which records should appear. Options include asc (ascending) or desc (descending). If this argument isn’t set, it defaults to asc.
  • limit (integer; query): the maximum number of records returned. The limit can range from 1 to 200 - an upper limit that is hardcoded in Horizon for performance reasons. If this argument isn’t designated, it defaults to 10.
  • include_failed (boolean; query): set to true to include failed operations in results. Options include true and false.
  • join (any; query): set to transactions to include the transactions which created each of the operations in the response.

Returns

{
  "_links": {
    "self": {
      "href": "string",
      "templated": true
    },
    "next": {
      "href": "string",
      "templated": true
    },
    "prev": {
      "href": "string",
      "templated": true
    },
    "effects": {
      "href": "string",
      "templated": true
    },
    "precedes": {
      "href": "string",
      "templated": true
    },
    "succeds": {
      "href": "string",
      "templated": true
    },
    "transaction": {
      "href": "string",
      "templated": true
    }
  },
  "id": "string",
  "paging_token": "string",
  "type_i": 0,
  "type": "create_account"
}

Request example

curl https://rpc.ankr.com/http/stellar_horizon/liquidity_pools/{liquidity_pool_id}/operations{?cursor,order,limit,include_failed,join}

Response parameters

{
    "_links": {
        "self": {
            "href": "https://rpc.ankr.com/liquidity_pools/67260c4c1807b262ff851b0a3fe141194936bb0215b2f77447f1df11998eabb9/operations?cursor=&limit=3&order=asc"
        },
        "next": {
            "href": "https://rpc.ankr.com/liquidity_pools/67260c4c1807b262ff851b0a3fe141194936bb0215b2f77447f1df11998eabb9/operations?cursor=120192452165550081&limit=3&order=asc"
        },
        "prev": {
            "href": "https://rpc.ankr.com/liquidity_pools/67260c4c1807b262ff851b0a3fe141194936bb0215b2f77447f1df11998eabb9/operations?cursor=120192344791343105&limit=3&order=desc"
        }
    },
    "_embedded": {
        "records": [
            {
                "id": "3697472920621057",
                "paging_token": "3697472920621057",
                "transaction_successful": true,
                "source_account": "GBB4JST32UWKOLGYYSCEYBHBCOFL2TGBHDVOMZP462ET4ZRD4ULA7S2L",
                "type": "liquidity_pool_withdraw",
                "type_i": 23,
                "created_at": "2021-11-18T03:47:47Z",
                "transaction_hash": "43ed5ce19190822ec080b67c3ccbab36a56bc34102b1a21d3ee690ed3bc23378",
                "liquidity_pool_id": "67260c4c1807b262ff851b0a3fe141194936bb0215b2f77447f1df11998eabb9",
                "reserves_min": [
                    {
                        "asset": "EURT:GAP5LETOV6YIE62YAM56STDANPRDO7ZFDBGSNHJQIYGGKSMOZAHOOS2S",
                        "min": "1000.0000005"
                    },
                    {
                        "asset": "PHP:GAP5LETOV6YIE62YAM56STDANPRDO7ZFDBGSNHJQIYGGKSMOZAHOOS2S",
                        "min": "3000.0000005"
                    }
                ],
                "shares": "200",
                "reserves_received": [
                    {
                        "asset": "EURT:GAP5LETOV6YIE62YAM56STDANPRDO7ZFDBGSNHJQIYGGKSMOZAHOOS2S",
                        "amount": "993.0000005"
                    },
                    {
                        "asset": "PHP:GAP5LETOV6YIE62YAM56STDANPRDO7ZFDBGSNHJQIYGGKSMOZAHOOS2S",
                        "amount": "2478.0000005"
                    }
                ]
            },
            {
                "id": "157639717969326081",
                "paging_token": "157639717969326081",
                "transaction_successful": true,
                "source_account": "GBBWI7TEVQBPEUXKYNGI3GBAH7EHFEREONKK3UK56ZSLJIDIYHQJCVSG",
                "type": "change_trust",
                "type_i": 6,
                "created_at": "2021-08-04T20:01:24Z",
                "transaction_hash": "941f2fa2101d1265696a3c7d35e7688cd210324114e96b64a386ab55f65e488f",
                "asset_type": "liquidity_pool_shares",
                "liquidity_pool_id": "67260c4c1807b262ff851b0a3fe141194936bb0215b2f77447f1df11998eabb9",
                "limit": "1000",
                "trustor": "GBBWI7TEVQBPEUXKYNGI3GBAH7EHFEREONKK3UK56ZSLJIDIYHQJCVSG"
            }
        ]
    }
}

Offers

Offers are statements about how much of an asset an account wants to buy or sell.

GET /offers

Lists all offers.

This endpoint lists all currently open offers and can be used in streaming mode. Streaming mode allows you to listen for new offers as they are added to the Stellar ledger. If called in streaming mode, Horizon will start at the earliest known offer unless a cursor is set, in which case it will start from that cursor. By setting the cursor value to now, you can stream offers created since your request time. When filtering by buying or selling arguments, you must use a combination of selling_asset_type, selling_asset_issuer, and selling_asset_code for the selling asset, or a combination of buying_asset_type, buying_asset_issuer, and buying_asset_code for the buying asset.

Parameters

  • sponsor (string; query): an account ID of the sponsor. Every account in the response will either be sponsored by the given account ID or have a sub-entry (trustline, offer, or data entry) which is sponsored by the given account ID.
  • seller (any; query): the account ID of the offer creator.
  • selling_asset_type (string; query): the type for the selling asset. Either native, credit_alphanum4, or credit_alphanum12.
  • selling_asset_issuer (any; query): the Stellar address of the selling asset’s issuer.
  • selling_asset_code (any; query): the code for the selling asset.
  • buying_asset_type (string; query): the type for the buying asset. Either native, credit_alphanum4, or credit_alphanum12.
  • buying_asset_issuer (any; query): the Stellar address of the buying asset’s issuer.
  • buying_asset_code (any; query): the code for the buying asset.
  • cursor (integer; query): a number that points to a specific location in a collection of responses and is pulled from the paging_token value of a record.
  • order (string; query): a designation of the order in which records should appear. Options include asc (ascending) or desc (descending). If this argument isn’t set, it defaults to asc.
  • limit (integer; query): the maximum number of records returned. The limit can range from 1 to 200 - an upper limit that is hardcoded in Horizon for performance reasons. If this argument isn’t designated, it defaults to 10.

Returns

{
  "_links": {
    "self": {
      "href": "string",
      "templated": true
    },
    "next": {
      "href": "string",
      "templated": true
    },
    "prev": {
      "href": "string",
      "templated": true
    }
  },
  "_embedded": {
    "records": [
      {
        "_links": {
          "self": {
            "href": "string",
            "templated": true
          },
          "offer_maker": {
            "href": "string",
            "templated": true
          }
        },
        "id": "string",
        "paging_token": "string",
        "seller": "string",
        "selling": {
          "asset_type": "string",
          "asset_code": "string",
          "asset_issuer": "string"
        },
        "buying": {
          "asset_type": "string",
          "asset_code": "string",
          "asset_issuer": "string"
        },
        "amount": "string",
        "price_r": {
          "n": 0,
          "d": 0
        },
        "price": "string",
        "last_modified_ledger": 0,
        "last_modified_time": "string",
        "sponser": "string"
      }
    ]
  }
}

Request example

curl https://rpc.ankr.com/http/stellar_horizon/offers{?selling,buying,seller,sponsor,cursor,limit,order}

Response example

{
    "_links": {
        "self": {
            "href": "https://rpc.ankr.com/offers?cursor=\u0026limit=3\u0026order=asc\u0026selling_asset_code=USD\u0026selling_asset_issuer=GDUKMGUGDZQK6YHYA5Z6AY2G4XDSZPSZ3SW5UN3ARVMO6QSRDWP5YLEX\u0026selling_asset_type=credit_alphanum4"
        },
        "next": {
            "href": "https://rpc.ankr.com/offers?cursor=126423127\u0026limit=3\u0026order=asc\u0026selling_asset_code=USD\u0026selling_asset_issuer=GDUKMGUGDZQK6YHYA5Z6AY2G4XDSZPSZ3SW5UN3ARVMO6QSRDWP5YLEX\u0026selling_asset_type=credit_alphanum4"
        },
        "prev": {
            "href": "https://rpc.ankr.com/offers?cursor=71673427\u0026limit=3\u0026order=desc\u0026selling_asset_code=USD\u0026selling_asset_issuer=GDUKMGUGDZQK6YHYA5Z6AY2G4XDSZPSZ3SW5UN3ARVMO6QSRDWP5YLEX\u0026selling_asset_type=credit_alphanum4"
        }
    },
    "_embedded": {
        "records": [
            {
                "_links": {
                    "self": {
                        "href": "https://rpc.ankr.com/offers/71673427"
                    },
                    "offer_maker": {
                        "href": "https://rpc.ankr.com/accounts/GBJPWEIFX6KO4H52BF3QJDYRCLXB2P3Z3QTKWUGFOOFH5MSRZV4WLRZ7"
                    }
                },
                "id": "71673427",
                "paging_token": "71673427",
                "seller": "GBJPWEIFX6KO4H52BF3QJDYRCLXB2P3Z3QTKWUGFOOFH5MSRZV4WLRZ7",
                "selling": {
                    "asset_type": "credit_alphanum4",
                    "asset_code": "USD",
                    "asset_issuer": "GDUKMGUGDZQK6YHYA5Z6AY2G4XDSZPSZ3SW5UN3ARVMO6QSRDWP5YLEX"
                },
                "buying": {
                    "asset_type": "credit_alphanum4",
                    "asset_code": "BTC",
                    "asset_issuer": "GAUTUYY2THLF7SGITDFMXJVYH3LHDSMGEAKSBU267M2K7A3W543CKUEF"
                },
                "amount": "25.6545775",
                "price_r": {
                    "n": 289696073,
                    "d": 25654776
                },
                "price": "11.2920913",
                "last_modified_ledger": 26981646,
                "last_modified_time": null
            }
        ]
    }
}

GET /offers/{offer_id}

Retrieves a particular offer.

The single offer endpoint provides information on a specific offer.

Parameters

  • offer_id (any; path; required): a unique identifier for this offer.

Returns

{
  "_links": {
    "self": {
      "href": "string",
      "templated": true
    },
    "next": {
      "href": "string",
      "templated": true
    },
    "prev": {
      "href": "string",
      "templated": true
    }
  },
  "_embedded": {
    "records": [
      {
        "_links": {
          "self": {
            "href": "string",
            "templated": true
          },
          "offer_maker": {
            "href": "string",
            "templated": true
          }
        },
        "id": "string",
        "paging_token": "string",
        "seller": "string",
        "selling": {
          "asset_type": "string",
          "asset_code": "string",
          "asset_issuer": "string"
        },
        "buying": {
          "asset_type": "string",
          "asset_code": "string",
          "asset_issuer": "string"
        },
        "amount": "string",
        "price_r": {
          "n": 0,
          "d": 0
        },
        "price": "string",
        "last_modified_ledger": 0,
        "last_modified_time": "string",
        "sponser": "string"
      }
    ]
  }
}

Request example

curl https://rpc.ankr.com/http/stellar_horizon/offers/{offer_id}

Response example

{
    "_links": {
        "self": {
            "href": "https://rpc.ankr.com/offers/165563085"
        },
        "offer_maker": {
            "href": "https://rpc.ankr.com/accounts/GCM4PT6XDZBWOOENDS6FOU22GJQLJPV2GC7VRVII4TFGZBA3ZXNM55SV"
        }
    },
    "id": 165563085,
    "paging_token": "165563085",
    "seller": "GCM4PT6XDZBWOOENDS6FOU22GJQLJPV2GC7VRVII4TFGZBA3ZXNM55SV",
    "selling": {
        "asset_type": "credit_alphanum4",
        "asset_code": "USD",
        "asset_issuer": "GDUKMGUGDZQK6YHYA5Z6AY2G4XDSZPSZ3SW5UN3ARVMO6QSRDWP5YLEX"
    },
    "buying": {
        "asset_type": "native"
    },
    "amount": "26.1075388",
    "price_r": {
        "n": 1449156725,
        "d": 84642346
    },
    "price": "17.1209423",
    "last_modified_ledger": 28412042,
    "last_modified_time": null
}

GET /offers/{offer_id}/trades

Retrieves all trades of a particular offer.

This endpoint represents all trades for a given offer and can be used in streaming mode. Streaming mode allows you to listen for trades for this offer as they are added to the Stellar ledger. If called in streaming mode, Horizon will start at the earliest known trade unless a cursor is set, in which case it will start from that cursor. By setting the cursor value to now, you can stream trades created since your request time.

Parameters

  • offer_id (any; path; required): a unique identifier for this offer.
  • cursor (integer; query): a number that points to a specific location in a collection of responses and is pulled from the paging_token value of a record.
  • order (string; query): a designation of the order in which records should appear. Options include asc (ascending) or desc (descending). If this argument isn’t set, it defaults to asc.
  • limit (integer; query): the maximum number of records returned. The limit can range from 1 to 200 - an upper limit that is hardcoded in Horizon for performance reasons. If this argument isn’t designated, it defaults to 10.

Returns

{
  "_links": {
    "self": {
      "href": "string",
      "templated": true
    },
    "next": {
      "href": "string",
      "templated": true
    },
    "prev": {
      "href": "string",
      "templated": true
    }
  },
  "_embedded": {
    "records": [
      {
        "_links": {
          "self": {
            "href": "string",
            "templated": true
          },
          "base": {
            "href": "string",
            "templated": true
          },
          "counter": {
            "href": "string",
            "templated": true
          },
          "operation": {
            "href": "string",
            "templated": true
          }
        },
        "id": "string",
        "paging_token": "string",
        "ledger_close_time": "string",
        "offer_id": "string",
        "trade_type": "string",
        "liquidity_pool_fee_bp": 0,
        "base_liquidity_pool_id": "string",
        "base_offer_id": "string",
        "base_account": "string",
        "base_amount": "string",
        "base_asset_type": "string",
        "base_asset_code": "string",
        "base_asset_issuer": "string",
        "counter_liquidity_pool_id": "string",
        "counter_offer_id": "string",
        "counter_account": "string",
        "counter_amount": "string",
        "counter_asset_type": "string",
        "counter_asset_code": "string",
        "counter_asset_issuer": "string",
        "base_is_seller": true,
        "price": {
          "n": "string",
          "d": "string"
        }
      }
    ]
  }
}

Request example

curl https://rpc.ankr.com/http/stellar_horizon/offers/{offer_id}/trades{?cursor,limit,order}

Response example

{
    "_links": {
        "self": {
            "href": "https://rpc.ankr.com/offers/104078276/trades?cursor=&limit=3&order=asc"
        },
        "next": {
            "href": "https://rpc.ankr.com/offers/104078276/trades?cursor=107449584845914113-0&limit=3&order=asc"
        },
        "prev": {
            "href": "https://rpc.ankr.com/offers/104078276/trades?cursor=107449468881756161-0&limit=3&order=desc"
        }
    },
    "_embedded": {
        "records": [
            {
                "_links": {
                    "self": {
                        "href": ""
                    },
                    "base": {
                        "href": "https://rpc.ankr.com/accounts/GCO7OW5P2PP7WDN6YUDXUUOPAR4ZHJSDDCZTIAQRTRZHKQWV45WUPBWX"
                    },
                    "counter": {
                        "href": "https://rpc.ankr.com/accounts/GD3CJYUTZAY6JQF4CEI6Z7VW5O6VNGKZTBYUECTOJPEDTB7I2HZSPI2K"
                    },
                    "operation": {
                        "href": "https://rpc.ankr.com/operations/107449468881756161"
                    }
                },
                "id": "107449468881756161-0",
                "paging_token": "107449468881756161-0",
                "ledger_close_time": "2019-07-26T09:17:02Z",
                "offer_id": "104078276",
                "base_offer_id": "104078276",
                "base_account": "GCO7OW5P2PP7WDN6YUDXUUOPAR4ZHJSDDCZTIAQRTRZHKQWV45WUPBWX",
                "base_amount": "4433.2000000",
                "base_asset_type": "native",
                "counter_offer_id": "4719135487309144065",
                "counter_account": "GD3CJYUTZAY6JQF4CEI6Z7VW5O6VNGKZTBYUECTOJPEDTB7I2HZSPI2K",
                "counter_amount": "443.3200000",
                "counter_asset_type": "credit_alphanum4",
                "counter_asset_code": "BB1",
                "counter_asset_issuer": "GD5J6HLF5666X4AZLTFTXLY46J5SW7EXRKBLEYPJP33S33MXZGV6CWFN",
                "base_is_seller": true,
                "price": {
                    "n": 1,
                    "d": 10
                }
            }
        ]
    }
}

Operations

Operations are objects that represent a desired change to the ledger: payments, offers to exchange currency, changes made to account options, etc. Operations are submitted to the Stellar network grouped in a Transaction.

GET /operations

Lists all operations.

This endpoint lists all Successful operations and can be used in streaming mode. Streaming mode allows you to listen for new operations as they are added to the Stellar ledger. If called in streaming mode, Horizon will start at the earliest known operation unless a cursor is set, in which case it will start from that cursor. By setting the cursor value to now, you can stream operations created since your request time.

Parameters

  • cursor (integer; query): a number that points to a specific location in a collection of responses and is pulled from the paging_token value of a record.
  • order (string; query): a designation of the order in which records should appear. Options include asc (ascending) or desc (descending). If this argument isn’t set, it defaults to asc.
  • limit (integer; query): the maximum number of records returned. The limit can range from 1 to 200 - an upper limit that is hardcoded in Horizon for performance reasons. If this argument isn’t designated, it defaults to 10.
  • include_failed (boolean; query): set to true to include failed operations in results. Options include true and false.
  • join (any; query): set to transactions to include the transactions which created each of the operations in the response.

Returns

{
  "_links": {
    "self": {
      "href": "string",
      "templated": true
    },
    "next": {
      "href": "string",
      "templated": true
    },
    "prev": {
      "href": "string",
      "templated": true
    },
    "effects": {
      "href": "string",
      "templated": true
    },
    "precedes": {
      "href": "string",
      "templated": true
    },
    "succeds": {
      "href": "string",
      "templated": true
    },
    "transaction": {
      "href": "string",
      "templated": true
    }
  },
  "id": "string",
  "paging_token": "string",
  "type_i": 0,
  "type": "create_account"
}

Request example

curl https://rpc.ankr.com/http/stellar_horizon/operations{?cursor,limit,order,include_failed,join}

Response example

{
    "_links": {
        "self": {
            "href": "https://rpc.ankr.com/operations?cursor=\u0026limit=1\u0026order=asc"
        },
        "next": {
            "href": "https://rpc.ankr.com/operations?cursor=211459450643419137\u0026limit=1\u0026order=asc"
        },
        "prev": {
            "href": "https://rpc.ankr.com/operations?cursor=211459450643419137\u0026limit=1\u0026order=desc"
        }
    },
    "_embedded": {
        "records": [
            {
                "_links": {
                    "self": {
                        "href": "https://rpc.ankr.com/operations/211459450643419137"
                    },
                    "transaction": {
                        "href": "https://rpc.ankr.com/transactions/f6ae066da1fa185c4c610b44499d7263b2cc14e33725c83bd2f0ff2e364be7ba"
                    },
                    "effects": {
                        "href": "https://rpc.ankr.com/operations/211459450643419137/effects"
                    },
                    "succeeds": {
                        "href": "https://rpc.ankr.com/effects?order=desc\u0026cursor=211459450643419137"
                    },
                    "precedes": {
                        "href": "https://rpc.ankr.com/effects?order=asc\u0026cursor=211459450643419137"
                    }
                },
                "id": "211459450643419137",
                "paging_token": "211459450643419137",
                "transaction_successful": true,
                "source_account": "GBIAUMQXLF2LHKWCUPWJX7YWSA33DZMTZ42HJCIBE2OBDU23XCEQF6TA",
                "type": "manage_buy_offer",
                "type_i": 12,
                "created_at": "2023-11-29T10:37:29Z",
                "transaction_hash": "f6ae066da1fa185c4c610b44499d7263b2cc14e33725c83bd2f0ff2e364be7ba",
                "amount": "0.0500000",
                "price": "2050.3600000",
                "price_r": {
                    "n": 51259,
                    "d": 25
                },
                "buying_asset_type": "credit_alphanum12",
                "buying_asset_code": "aeETH",
                "buying_asset_issuer": "GALLBRBQHAPW5FOVXXHYWR6J4ZDAQ35BMSNADYGBW25VOUHUYRZM4XIL",
                "selling_asset_type": "credit_alphanum4",
                "selling_asset_code": "USDC",
                "selling_asset_issuer": "GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN",
                "offer_id": "1413266664"
            }
        ]
    }
}

GET /operations/{id}

Retrieves a particular operation.

The single operation endpoint provides information about a specific operation.

Parameters

  • id (string; path; required): the ID number for this operation.
  • join (any; query): set to transactions to include the transactions which created each of the operations in the response.

Returns

{
  "_links": {
    "self": {
      "href": "string",
      "templated": true
    },
    "next": {
      "href": "string",
      "templated": true
    },
    "prev": {
      "href": "string",
      "templated": true
    },
    "effects": {
      "href": "string",
      "templated": true
    },
    "precedes": {
      "href": "string",
      "templated": true
    },
    "succeds": {
      "href": "string",
      "templated": true
    },
    "transaction": {
      "href": "string",
      "templated": true
    }
  },
  "id": "string",
  "paging_token": "string",
  "type_i": 0,
  "type": "create_account"
}

Request example

curl https://rpc.ankr.com/http/stellar_horizon/operations/{id}{?join}

Response example

{
    "_links": {
        "self": {
            "href": "https://rpc.ankr.com/operations/121692259040116737"
        },
        "transaction": {
            "href": "https://rpc.ankr.com/transactions/f92a9648c1084d1de0fd786faac5d5e1637d4127c60841d2366c70d2e7f77b85"
        },
        "effects": {
            "href": "https://rpc.ankr.com/operations/121692259040116737/effects"
        },
        "succeeds": {
            "href": "https://rpc.ankr.com/effects?order=desc\u0026cursor=121692259040116737"
        },
        "precedes": {
            "href": "https://rpc.ankr.com/effects?order=asc\u0026cursor=121692259040116737"
        }
    },
    "id": "121692259040116737",
    "paging_token": "121692259040116737",
    "transaction_successful": true,
    "source_account": "GBDVKE33GVVMBXX73OHIBRP6RAHKHHW2P4PQVV6UNOKQCOXU7GNUM4QI",
    "type": "manage_sell_offer",
    "type_i": 3,
    "created_at": "2020-02-21T20:10:21Z",
    "transaction_hash": "f92a9648c1084d1de0fd786faac5d5e1637d4127c60841d2366c70d2e7f77b85",
    "amount": "10000.0000000",
    "price": "0.0704336",
    "price_r": {
        "n": 44021,
        "d": 625000
    },
    "buying_asset_type": "credit_alphanum4",
    "buying_asset_code": "USD",
    "buying_asset_issuer": "GDUKMGUGDZQK6YHYA5Z6AY2G4XDSZPSZ3SW5UN3ARVMO6QSRDWP5YLEX",
    "selling_asset_type": "native",
    "offer_id": "161536436"
}

GET /operations/{id}/effects

Retrieves all effects of a particular operation.

This endpoint returns the effects of a specific operation.

Parameters

  • id (string; path; required): the ID number for this operation.
  • order (string; query): a designation of the order in which records should appear. Options include asc (ascending) or desc (descending). If this argument isn’t set, it defaults to asc.
  • limit (integer; query): the maximum number of records returned. The limit can range from 1 to 200 - an upper limit that is hardcoded in Horizon for performance reasons. If this argument isn’t designated, it defaults to 10.
  • include_failed (boolean; query): set to true to include failed operations in results. Options include true and false.

Returns

{
  "_links": {
    "self": {
      "href": "string",
      "templated": true
    },
    "next": {
      "href": "string",
      "templated": true
    },
    "prev": {
      "href": "string",
      "templated": true
    }
  },
  "_embedded": {
    "records": [
      {
        "_links": {
          "operation": {
            "href": "string",
            "templated": true
          },
          "succeeds": {
            "href": "string",
            "templated": true
          },
          "precedes": {
            "href": "string",
            "templated": true
          }
        },
        "id": "string",
        "paging_token": "string",
        "account": "string",
        "type": "Account Created",
        "type_i": 1,
        "created_at": "string"
      }
    ]
  }
}

Request example

curl https://rpc.ankr.com/http/stellar_horizon/operations/{id}/effects{?order,limit,cursor}

Response example

{
    "_links": {
        "self": {
            "href": "https://rpc.ankr.com/operations/121693057904021505/effects?cursor=\u0026limit=1\u0026order=asc"
        },
        "next": {
            "href": "https://rpc.ankr.com/operations/121693057904021505/effects?cursor=121693057904021505-1\u0026limit=1\u0026order=asc"
        },
        "prev": {
            "href": "https://rpc.ankr.com/operations/121693057904021505/effects?cursor=121693057904021505-1\u0026limit=1\u0026order=desc"
        }
    },
    "_embedded": {
        "records": [
            {
                "_links": {
                    "operation": {
                        "href": "https://rpc.ankr.com/operations/121693057904021505"
                    },
                    "succeeds": {
                        "href": "https://rpc.ankr.com/effects?order=desc\u0026cursor=121693057904021505-1"
                    },
                    "precedes": {
                        "href": "https://rpc.ankr.com/effects?order=asc\u0026cursor=121693057904021505-1"
                    }
                },
                "id": "0121693057904021505-0000000001",
                "paging_token": "121693057904021505-1",
                "account": "GALSPNVKGNRJ3VIOQ26QKPZBDCTVJK7XPLSPF3UVZV3JJXCKVCHNSPCK",
                "type": "account_credited",
                "type_i": 2,
                "created_at": "2020-02-21T20:27:30Z",
                "asset_type": "credit_alphanum4",
                "asset_code": "NODL",
                "asset_issuer": "GB2Y3AWXVROM2BHFQKQPTWKIOI3TZEBBD3LTKTVQTKEPXGOBE742NODL",
                "amount": "0.0000027"
            }
        ]
    }
}

GET /payments

Lists all payments.

This endpoint lists all Successful payment-related operations and can be used in streaming mode. Streaming mode allows you to listen for new payments as they are added to the Stellar ledger. If called in streaming mode, Horizon will start at the earliest known payment unless a cursor is set, in which case it will start from that cursor. By setting the cursor value to now, you can stream payments created since your request time. Operations that can be returned by this endpoint include: create_account, payment, path_payment_strict_recieve, path_payment_strict_send, and account_merge.

Parameters

  • cursor (integer; query): a number that points to a specific location in a collection of responses and is pulled from the paging_token value of a record.
  • order (string; query): a designation of the order in which records should appear. Options include asc (ascending) or desc (descending). If this argument isn’t set, it defaults to asc.
  • limit (integer; query): the maximum number of records returned. The limit can range from 1 to 200 - an upper limit that is hardcoded in Horizon for performance reasons. If this argument isn’t designated, it defaults to 10.
  • include_failed (boolean; query): set to true to include failed operations in results. Options include true and false.
  • join (any; query): set to transactions to include the transactions which created each of the operations in the response.

Returns

{
  "_links": {
    "self": {
      "href": "string",
      "templated": true
    },
    "next": {
      "href": "string",
      "templated": true
    },
    "prev": {
      "href": "string",
      "templated": true
    },
    "transaction": {
      "href": "string",
      "templated": true
    },
    "effects": {
      "href": "string",
      "templated": true
    },
    "succeeds": {
      "href": "string",
      "templated": true
    },
    "precedes": {
      "href": "string",
      "templated": true
    }
  },
  "id": "string",
  "paging_token": "string",
  "transaction_successful": true,
  "source_account": "string",
  "type": "create_account",
  "type_i": 0,
  "created_at": "string",
  "transaction_hash": "string",
  "starting_balance": "string",
  "funder": "string",
  "account": "string"
}

Request example

curl https://rpc.ankr.com/http/stellar_horizon/payments{?curson,order,limit,include_failed,join}

Response example

{
    "_links": {
        "self": {
            "href": "https://rpc.ankr.com/payments?cursor=\u0026limit=1\u0026order=asc"
        },
        "next": {
            "href": "https://rpc.ankr.com/payments?cursor=211459450643517441\u0026limit=1\u0026order=asc"
        },
        "prev": {
            "href": "https://rpc.ankr.com/payments?cursor=211459450643517441\u0026limit=1\u0026order=desc"
        }
    },
    "_embedded": {
        "records": [
            {
                "_links": {
                    "self": {
                        "href": "https://rpc.ankr.com/operations/211459450643517441"
                    },
                    "transaction": {
                        "href": "https://rpc.ankr.com/transactions/4dc95da8e9ecb3b7e4f33e8d2ab0b817bea718932b793336f7a35b388999168f"
                    },
                    "effects": {
                        "href": "https://rpc.ankr.com/operations/211459450643517441/effects"
                    },
                    "succeeds": {
                        "href": "https://rpc.ankr.com/effects?order=desc\u0026cursor=211459450643517441"
                    },
                    "precedes": {
                        "href": "https://rpc.ankr.com/effects?order=asc\u0026cursor=211459450643517441"
                    }
                },
                "id": "211459450643517441",
                "paging_token": "211459450643517441",
                "transaction_successful": true,
                "source_account": "GCV7NQTKV3ZZGC366FYVH2XOSZBOTQIOTHG7JJFJJP2XKCLGEYUZHRRR",
                "type": "path_payment_strict_receive",
                "type_i": 2,
                "created_at": "2023-11-29T10:37:29Z",
                "transaction_hash": "4dc95da8e9ecb3b7e4f33e8d2ab0b817bea718932b793336f7a35b388999168f",
                "asset_type": "native",
                "from": "GCV7NQTKV3ZZGC366FYVH2XOSZBOTQIOTHG7JJFJJP2XKCLGEYUZHRRR",
                "to": "GCV7NQTKV3ZZGC366FYVH2XOSZBOTQIOTHG7JJFJJP2XKCLGEYUZHRRR",
                "amount": "0.0251621",
                "path": [
                    {
                        "asset_type": "credit_alphanum4",
                        "asset_code": "yXLM",
                        "asset_issuer": "GARDNV3Q7YGT4AKSDF25LT32YSCCW4EV22Y2TV3I2PU2MMXJTEDL5T55"
                    },
                    {
                        "asset_type": "credit_alphanum4",
                        "asset_code": "MKR",
                        "asset_issuer": "GD67CI2DXVTTVK5NJK3LBBUEZAZKCVZ3MSDUV656XNYRLHJOLZ5LHUMB"
                    },
                    {
                        "asset_type": "credit_alphanum4",
                        "asset_code": "ETX",
                        "asset_issuer": "GCEFMSNWXTALXQPRQFIXOMWJHZFDEQJBM26RGEDZUDFMU32JB6WJGRJX"
                    },
                    {
                        "asset_type": "credit_alphanum4",
                        "asset_code": "SLVR",
                        "asset_issuer": "GBZVELEQD3WBN3R3VAG64HVBDOZ76ZL6QPLSFGKWPFED33Q3234NSLVR"
                    }
                ],
                "source_amount": "0.0237050",
                "source_max": "0.0251621",
                "source_asset_type": "native"
            }
        ]
    }
}

Trades

When an offer is fully or partially fulfilled, a trade happens. Trades can also be caused by successful path payments, because path payments involve fulfilling offers.

A trade occurs between two parties — base and counter. Which is which is either arbitrary or determined by the calling query.

GET /trades

Lists all trades.

This endpoint lists all trades and can be used in streaming mode. Streaming mode allows you to listen for new trades as they are added to the Stellar ledger. If called in streaming mode, Horizon will start at the earliest known trade unless a cursor is set, in which case it will start from that cursor. By setting the cursor value to now, you can stream trades created since your request time. When filtering for a specific orderbook, you must use all six of these arguments: base_asset_type, base_asset_issuer, base_asset_code, counter_asset_type, counter_asset_issuer, and counter_asset_code. If the base or counter asset is XLM, you only need to indicate the asset type as native and do not need to designate the code or the issuer.

Parameters

  • offer_id (any; query): the offer ID. Used to filter for trades originating from a specific offer.
  • base_asset_type (string; query): the type for the base asset. Either native, credit_alphanum4, or credit_alphanum12.
  • base_asset_issuer (string; query): the Stellar address of the base asset’s issuer.
  • base_asset_code (string; query): the code for the base asset.
  • counter_asset_type (string; query): the type for the counter asset. Either native, credit_alphanum4, or credit_alphanum12.
  • counter_asset_issuer (string; query): the Stellar address of the counter asset’s issuer.
  • counter_asset_code (any; query): the code for the counter asset.
  • trade_type (string; query): can be set to all, orderbook, or liquidity_pools to filter only trades executed across a given mechanism.
  • cursor (integer; query): a number that points to a specific location in a collection of responses and is pulled from the paging_token value of a record.
  • order (string; query): a designation of the order in which records should appear. Options include asc (ascending) or desc (descending). If this argument isn’t set, it defaults to asc.
  • limit (integer; query): the maximum number of records returned. The limit can range from 1 to 200 - an upper limit that is hardcoded in Horizon for performance reasons. If this argument isn’t designated, it defaults to 10.

Returns

{
  "_links": {
    "self": {
      "href": "string",
      "templated": true
    },
    "next": {
      "href": "string",
      "templated": true
    },
    "prev": {
      "href": "string",
      "templated": true
    }
  },
  "_embedded": {
    "records": [
      {
        "_links": {
          "self": {
            "href": "string",
            "templated": true
          },
          "base": {
            "href": "string",
            "templated": true
          },
          "counter": {
            "href": "string",
            "templated": true
          },
          "operation": {
            "href": "string",
            "templated": true
          }
        },
        "id": "string",
        "paging_token": "string",
        "ledger_close_time": "string",
        "offer_id": "string",
        "trade_type": "string",
        "liquidity_pool_fee_bp": 0,
        "base_liquidity_pool_id": "string",
        "base_offer_id": "string",
        "base_account": "string",
        "base_amount": "string",
        "base_asset_type": "string",
        "base_asset_code": "string",
        "base_asset_issuer": "string",
        "counter_liquidity_pool_id": "string",
        "counter_offer_id": "string",
        "counter_account": "string",
        "counter_amount": "string",
        "counter_asset_type": "string",
        "counter_asset_code": "string",
        "counter_asset_issuer": "string",
        "base_is_seller": true,
        "price": {
          "n": "string",
          "d": "string"
        }
      }
    ]
  }
}

Request example

curl https://rpc.ankr.com/http/stellar_horizon/trades{?offer_id,base_asset_type,base_asset_issuer,base_asset_code,counter_asset_type,counter_asset_issuer,counter_asset_code,trade_type,cursor, order,limit}
{
    "_links": {
        "self": {
            "href": "https://rpc.ankr.com/trades?base_asset_code=USD\u0026base_asset_issuer=GDUKMGUGDZQK6YHYA5Z6AY2G4XDSZPSZ3SW5UN3ARVMO6QSRDWP5YLEX\u0026base_asset_type=credit_alphanum4\u0026counter_asset_type=native\u0026cursor=\u0026limit=1\u0026order=asc"
        },
        "next": {
            "href": "https://rpc.ankr.com/trades?base_asset_code=USD\u0026base_asset_issuer=GDUKMGUGDZQK6YHYA5Z6AY2G4XDSZPSZ3SW5UN3ARVMO6QSRDWP5YLEX\u0026base_asset_type=credit_alphanum4\u0026counter_asset_type=native\u0026cursor=211460674709372929-0\u0026limit=1\u0026order=asc"
        },
        "prev": {
            "href": "https://rpc.ankr.com/trades?base_asset_code=USD\u0026base_asset_issuer=GDUKMGUGDZQK6YHYA5Z6AY2G4XDSZPSZ3SW5UN3ARVMO6QSRDWP5YLEX\u0026base_asset_type=credit_alphanum4\u0026counter_asset_type=native\u0026cursor=211460674709372929-0\u0026limit=1\u0026order=desc"
        }
    },
    "_embedded": {
        "records": [
            {
                "_links": {
                    "self": {
                        "href": ""
                    },
                    "base": {
                        "href": "https://rpc.ankr.com/liquidity_pools/a75f810b19fd77af3955da980679db82dacb4264a0062493d08fe935aab4993e"
                    },
                    "counter": {
                        "href": "https://rpc.ankr.com/accounts/GA4QH4AJGERVYX4PBY55JYTQJ4RTLJIBYV7OCYIV56LWZE5MVDH3R3UQ"
                    },
                    "operation": {
                        "href": "https://rpc.ankr.com/operations/211460674709372929"
                    }
                },
                "id": "211460674709372929-0",
                "paging_token": "211460674709372929-0",
                "ledger_close_time": "2023-11-29T11:05:31Z",
                "trade_type": "liquidity_pool",
                "liquidity_pool_fee_bp": 30,
                "base_liquidity_pool_id": "a75f810b19fd77af3955da980679db82dacb4264a0062493d08fe935aab4993e",
                "base_amount": "0.0071205",
                "base_asset_type": "credit_alphanum4",
                "base_asset_code": "USD",
                "base_asset_issuer": "GDUKMGUGDZQK6YHYA5Z6AY2G4XDSZPSZ3SW5UN3ARVMO6QSRDWP5YLEX",
                "counter_offer_id": "4823146693136760833",
                "counter_account": "GA4QH4AJGERVYX4PBY55JYTQJ4RTLJIBYV7OCYIV56LWZE5MVDH3R3UQ",
                "counter_amount": "0.0618899",
                "counter_asset_type": "native",
                "base_is_seller": true,
                "price": {
                    "n": "618899",
                    "d": "71205"
                }
            }
        ]
    }
}

Transactions

Transactions are commands that modify the ledger state and consist of one or more operations.

GET /transactions

This endpoint lists all Successful transactions and can be used in streaming mode. Streaming mode allows you to listen for new transactions as they are added to the Stellar ledger. If called in streaming mode, Horizon will start at the earliest known transaction unless a cursor is set, in which case it will start from that cursor. By setting the cursor value to now, you can stream transactions created since your request time.

Parameters

  • cursor (integer; query): a number that points to a specific location in a collection of responses and is pulled from the paging_token value of a record.
  • order (string; query): a designation of the order in which records should appear. Options include asc (ascending) or desc (descending). If this argument isn’t set, it defaults to asc.
  • limit (integer; query): the maximum number of records returned. The limit can range from 1 to 200 - an upper limit that is hardcoded in Horizon for performance reasons. If this argument isn’t designated, it defaults to 10.
  • include_failed (boolean; query): set to true to include failed operations in results. Options include true and false.

Returns

{
  "_links": {
    "self": {
      "href": "string",
      "templated": true
    },
    "next": {
      "href": "string",
      "templated": true
    },
    "prev": {
      "href": "string",
      "templated": true
    }
  },
  "_embedded": {
    "records": [
      {
        "memo": "string",
        "_links": {
          "self": {
            "href": "string",
            "templated": true
          },
          "account": {
            "href": "string",
            "templated": true
          },
          "ledger": {
            "href": "string",
            "templated": true
          },
          "operations": {
            "href": "string",
            "templated": true
          },
          "effects": {
            "href": "string",
            "templated": true
          },
          "precedes": {
            "href": "string",
            "templated": true
          },
          "succeeds": {
            "href": "string",
            "templated": true
          },
          "transaction": {
            "href": "string",
            "templated": true
          }
        },
        "id": "string",
        "paging_token": "string",
        "successful": true,
        "hash": "string",
        "ledger": 0,
        "created_at": "string",
        "source_account": "string",
        "account_muxed": "string",
        "account_muxed_id": "string",
        "source_account_sequence": "string",
        "fee_account": "string",
        "fee_account_muxed": "string",
        "fee_account_muxed_id": "string",
        "fee_charged": "string",
        "max_fee": "string",
        "operation_count": 0,
        "envelope_xdr": "string",
        "result_xdr": "string",
        "result_meta_xdr": "string",
        "fee_meta_xdr": "string",
        "memo_type": "string",
        "signatures": [
          "string"
        ],
        "valid_after": "string",
        "valid_before": "string",
        "preconditions": {
          "timebounds": {
            "min_time": "string",
            "max_time": "string"
          },
          "ledgerbounds": {
            "min_ledger": "string",
            "max_ledger": "string"
          },
          "min_account_sequence": "string",
          "min_account_sequence_age": "string",
          "min_account_sequence_ledger_gap": 0,
          "extra_signers": [
            "string"
          ]
        },
        "fee_bump_transaction": {
          "hash": "string",
          "signatures": [
            "string"
          ]
        },
        "inner_transaction": {
          "hash": "string",
          "signatures": [
            "string"
          ],
          "max_fee": "string"
        }
      }
    ]
  }
}

Request example

curl https://rpc.ankr.com/http/stellar_horizon/transactions{?cursor,order,limit,include_failed}

Response example

{
    "_links": {
        "self": {
            "href": "https://rpc.ankr.com/transactions?cursor=\u0026limit=1\u0026order=asc"
        },
        "next": {
            "href": "https://rpc.ankr.com/transactions?cursor=211459450643419136\u0026limit=1\u0026order=asc"
        },
        "prev": {
            "href": "https://rpc.ankr.com/transactions?cursor=211459450643419136\u0026limit=1\u0026order=desc"
        }
    },
    "_embedded": {
        "records": [
            {
                "_links": {
                    "self": {
                        "href": "https://rpc.ankr.com/transactions/f6ae066da1fa185c4c610b44499d7263b2cc14e33725c83bd2f0ff2e364be7ba"
                    },
                    "account": {
                        "href": "https://rpc.ankr.com/accounts/GBS7JRJRFZWPOQQ7HWZKX4T2JPLTTCANSTW22SE6XM2A2ALNBYXCCYHX"
                    },
                    "ledger": {
                        "href": "https://rpc.ankr.com/ledgers/49234240"
                    },
                    "operations": {
                        "href": "https://rpc.ankr.com/transactions/f6ae066da1fa185c4c610b44499d7263b2cc14e33725c83bd2f0ff2e364be7ba/operations{?cursor,limit,order}",
                        "templated": true
                    },
                    "effects": {
                        "href": "https://rpc.ankr.com/transactions/f6ae066da1fa185c4c610b44499d7263b2cc14e33725c83bd2f0ff2e364be7ba/effects{?cursor,limit,order}",
                        "templated": true
                    },
                    "precedes": {
                        "href": "https://rpc.ankr.com/transactions?order=asc\u0026cursor=211459450643419136"
                    },
                    "succeeds": {
                        "href": "https://rpc.ankr.com/transactions?order=desc\u0026cursor=211459450643419136"
                    },
                    "transaction": {
                        "href": "https://rpc.ankr.com/transactions/f6ae066da1fa185c4c610b44499d7263b2cc14e33725c83bd2f0ff2e364be7ba"
                    }
                },
                "id": "f6ae066da1fa185c4c610b44499d7263b2cc14e33725c83bd2f0ff2e364be7ba",
                "paging_token": "211459450643419136",
                "successful": true,
                "hash": "f6ae066da1fa185c4c610b44499d7263b2cc14e33725c83bd2f0ff2e364be7ba",
                "ledger": 49234240,
                "created_at": "2023-11-29T10:37:29Z",
                "source_account": "GBS7JRJRFZWPOQQ7HWZKX4T2JPLTTCANSTW22SE6XM2A2ALNBYXCCYHX",
                "source_account_sequence": "208381320597235999",
                "fee_account": "GBS7JRJRFZWPOQQ7HWZKX4T2JPLTTCANSTW22SE6XM2A2ALNBYXCCYHX",
                "fee_charged": "1000",
                "max_fee": "1000",
                "operation_count": 10,
                "envelope_xdr": "AAAAAgAAAABl9MUxLmz3Qh89sqvyekvXOYgNlO2tSJ67NA0BbQ4uIQAAA+gC5FG1AAZpHwAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAoAAAABAAAAAFAKMhdZdLOqwqPsm/8WkDex5ZPPNHSJASacEdNbuIkCAAAADAAAAAFVU0RDAAAAADuZETgO/piLoKiQDrHP5E82b32+lGvtB3JA9/Yk3xXFAAAAAmFlRVRIAAAAAAAAAAAAAAAWsMQwOB9uldW9z4tHyeZGCG+hZJoB4MG2u1dQ9MRyzgAAAAAAB6EgAADIOwAAABkAAAAAVDy86AAAAAEAAAAAUAoyF1l0s6rCo+yb/xaQN7Hlk880dIkBJpwR01u4iQIAAAAMAAAAAVVTREMAAAAAO5kROA7+mIugqJAOsc/kTzZvfb6Ua+0HckD39iTfFcUAAAACYWVFVEgAAAAAAAAAAAAAABawxDA4H26V1b3Pi0fJ5kYIb6FkmgHgwba7V1D0xHLOAAAAAAAPQkAAAMgx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AAAABQCjIXWXSzqsKj7Jv/FpA3seWTzzR0iQEmnBHTW7iJAgAAAAFVU0RDAAAAADuZETgO/piLoKiQDrHP5E82b32+lGvtB3JA9/Yk3xXFAAAAEK/MaGR//////////wAAAAEAAAABAAAAA5dk6fgAAAADlBsCoAAAAAAAAAAAAAAAAA==",
                "fee_meta_xdr": "AAAAAgAAAAMC70E/AAAAAAAAAABl9MUxLmz3Qh89sqvyekvXOYgNlO2tSJ67NA0BbQ4uIQAAAAIE6A0WAuRRtQAGaR4AAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAADAAAAAALvQT8AAAAAZWcUXwAAAAAAAAABAu9BQAAAAAAAAAAAZfTFMS5s90IfPbKr8npL1zmIDZTtrUieuzQNAW0OLiEAAAACBOgJLgLkUbUABmkeAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAwAAAAAC70E/AAAAAGVnFF8AAAAA",
                "memo_type": "none",
                "signatures": [
                    "pRy2H2sW8PWb6h7oPzYu7J9DRkU5/F+i9tRNtq7VizlcdgJ8tiLq2LvZUtpI2zv9iBEoMYC7iTiowFg5mgDOCg==",
                    "ESUokQ5Wm3uVNqUIzFcdVGofTFq7PTQ7115l+RbjEEGpLTrzK86CdrZrBjQwo0F+/1PzOjH0R7IVCnOzvi+gDA=="
                ],
                "valid_after": "1970-01-01T00:00:00Z",
                "preconditions": {
                    "timebounds": {
                        "min_time": "0"
                    }
                }
            }
        ]
    }
}

POST /transactions

Submits a transaction.

This endpoint actually submits a transaction to the Stellar network. It only takes a single, required parameter: the signed transaction. Refer to the Transactions page for details on how to craft a proper one. If you submit a transaction that has already been included in a ledger, this endpoint will return the same response as would’ve been returned for the original transaction submission. This allows for safe resubmission of transactions in error scenarios, as highlighted in the error-handling guide.

Parameters

  • tx (string; query; required): a signed transaction.

Returns

{
  "_embedded": {
    "records": [
      {
        "memo": "string",
        "memo_bytes": "string",
        "_links": {
          "self": {
            "href": "string",
            "templated": true
          },
          "account": {
            "href": "string",
            "templated": true
          },
          "ledger": {
            "href": "string",
            "templated": true
          },
          "operations": {
            "href": "string",
            "templated": true
          },
          "effects": {
            "href": "string",
            "templated": true
          },
          "precedes": {
            "href": "string",
            "templated": true
          },
          "succeeds": {
            "href": "string",
            "templated": true
          },
          "transaction": {
            "href": "string",
            "templated": true
          }
        },
        "id": "string",
        "paging_token": "string",
        "successful": true,
        "hash": "string",
        "ledger": 0,
        "created_at": "string",
        "source_account": "string",
        "account_muxed": "string",
        "account_muxed_id": "string",
        "source_account_sequence": "string",
        "fee_account": "string",
        "fee_account_muxed": "string",
        "fee_account_muxed_id": "string",
        "fee_charged": "string",
        "max_fee": "string",
        "operation_count": 0,
        "envelope_xdr": "string",
        "result_xdr": "string",
        "result_meta_xdr": "string",
        "fee_meta_xdr": "string",
        "memo_type": "string",
        "signatures": [
          "string"
        ],
        "valid_after": "string",
        "valid_before": "string",
        "preconditions": {
          "timebounds": {
            "min_time": "string",
            "max_time": "string"
          },
          "ledgerbounds": {
            "min_ledger": "string",
            "max_ledger": "string"
          },
          "min_account_sequence": "string",
          "min_account_sequence_age": "string",
          "min_account_sequence_ledger_gap": 0,
          "extra_signers": [
            "string"
          ]
        },
        "fee_bump_transaction": {
          "hash": "string",
          "signatures": [
            "string"
          ]
        },
        "inner_transaction": {
          "hash": "string",
          "signatures": [
            "string"
          ],
          "max_fee": "string"
        }
      }
    ]
  }
}

Request example

curl -X POST https://rpc.ankr.com/http/stellar_horizon/transactions{?tx}

Response example

{
    "memo": "Test Transaction",
    "memo_bytes": "VGVzdCBUcmFuc2FjdGlvbg==",
    "_links": {
        "self": {
            "href": "https://rpc.ankr.com/transactions/8ef0c6d60357bf91b0b0d7800b747ff02bf73117d3e017690cbff641ca67f124"
        },
        "account": {
            "href": "https://rpc.ankr.com/accounts/GCIHAQVWZH2AB5BB5NP63FBSIREG77LQZZNUVKD2LN2IOCLOT6N72MJN"
        },
        "ledger": {
            "href": "https://rpc.ankr.com/ledgers/139575"
        },
        "operations": {
            "href": "https://rpc.ankr.com/transactions/8ef0c6d60357bf91b0b0d7800b747ff02bf73117d3e017690cbff641ca67f124/operations{?cursor,limit,order}",
            "templated": true
        },
        "effects": {
            "href": "https://rpc.ankr.com/transactions/8ef0c6d60357bf91b0b0d7800b747ff02bf73117d3e017690cbff641ca67f124/effects{?cursor,limit,order}",
            "templated": true
        },
        "precedes": {
            "href": "https://rpc.ankr.com/transactions?order=asc&cursor=599470060347392"
        },
        "succeeds": {
            "href": "https://rpc.ankr.com/transactions?order=desc&cursor=599470060347392"
        },
        "transaction": {
            "href": "https://rpc.ankr.com/transactions/8ef0c6d60357bf91b0b0d7800b747ff02bf73117d3e017690cbff641ca67f124"
        }
    },
    "id": "8ef0c6d60357bf91b0b0d7800b747ff02bf73117d3e017690cbff641ca67f124",
    "paging_token": "599470060347392",
    "successful": true,
    "hash": "8ef0c6d60357bf91b0b0d7800b747ff02bf73117d3e017690cbff641ca67f124",
    "ledger": 139575,
    "created_at": "2021-03-25T21:14:11Z",
    "source_account": "GCIHAQVWZH2AB5BB5NP63FBSIREG77LQZZNUVKD2LN2IOCLOT6N72MJN",
    "source_account_sequence": "599336916353025",
    "fee_account": "GCIHAQVWZH2AB5BB5NP63FBSIREG77LQZZNUVKD2LN2IOCLOT6N72MJN",
    "fee_charged": "100",
    "max_fee": "100",
    "operation_count": 1,
    "envelope_xdr": "AAAAAgAAAACQcEK2yfQA9CHrX+2UMkRIb/1wzltKqHpbdIcJbp+b/QAAAGQAAiEYAAAAAQAAAAEAAAAAAAAAAAAAAABgXP3QAAAAAQAAABBUZXN0IFRyYW5zYWN0aW9uAAAAAQAAAAAAAAABAAAAAJBwQrbJ9AD0Ietf7ZQyREhv/XDOW0qoelt0hwlun5v9AAAAAAAAAAAF9eEAAAAAAAAAAAFun5v9AAAAQKdJnG8QRiv9xGp1Oq7ACv/xR2BnNqjfUHrGNua7m4tWbrun3+GmAj6ca3xz+4ZppWRTbvTUcCxvpbHERZ85QgY=",
    "result_xdr": "AAAAAAAAAGQAAAAAAAAAAQAAAAAAAAABAAAAAAAAAAA=",
    "result_meta_xdr": "AAAAAgAAAAIAAAADAAIhNwAAAAAAAAAAkHBCtsn0APQh61/tlDJESG/9cM5bSqh6W3SHCW6fm/0AAAAXSHbnnAACIRgAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAIhNwAAAAAAAAAAkHBCtsn0APQh61/tlDJESG/9cM5bSqh6W3SHCW6fm/0AAAAXSHbnnAACIRgAAAABAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAA=",
    "fee_meta_xdr": "AAAAAgAAAAMAAiEYAAAAAAAAAACQcEK2yfQA9CHrX+2UMkRIb/1wzltKqHpbdIcJbp+b/QAAABdIdugAAAIhGAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAAiE3AAAAAAAAAACQcEK2yfQA9CHrX+2UMkRIb/1wzltKqHpbdIcJbp+b/QAAABdIduecAAIhGAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==",
    "memo_type": "text",
    "signatures": [
        "p0mcbxBGK/3EanU6rsAK//FHYGc2qN9QesY25rubi1Zuu6ff4aYCPpxrfHP7hmmlZFNu9NRwLG+lscRFnzlCBg=="
    ],
    "valid_after": "1970-01-01T00:00:00Z",
    "valid_before": "2021-03-25T21:17:04Z"
}

GET /transactions/{transaction_hash}

Retrieves a particular transaction.

The single transaction endpoint provides information on a specific transaction.

Parameters

  • transaction_hash (string; path; required): transactions are commands that modify the ledger state and consist of one or more operations.

Returns

{
  "_links": {
    "self": {
      "href": "string",
      "templated": true
    },
    "account": {
      "href": "string",
      "templated": true
    },
    "ledger": {
      "href": "string",
      "templated": true
    },
    "operations": {
      "href": "string",
      "templated": true
    },
    "effects": {
      "href": "string",
      "templated": true
    },
    "precedes": {
      "href": "string",
      "templated": true
    },
    "succeeds": {
      "href": "string",
      "templated": true
    }
  },
  "id": "string",
  "paging_token": "string",
  "successful": true,
  "hash": "string",
  "ledger": 0,
  "created_at": "string",
  "source_account": "string",
  "account_muxed": "string",
  "account_muxed_id": "string",
  "source_account_sequence": "string",
  "fee_account": "string",
  "fee_account_muxed": "string",
  "fee_account_muxed_id": "string",
  "fee_charged": "string",
  "max_fee": "string",
  "operation_count": 0,
  "envelope_xdr": "string",
  "result_xdr": "string",
  "result_meta_xdr": "string",
  "fee_meta_xdr": "string",
  "memo_type": "string",
  "signatures": [
    "string"
  ]
}

Request example

curl https://rpc.ankr.com/http/stellar_horizon/transactions/{transaction_hash}

Response example

{
    "_links": {
        "self": {
            "href": "https://rpc.ankr.com/transactions/5ebd5c0af4385500b53dd63b0ef5f6e8feef1a7e1c86989be3cdcce825f3c0cc"
        },
        "account": {
            "href": "https://rpc.ankr.com/accounts/GDI5EK4HNMBHJJQGP3GUXQJIIOHU2CJO3LABPWD6WYSPJZP5NP67TMNN"
        },
        "ledger": {
            "href": "https://rpc.ankr.com/ledgers/27963785"
        },
        "operations": {
            "href": "https://rpc.ankr.com/transactions/5ebd5c0af4385500b53dd63b0ef5f6e8feef1a7e1c86989be3cdcce825f3c0cc/operations{?cursor,limit,order}",
            "templated": true
        },
        "effects": {
            "href": "https://rpc.ankr.com/transactions/5ebd5c0af4385500b53dd63b0ef5f6e8feef1a7e1c86989be3cdcce825f3c0cc/effects{?cursor,limit,order}",
            "templated": true
        },
        "precedes": {
            "href": "https://rpc.ankr.com/transactions?order=asc\u0026cursor=120103542047408128"
        },
        "succeeds": {
            "href": "https://rpc.ankr.com/transactions?order=desc\u0026cursor=120103542047408128"
        },
        "transaction": {
            "href": "https://rpc.ankr.com/transactions/5ebd5c0af4385500b53dd63b0ef5f6e8feef1a7e1c86989be3cdcce825f3c0cc"
        }
    },
    "id": "5ebd5c0af4385500b53dd63b0ef5f6e8feef1a7e1c86989be3cdcce825f3c0cc",
    "paging_token": "120103542047408128",
    "successful": true,
    "hash": "5ebd5c0af4385500b53dd63b0ef5f6e8feef1a7e1c86989be3cdcce825f3c0cc",
    "ledger": 27963785,
    "created_at": "2020-01-28T10:03:33Z",
    "source_account": "GDI5EK4HNMBHJJQGP3GUXQJIIOHU2CJO3LABPWD6WYSPJZP5NP67TMNN",
    "source_account_sequence": "65046128646685383",
    "fee_account": "GDI5EK4HNMBHJJQGP3GUXQJIIOHU2CJO3LABPWD6WYSPJZP5NP67TMNN",
    "fee_charged": "100",
    "max_fee": "100",
    "operation_count": 1,
    "envelope_xdr": "AAAAANHSK4drAnSmBn7NS8EoQ49NCS7awBfYfrYk9OX9a/35AAAAZADnFxwAAALHAAAAAAAAAAAAAAABAAAAAQAAAADR0iuHawJ0pgZ+zUvBKEOPTQku2sAX2H62JPTl/Wv9+QAAAAEAAAAA+qpaPAsU/CGcSeS4KnvqE9y+Bcjhyr1l6jiwixRsvu8AAAABTkdOVAAAAAAs4YIuYne69wMuNtfiZ64gb7E3qnTR7A4yD4jZDSS8AQAAAdGpSiAAAAAAAAAAAAH9a/35AAAAQM5LSBiFRQKtFYRPpNabwVuvIhZSVRDaajf0KzYaqJmgaXAlFaTOYyYc11YuxUM1Fzl1VT4UEbI22BvO/8HzUgQ=",
    "result_xdr": "AAAAAAAAAGQAAAAAAAAAAQAAAAAAAAABAAAAAAAAAAA=",
    "result_meta_xdr": "AAAAAgAAAAIAAAADAaqxiQAAAAAAAAAA0dIrh2sCdKYGfs1LwShDj00JLtrAF9h+tiT05f1r/fkAAAAAAhWQlADnFxwAAALGAAAAAQAAAAEAAAAAhD8BLsZFQEF33rKS6YopQUT3b6iLBG4nspe68/DBNBYAAAAAAAAAAAEAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEBqrGJAAAAAAAAAADR0iuHawJ0p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ME0FgAAAAAAAAAAAQAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQGqsYkAAAAAAAAAANHSK4drAnSmBn7NS8EoQ49NCS7awBfYfrYk9OX9a/35AAAAAAIVkJQA5xccAAACxgAAAAEAAAABAAAAAIQ/AS7GRUBBd96ykumKKUFE92+oiwRuJ7KXuvPwwTQWAAAAAAAAAAABAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=",
    "memo_type": "none",
    "signatures": [
        "zktIGIVFAq0VhE+k1pvBW68iFlJVENpqN/QrNhqomaBpcCUVpM5jJhzXVi7FQzUXOXVVPhQRsjbYG87/wfNSBA=="
    ]
}

GET /transactions/{transaction_hash}/operations

Retrieves all operations of a particular transaction.

This endpoint returns Successful operations for a specific transaction.

Parameters

  • transaction_hash (string; path; required): transactions are commands that modify the ledger state and consist of one or more operations.
  • cursor (integer; query): a number that points to a specific location in a collection of responses and is pulled from the paging_token value of a record.
  • order (string; query): a designation of the order in which records should appear. Options include asc (ascending) or desc (descending). If this argument isn’t set, it defaults to asc.
  • limit (integer; query): the maximum number of records returned. The limit can range from 1 to 200 - an upper limit that is hardcoded in Horizon for performance reasons. If this argument isn’t designated, it defaults to 10.
  • include_failed (boolean; query): set to true to include failed operations in results. Options include true and false.
  • join (any; query): set to transactions to include the transactions which created each of the operations in the response.

Returns

{
  "_links": {
    "self": {
      "href": "string",
      "templated": true
    },
    "next": {
      "href": "string",
      "templated": true
    },
    "prev": {
      "href": "string",
      "templated": true
    },
    "effects": {
      "href": "string",
      "templated": true
    },
    "precedes": {
      "href": "string",
      "templated": true
    },
    "succeeds": {
      "href": "string",
      "templated": true
    },
    "transaction": {
      "href": "string",
      "templated": true
    }
  },
  "id": "string",
  "paging_token": "string",
  "type_i": 0,
  "type": "create_account"
}

Request example

curl https://rpc.ankr.com/http/stellar_horizon/transactions/{transaction_hash}/operations{?cursor,order,limit,include_failed,join}

Response example

{
    "_links": {
        "self": {
            "href": "https://rpc.ankr.com/transactions/6b983a4e0dc3c04f4bd6b9037c55f70a09c434dfd01492be1077cf7ea68c2e4a/operations?cursor=\u0026limit=1\u0026order=asc"
        },
        "next": {
            "href": "https://rpc.ankr.com/transactions/6b983a4e0dc3c04f4bd6b9037c55f70a09c434dfd01492be1077cf7ea68c2e4a/operations?cursor=120133379185221633\u0026limit=1\u0026order=asc"
        },
        "prev": {
            "href": "https://rpc.ankr.com/transactions/6b983a4e0dc3c04f4bd6b9037c55f70a09c434dfd01492be1077cf7ea68c2e4a/operations?cursor=120133379185221633\u0026limit=1\u0026order=desc"
        }
    },
    "_embedded": {
        "records": [
            {
                "_links": {
                    "self": {
                        "href": "https://rpc.ankr.com/operations/120133379185221633"
                    },
                    "transaction": {
                        "href": "https://rpc.ankr.com/transactions/6b983a4e0dc3c04f4bd6b9037c55f70a09c434dfd01492be1077cf7ea68c2e4a"
                    },
                    "effects": {
                        "href": "https://rpc.ankr.com/operations/120133379185221633/effects"
                    },
                    "succeeds": {
                        "href": "https://rpc.ankr.com/effects?order=desc\u0026cursor=120133379185221633"
                    },
                    "precedes": {
                        "href": "https://rpc.ankr.com/effects?order=asc\u0026cursor=120133379185221633"
                    }
                },
                "id": "120133379185221633",
                "paging_token": "120133379185221633",
                "transaction_successful": true,
                "source_account": "GDJX67SFY2N73H72TWMKKBQP5UPBNKBNUMNE2IGFKNES43S4327X6DHG",
                "type": "manage_buy_offer",
                "type_i": 12,
                "created_at": "2020-01-28T21:14:59Z",
                "transaction_hash": "6b983a4e0dc3c04f4bd6b9037c55f70a09c434dfd01492be1077cf7ea68c2e4a",
                "amount": "0.0000000",
                "price": "0.0001000",
                "price_r": {
                    "n": 1,
                    "d": 10000
                },
                "buying_asset_type": "native",
                "selling_asset_type": "credit_alphanum4",
                "selling_asset_code": "ETH",
                "selling_asset_issuer": "GBDEVU63Y6NTHJQQZIKVTC23NWLQVP3WJ2RI2OTSJTNYOIGICST6DUXR",
                "offer_id": "149983118"
            }
        ]
    }
}

GET /transactions/{transaction_hash}/effects

Retrieves all effects of a particular transaction.

This endpoint returns the effects of a specific transaction.

Parameters

  • transaction_hash (string; path; required): transactions are commands that modify the ledger state and consist of one or more operations.
  • cursor (integer; query): a number that points to a specific location in a collection of responses and is pulled from the paging_token value of a record.
  • order (string; query): a designation of the order in which records should appear. Options include asc (ascending) or desc (descending). If this argument isn’t set, it defaults to asc.
  • limit (integer; query): the maximum number of records returned. The limit can range from 1 to 200 - an upper limit that is hardcoded in Horizon for performance reasons. If this argument isn’t designated, it defaults to 10.

Returns

{
  "_links": {
    "self": {
      "href": "string",
      "templated": true
    },
    "next": {
      "href": "string",
      "templated": true
    },
    "prev": {
      "href": "string",
      "templated": true
    }
  },
  "_embedded": {
    "records": [
      {
        "_links": {
          "operation": {
            "href": "string",
            "templated": true
          },
          "succeeds": {
            "href": "string",
            "templated": true
          },
          "precedes": {
            "href": "string",
            "templated": true
          }
        },
        "id": "string",
        "paging_token": "string",
        "account": "string",
        "type": "Account Created",
        "type_i": 1,
        "created_at": "string"
      }
    ]
  }
}

Request example

curl https://rpc.ankr.com/http/stellar_horizon/transactions/{transaction_hash}/effects{?cursor,order,limit}

Response example

{
    "_links": {
        "self": {
            "href": "https://rpc.ankr.com/transactions/512a9946bc7ff4a363299f14f79e0beb9b9cdbd0103e3a69a44446a0aa6471a8/effects?cursor=\u0026limit=1\u0026order=asc"
        },
        "next": {
            "href": "https://rpc.ankr.com/transactions/512a9946bc7ff4a363299f14f79e0beb9b9cdbd0103e3a69a44446a0aa6471a8/effects?cursor=121628667754319873-1\u0026limit=1\u0026order=asc"
        },
        "prev": {
            "href": "https://rpc.ankr.com/transactions/512a9946bc7ff4a363299f14f79e0beb9b9cdbd0103e3a69a44446a0aa6471a8/effects?cursor=121628667754319873-1\u0026limit=1\u0026order=desc"
        }
    },
    "_embedded": {
        "records": [
            {
                "_links": {
                    "operation": {
                        "href": "https://rpc.ankr.com/operations/121628667754319873"
                    },
                    "succeeds": {
                        "href": "https://rpc.ankr.com/effects?order=desc\u0026cursor=121628667754319873-1"
                    },
                    "precedes": {
                        "href": "https://rpc.ankr.com/effects?order=asc\u0026cursor=121628667754319873-1"
                    }
                },
                "id": "0121628667754319873-0000000001",
                "paging_token": "121628667754319873-1",
                "account": "GAHK7EEG2WWHVKDNT4CEQFZGKF2LGDSW2IVM4S5DP42RBW3K6BTODB4A",
                "type": "account_credited",
                "type_i": 2,
                "created_at": "2020-02-20T21:18:33Z",
                "asset_type": "native",
                "amount": "1573.5112616"
            }
        ]
    }
}

Soroban JSON-RPC methods

getEvents

Retrieves contract events.

Clients can request a filtered list of events emitted by a given ledger range.

Soroban RPC will support querying within a maximum 24 hours of recent ledgers.

Note, this could be used by the client to only prompt a refresh when there is a new ledger with relevant events. It should also be used by backend Dapp components to "ingest" events into their own database for querying and serving.

If making multiple requests, clients should deduplicate any events received, based on the event's unique id field. This prevents double-processing in the case of duplicate events being received.

By default, Soroban RPC retains the most recent 24 hours of events.

Parameters

  • id (integer; required): a request ID (example: 1).

  • jsonrpc (string; required): a JSON RPC spec used (example: 2.0).

  • method (string; required): a method used for the request.

  • params (array; required):

    • startLedger (number, required): Ledger sequence number to fetch events after (inclusive). This method will return an error if startLedger is less than the oldest ledger stored in this node, or greater than the latest ledger seen by this node. If a cursor is included in the request, startLedger must be omitted.

    • filters (array of objects; optional): List of filters for the returned events. Events matching any of the filters are included. To match a filter, an event must match both a contractId and a topic. Maximum 5 filters are allowed per request:

      • type (string): A comma separated list of event types (system, contract, or diagnostic) used to filter events. If omitted, all event types are included.
      • contractIds (array of strings): List of contract IDs to query for events. If omitted, return events for all contracts. Maximum 5 contract IDs are allowed per request.
      • topics (array): List of topic filters. If omitted, query for all events. If multiple filters are specified, events will be included if they match any of the filters. Maximum 5 filters are allowed per request.
        • A TopicFilter is SegmentMatcher[] — The list can be 1-4 SegmentMatchers long.
        • A SegmentMatcher is one of the following:
          • For an exact segment match, a string containing a base64-encoded ScVal.
          • For a wildcard single-segment match, the string "*", matches exactly one segment.
    • pagination (object; optional): Pagination in Soroban RPC is similar to pagination in Horizon. See Pagination (opens in a new tab).

      • cursor (string): A string ID that points to a specific location in a collection of responses and is pulled from the paging_token value of a record. When a cursor is provided Soroban RPC will not include the element whose id matches the cursor in the response. Only elements which appear after the cursor are included.
      • number (number): The maximum number of records returned. The limit for getEvents can range from 1 to 10000 — an upper limit that is hardcoded in Soroban RPC for performance reasons. If this argument isn't designated, it defaults to 100.

Returns

  • latestLedger (number): The sequence number of the latest ledger known to Soroban RPC at the time it handled the request.
  • events (array of objects):
    • type (string): The type of event emission (enum: contract, diagnostic, system)
    • ledger (number): Sequence number of the ledger in which this event was emitted.
    • ledgerClosedAt (string): ISO-8601 (opens in a new tab) timestamp of the ledger closing time
    • contractId (string): StrKey representation of the contract address that emitted this event.
    • id (string): Unique identifier for this event. - The event's unique id field is based on a toid from Horizon (opens in a new tab) as used in Horizon's /effects endpoint. - https://github.com/stellar/go/blob/master/services/horizon/internal/db2/history/effect.go#L58 (opens in a new tab) - Specifically, it is a string containing: - bigint(32 bit ledger sequence + 20 bit txn number + 12 bit operation) + <hyphen> + number for the event within the operation. - For example: 1234-1
    • pagingToken (string): Duplicate of id field, but in the standard place for pagination tokens.
    • inSuccessfulContractCall (boolean): If true the event was emitted during a successful contract call.
    • topic (array of strings): List containing the topic this event was emitted with:
      • SegmentMatcher (string): A SegmentMatcher is one of the following:
        • For an exact segment match, a string containing a base64-encoded ScVal.
        • For a wildcard single-segment match, the string "*", matches exactly one segment.
    • value (object): The data the event was broadcasting in the emitted event:
      • xdr (string): The emitted body value of the event (serialized in a base64 string).

Request example

curl 'https://rpc.ankr.com/stellar_testnet_soroban' \
-d '{
      "jsonrpc": "2.0",
      "id": 1,
      "method": "getEvents",
      "params": {
          "startLedger": 180000,
            "pagination": {
            "limit": 2
            }
      }
    }'

Response example

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
        "events": [
            {
                "type": "contract",
                "ledger": 180118,
                "ledgerClosedAt": "2024-01-22T16:13:07Z",
                "contractId": "CB22KRA3YZVCNCQI64JQ5WE7UY2VAV7WFLK6A2JN3HEX56T2EDAFO7QF",
                "id": "0000773600919453696-0000000000",
                "pagingToken": "0000773600919453696-0000000000",
                "topic": [
                    "AAAADwAAAAh0cmFuc2Zlcg==",
                    "AAAAEgAAAAEmtLQQgiJ5guKLxbQdFEQ8qF20pUVTAcvU9RfF4mln5g==",
                    "AAAAEgAAAAAAAAAAbLAgdrWIvo9rNehnYdwy70gTNnWQ4rP2Ffvq1rYk0sw=",
                    "AAAADgAAAD1CTE5EOkdBVEFMVEdUV0lPVDZCVURCQ1pNM1E0T1E0Qk8yQ09MT0FaN0lZU0tQTEMyUE1TT1BQR0Y1VjU2AAAA"
                ],
                "value": "AAAACgAAAAAAAAAAAAAABkNdp0E=",
                "inSuccessfulContractCall": true
            },
            {
                "type": "contract",
                "ledger": 180118,
                "ledgerClosedAt": "2024-01-22T16:13:07Z",
                "contractId": "CABFXDAA5BILXZPD7Y25QQPO77M5JHCCC3HWUBDGU52HNUHL4Z6YCTAC",
                "id": "0000773600919453696-0000000001",
                "pagingToken": "0000773600919453696-0000000001",
                "topic": [
                    "AAAADwAAAAVjbGFpbQAAAA==",
                    "AAAAEgAAAAAAAAAAbLAgdrWIvo9rNehnYdwy70gTNnWQ4rP2Ffvq1rYk0sw="
                ],
                "value": "AAAAEAAAAAEAAAACAAAAEAAAAAEAAAACAAAAAwAAAAAAAAADAAAAAwAAAAoAAAAAAAAAAAAAAAZDXadB",
                "inSuccessfulContractCall": true
            }
        ],
        "latestLedger": 192067
    }
}

getHealth

Retrieves node health.

General node health check.

Parameters

  • id (integer; required): a request ID (example: 1).
  • jsonrpc (string; required): a JSON RPC spec used (example: 2.0).
  • method (string; required): a method used for the request.
  • params (array; required): none.

Returns

  • status (string): node status (example: "healthy").

Request example

curl 'https://rpc.ankr.com/stellar_testnet_soroban' \
-d '{
      "jsonrpc": "2.0",
      "id": 1,
      "method": "getHealth",
      "params": []
    }'

Response example

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
        "status": "healthy"
    }
}

getLatestLedger

Retrieves the latest known ledger.

For finding out the current latest known ledger of this node. This is a subset of the ledger info from Horizon.

Parameters

  • id (integer; required): a request ID (example: 1).
  • jsonrpc (string; required): a JSON RPC spec used (example: 2.0).
  • method (string; required): a method used for the request.
  • params (array; required): none.

Returns

  • id (string): hash identifier of the latest ledger (as a hex-encoded string) known to Soroban RPC at the time it handles the request (pattern: ^[a-f\d]{64}$).
  • protocolVersion (number): Stellar Core protocol version associated with the latest ledger.
  • sequence (number): the sequence number of the latest ledger known to Soroban RPC at the time it handles the request.

Request example

curl 'https://rpc.ankr.com/stellar_testnet_soroban' \
-d '{
      "jsonrpc": "2.0",
      "id": 1,
      "method": "getLatestLedger",
      "params": []
    }'

Response example

{
    "id": 1,
    "jsonrpc": "2.0",
    "result": {
        "id": "c73c5eac58a441d4eb733c352...",
        "protocolVersion": 20,
        "sequence": 2539605
    }
}

getLedgerEntries

Retrieves ledger entries.

For reading the current value of ledger entries directly.

Allows you to directly inspect the current state of a contract, a contract's code, or any other ledger entry. This is a backup way to access your contract data which may not be available via events or simulateTransaction.

To fetch contract wasm byte-code, use the ContractCode ledger entry key.

Parameters

  • id (integer; required): a request ID (example: 1).

  • jsonrpc (string; required): a JSON RPC spec used (example: 2.0).

  • method (string; required): a method used for the request.

  • params (array; required):

    • keys (array of strings; required): an array containing the keys of the ledger entries you wish to retrieve (an array of serialized base64 strings).

Returns

  • latestLedger (number): the sequence number of the latest ledger known to Soroban RPC at the time it handles the request.
  • entries (array): an array of objects containing all found ledger entries:
    • key (string): the key of the ledger entry (base64 string).
    • xdr (string): the current value of the given ledger entry (base64 string).
    • lastModifiedLedgerSeq (number): the ledger sequence number of the last time this entry was updated.
    • liveUntilLedgerSeq (number): sequence number of the ledger.

Request example

curl 'https://rpc.ankr.com/stellar_testnet_soroban' \
-d '{
      "jsonrpc": "2.0",
      "id": 1,
      "method": "getLedgerEntries",
      "params": {
        "keys": [
        0: "AAAABgAAAAHMA/50/Q+w3Ni8UXWm/trxFBfAfl6De5kFttaMT0/ACwAAABAAAAABAAAAAgAAAA8AAAAHQ291bnRlcgAAAAASAAAAAAAAAAAg4dbAxsGAGICfBG3iT2cKGYQ6hK4sJWzZ6or1C5v6GAAAAAE="
        ]
      }
    }'

Response example

{
    "id": 1,
    "jsonrpc": "2.0",
    "result": {
        "entries": [
            0: {
                "key": "AAAAB+qfy4GuVKKfazvyk4R9P9fpo2n9HICsr+xqvVcTF+DC",
                "xdr": "AAAABgAAAAAAAAABzAP+dP0PsNzYvFF1pv7a8RQXwH5eg3uZBbbWjE9PwAsAAAAQAAAAAQAAAAIAAAAPAAAAB0NvdW50ZXIAAAAAEgAAAAAAAAAAIOHWwMbBgBiAnwRt4k9nChmEOoSuLCVs2eqK9Qub+hgAAAABAAAAAwAAAAw=",
                "lastModifiedLedgerSeq": 2552504
            }
        ],
        "latestLedger": 2552990
    }
}

getNetwork

Retrieves network config.

General information about the currently configured network. This response will contain all the information needed to successfully submit transactions to the network this node serves.

Parameters

  • id (integer; required): a request ID (example: 1).
  • jsonrpc (string; required): a JSON RPC spec used (example: 2.0).
  • method (string; required): a method used for the request.
  • params (array; required): none.

Returns

  • passphrase (string): the network passphrase configured for this Soroban RPC node.
  • protocolVersion (number): Stellar Core protocol version associated with the latest ledger.
  • friendbotUrl (string): the URL of this network's "friendbot" faucet.

Request example

curl 'https://rpc.ankr.com/stellar_testnet_soroban' \
-d '{
      "jsonrpc": "2.0",
      "id": 1,
      "method": "getNetwork",
      "params": []
    }'

Response example

{
    "id": 1,
    "jsonrpc": "2.0",
    "result": {
        "friendbotUrl": "https://friendbot-testnet.stellar.org/",
        "passphrase": "Test SDF Network ; September 2015",
        "protocolVersion": 20
    }
}

getTransaction

Retrieves transaction details.

The getTransaction method provides details about the specified transaction. Clients are expected to periodically query this method to ascertain when a transaction has been successfully recorded on the blockchain. The soroban-rpc system maintains a restricted history of recently processed transactions, with the default retention window set at 1440 ledgers, approximately equivalent to a 2-hour timeframe. For private soroban-rpc instances, it is possible to modify the retention window value by adjusting the transaction-retention-window configuration setting. For comprehensive debugging needs that extend beyond the 2-hour timeframe, it is advisable to retrieve transaction information from Horizon, as it provides a lasting and persistent record.

Parameters

  • id (integer; required): a request ID (example: 1).

  • jsonrpc (string; required): a JSON RPC spec used (example: 2.0).

  • method (string; required): a method used for the request.

  • params (array; required):

    • hash (string; required): a transaction hash to query (hex-encoded string); This transaction hash should correspond to the transaction that has been previously submitted to the network (pattern: ^[a-f\d]{64}$).

Returns

  • status (string): the current status of the transaction specified by hash (enum: SUCCESS, NOT_FOUND, FAILED).
  • latestLedger (number): the sequence number of the latest ledger known to Soroban RPC at the time it handles the request.
  • latestLedgerCloseTime (string): the unix stamp of the close time of the latest ledger known to Soroban RPC at the time it handles the request.
  • oldestLedger (number): the sequence number of the oldest ledger ingested by Soroban RPC at the time it handles the request.
  • oldestLedgerCloseTime (string): the unix stamp of the close time of the oldest ledger ingested by Soroban RPC at the time it handles the request.
  • ledger (number): the sequence number of the ledger which included the transaction. This field is only present if status is SUCCESS or FAILED.
  • createdAt (string): the unix timestamp of when the transaction was included in the ledger. This field is only present if status is SUCCESS or FAILED.
  • applicationOrder (number): the index of the transaction among all transactions included in the ledger. This field is only present if status is SUCCESS or FAILED.
  • feeBump (boolean): indicates whether the transaction was fee bumped. This field is only present if status is SUCCESS or FAILED.
  • envelopeXdr (string): a base64-encoded string of the raw TransactionEnvelope XDR struct for this transaction.
  • resultXdr (string): a base64-encoded string of the raw TransactionResult XDR struct for this transaction. This field is only present if status is SUCCESS or FAILED.
  • resultMetaXdr (string): a base64-encoded string of the raw TransactionResultMeta XDR struct for this transaction.

Request example

curl 'https://rpc.ankr.com/stellar_testnet_soroban' \
-d '{
      "jsonrpc": "2.0",
      "id": 1,
      "method": "getTransaction",
      "params": {
        "hash": "6bc97bddc21811c626839baf4ab574f4f9f7ddbebb44d286ae504396d4e752da"
      }
    }'

Response example

{
    "id": 1,
    "jsonrpc": "2.0",
    "result": {
        "status": "SUCCESS",
        "latestLedger": 2540076,
        "latestLedgerCloseTime": "1700086333",
        "oldestLedger": 2538637,
        "oldestLedgerCloseTime": "1700078796",
        "applicationOrder": 1,
        "envelopeXdr": "AAAAAgAAAADGFY14/R1KD0VGtTbi5Yp4d7LuMW0iQbLM/AUiGKj5owCpsoQAJY3OAAAjqgAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAGAAAAAAAAAABhhOwI+RL18Zpk7cqI5pRRf0L96jE8i+0x3ekhuBh2cUAAAARc2V0X2N1cnJlbmN5X3JhdGUAAAAAAAACAAAADwAAAANldXIAAAAACQAAAAAAAAAAAAAAAAARCz4AAAABAAAAAAAAAAAAAAABhhOwI+RL18Zpk7cqI5pRRf0L96jE8i+0x3ekhuBh2cUAAAARc2V0X2N1cnJlbmN5X3JhdGUAAAAAAAACAAAADwAAAANldXIAAAAACQAAAAAAAAAAAAAAAAARCz4AAAAAAAAAAQAAAAAAAAABAAAAB4408vVXuLU3mry897TfPpYjjsSN7n42REos241RddYdAAAAAQAAAAYAAAABhhOwI+RL18Zpk7cqI5pRRf0L96jE8i+0x3ekhuBh2cUAAAAUAAAAAQFvcYAAAImAAAAHxAAAAAAAAAACAAAAARio+aMAAABATbFMyom/TUz87wHex0LoYZA8jbNJkXbaDSgmOdk+wSBFJuMuta+/vSlro0e0vK2+1FqD/zWHZeYig4pKmM3rDA==",
        "resultXdr": "AAAAAAARFy8AAAAAAAAAAQAAAAAAAAAYAAAAAMu8SHUN67hTUJOz3q+IrH9M/4dCVXaljeK6x1Ss20YWAAAAAA==",
        "resultMetaXdr": "AAAAAwAAAAAAAAACAAAAAwAmwiAAAAAAAAAAAMYVjXj9HUoPRUa1NuLlinh3su4xbSJBssz8BSIYqPmjAAAAFUHZob0AJY3OAAAjqQAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAAAAAAAAAAAAAMAAAAAACbCHwAAAABlVUH3AAAAAAAAAAEAJsIgAAAAAAAAAADGFY14/R1KD0VGtTbi5Yp4d7LuMW0iQbLM/AUiGKj5owAAABVB2aG9ACWNzgAAI6oAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAADAAAAAAAmwiAAAAAAZVVB/AAAAAAAAAABAAAAAgAAAAMAJsIfAAAABgAAAAAAAAABhhOwI+RL18Zpk7cqI5pRRf0L96jE8i+0x3ekhuBh2cUAAAAUAAAAAQAAABMAAAAAjjTy9Ve4tTeavLz3tN8+liOOxI3ufjZESizbjVF11h0AAAABAAAABQAAABAAAAABAAAAAQAAAA8AAAAJQ29yZVN0YXRlAAAAAAAAEQAAAAEAAAAGAAAADwAAAAVhZG1pbgAAAAAAABIAAAAAAAAAADn1LT+CCK/HiHMChoEi/AtPrkos4XRR2E45Pr25lb3/AAAADwAAAAljb2xfdG9rZW4AAAAAAAASAAAAAdeSi3LCcDzP6vfrn",
        "ledger": 2540064,
        "createdAt": "1700086268"
    }
}

sendTransaction

Submits a transaction.

Submit a real transaction to the Stellar network. This is the only way to make changes on-chain.

Unlike Horizon, this does not wait for transaction completion. It simply validates and enqueues the transaction. Clients should call getTransaction to learn about transaction success/failure.

This supports all transactions, not only smart contract-related transactions.

Parameters

  • id (integer; required): a request ID (example: 1).

  • jsonrpc (string; required): a JSON RPC spec used (example: 2.0).

  • method (string; required): a method used for the request.

  • params (array; required):

    • transaction (string; required): the signed transaction to broadcast for inclusion in a ledger (base64 string).

Returns

  • hash (string): a transaction hash (hex-encoded string); pattern: ^[a-f\d]{64}$.
  • status (string): the current status of the transaction specified by hash (enum: PENDING, DUPLICATE, TRY_AGAIN_LATER, ERROR).
  • latestLedger (number): the sequence number of the latest ledger known to Soroban RPC at the time it handles the request.
  • latestLedgerCloseTime (string): the unix timestamp of the close time of the latest ledger known to Soroban RPC at the time it handled the request.
  • errorResultXdr (string): if the transaction status is ERROR, this will be a base64-encoded string of the raw TransactionResult XDR struct containing details on why Stellar Core rejected the transaction.
  • diagnosticEventsXdr (array): if the transaction status is ERROR, this field may be present with an array of base64-encoded strings. Each string will decode to a raw DiagnosticEvent XDR struct containing details on why Stellar Core rejected the transaction.

Request example

curl 'https://rpc.ankr.com/stellar_testnet_soroban' \
-d '{
      "jsonrpc": "2.0",
      "id": 1,
      "method": "sendTransaction",
      "params": {
        "transaction": "AAAAAgAAAAAg4dbAxsGAGICfBG3iT2cKGYQ6hK4sJWzZ6or1C5v6GAAAAGQAJsOiAAAADQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAACgAAAAVIZWxsbwAAAAAAAAEAAAAMU29yb2JhbiBEb2NzAAAAAAAAAAELm/oYAAAAQATr6Ghp/DNO7S6JjEFwcJ9a+dvI6NJr7I/2eQttvoovjQ8te4zKKaapC3mbmx6ld6YKL5T81mxs45TjzdG5zw0="
      }
    }'

Response example

{
    "id": 1,
    "jsonrpc": "2.0",
    "result": {
        "status": "PENDING",
        "hash": "d8ec9b68780314ffdfdfc2194b1b35dd27d7303c3bceaef6447e31631a1419dc",
        "latestLedger": 2553978,
        "latestLedgerCloseTime": "1700159337"
    }
}

simulateTransaction

Submits a trial contract invocation transaction.

Submit a trial contract invocation to simulate how it would be executed by the network. This endpoint calculates the effective transaction data, required authorizations, and minimal resource fee. It provides a way to test and analyze the potential outcomes of a transaction without actually submitting it to the network.

Parameters

  • id (integer; required): a request ID (example: 1).

  • jsonrpc (string; required): a JSON RPC spec used (example: 2.0).

  • method (string; required): a method used for the request.

  • params (array; required):

    • transaction (base64 string; required): in order for the RPC server to successfully simulate a Stellar transaction, the provided transaction must contain only a single operation of the type invokeHostFunction.
    • resourceConfig (object; optional): configuration for how resources will be calculated:
      • instructionLeeway (number): allow extra instructions when budgeting resources.

Returns

  • latestLedger (number): the sequence number of the latest ledger known to Soroban RPC at the time it handles the request.
  • minResourceFee (string): stringified number — a recommended minimum resource fee to add when submitting a transaction. This fee is to be added on top of the Stellar network fee (opens in a new tab). Not present in case of error.
  • cost (object): information about instructions used, etc. Not present in case of error:
    • cpuInsns (string): stringified number — total cpu instructions consumed by this transaction.
    • memBytes (string): stringified number — total memory bytes allocated by this transaction.
  • results (array of objects with properties): this array will only have one element: the result for the Host function invocation. Only present on successful simulation (no error) of the InvokeHostFunction operations:
    • xdr (string): serialized base64 string — return value of the Host Function call.
    • auth (array of strings): array of serialized base64 strings — per-address authorizations recorded when simulating this Host Function call.
  • transactionData (string): serialized base64 string — the recommended Soroban Transaction Data to use when submitting the simulated transaction. This data contains the refundable fee and resource usage information such as the ledger footprint and IO access data (serialized in a base64 string). Not present in case of error.
  • events (arrays of strings): array of serialized base64 strings — array of the events emitted during the contract invocation. The events are ordered by their emission time. Only present when simulating of InvokeHostFunction operations, note that it can be present on error, providing extra content about what failed.
  • restorePreamble (object): it can be only present on successful simulation (no error) of InvokeHostFunction operations. If present, it indicates that the simulation detected archived ledger entries which need to be restored before the submission of the InvokeHostFunction operation. The minResourceFee and transactionData fields should be used to submit a transaction containing a RestoreFootprint operation. Properties:
    • minResourceFee (string): stringified number — recommended minimum resource fee to add when submitting the RestoreFootprint operation. This fee is to be added on top of the Stellar network fee (opens in a new tab).
    • transactionData (string): serialized base64 string — the recommended Soroban Transaction Data to use when submitting the RestoreFootprint operation.
  • error (string): this field will include details about why the invoke host function call failed. Only present if the transaction simulation failed.

Request example

curl 'https://rpc.ankr.com/stellar_testnet_soroban' \
-d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "simulateTransaction",
    "params": {
        "transaction": "AAAAAgAAAAAg4dbAxsGAGICfBG3iT2cKGYQ6hK4sJWzZ6or1C5v6GAAAAGQAJsOiAAAAEQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAGAAAAAAAAAABzAP+dP0PsNzYvFF1pv7a8RQXwH5eg3uZBbbWjE9PwAsAAAAJaW5jcmVtZW50AAAAAAAAAgAAABIAAAAAAAAAACDh1sDGwYAYgJ8EbeJPZwoZhDqEriwlbNnqivULm/oYAAAAAwAAAAMAAAAAAAAAAAAAAAA=",
        "resourceConfig": {
            "instructionLeeway": 3000000
        }
    }
}'

Request example

{
    "id": 1,
    "jsonrpc": "2.0",
    "result": {
        "transactionData": "AAAAAAAAAAIAAAAGAAAAAcwD/nT9D7Dc2LxRdab+2vEUF8B+XoN7mQW21oxPT8ALAAAAFAAAAAEAAAAHy8vNUZ8vyZ2ybPHW0XbSrRtP7gEWsJ6zDzcfY9P8z88AAAABAAAABgAAAAHMA/50/Q+w3Ni8UXWm/trxFBfAfl6De5kFttaMT0/ACwAAABAAAAABAAAAAgAAAA8AAAAHQ291bnRlcgAAAAASAAAAAAAAAAAg4dbAxsGAGICfBG3iT2cKGYQ6hK4sJWzZ6or1C5v6GAAAAAEAHfKyAAAFiAAAAIgAAAAAAAAAAw==",
        "minResourceFee": "90353",
        "events": [
            "AAAAAQAAAAAAAAAAAAAAAgAAAAAAAAADAAAADwAAAAdmbl9jYWxsAAAAAA0AAAAgzAP+dP0PsNzYvFF1pv7a8RQXwH5eg3uZBbbWjE9PwAsAAAAPAAAACWluY3JlbWVudAAAAAAAABAAAAABAAAAAgAAABIAAAAAAAAAACDh1sDGwYAYgJ8EbeJPZwoZhDqEriwlbNnqivULm/oYAAAAAwAAAAM=",
            "AAAAAQAAAAAAAAABzAP+dP0PsNzYvFF1pv7a8RQXwH5eg3uZBbbWjE9PwAsAAAACAAAAAAAAAAIAAAAPAAAACWZuX3JldHVybgAAAAAAAA8AAAAJaW5jcmVtZW50AAAAAAAAAwAAAAw="
        ],
        "results": [
            {
                "auth": [],
                "xdr": "AAAAAwAAAAw="
            }
        ],
        "cost": {
            "cpuInsns": "1635562",
            "memBytes": "1295756"
        },
        "latestLedger": 2552139
    }
}