OBJECT

Query

link GraphQL Schema definition

  • type Query {
  • # Get single asset
  • #
  • # Arguments
  • # id:
  • asset(id: AssetID): Asset
  • # Get list of assets. Note: native XLM asset isn't included here
  • #
  • # Arguments
  • # code:
  • # issuer:
  • # first:
  • # after:
  • # last:
  • # before:
  • assets(
  • code: AssetCode,
  • issuer: AccountID,
  • first: Int,
  • after: String,
  • last: Int,
  • before: String
  • ): AssetConnection
  • # Get single account by the id
  • #
  • # Arguments
  • # id:
  • account(id: AccountID!): Account
  • # Get a lists of accounts by the ids
  • #
  • # Arguments
  • # ids:
  • # inflationDestination:
  • # homeDomain:
  • # data:
  • # first:
  • # last:
  • # after:
  • # before:
  • accounts(
  • ids: [AccountID!],
  • inflationDestination: AccountID,
  • homeDomain: String,
  • data: DataInput,
  • first: Int,
  • last: Int,
  • after: String,
  • before: String
  • ): AccountConnection
  • # Get single ledger by its sequence number
  • #
  • # Arguments
  • # seq:
  • ledger(seq: LedgerSeq!): Ledger!
  • # Get list of ledgers by sequence numbers
  • #
  • # Arguments
  • # seq:
  • ledgers(seq: [LedgerSeq!]!): [Ledger]!
  • # Get list of offers
  • #
  • # Arguments
  • # selling:
  • # buying:
  • # first:
  • # after:
  • # last:
  • # before:
  • offers(
  • selling: AssetCode!,
  • buying: AssetCode!,
  • first: Int,
  • after: String,
  • last: Int,
  • before: String
  • ): OfferConnection
  • # Get current best bid/ask offer for the given pair of assets
  • #
  • # Arguments
  • # selling:
  • # buying:
  • tick(selling: AssetID!, buying: AssetID!): Tick
  • # Get single transaction by id
  • #
  • # Arguments
  • # id:
  • transaction(id: TransactionHash!): Transaction
  • # Get list of transactions
  • #
  • # Arguments
  • # first:
  • # after:
  • # last:
  • # before:
  • transactions(first: Int, after: String, last: Int, before: String): TransactionConnection
  • # Get list of operations
  • #
  • # Arguments
  • # type:
  • # first:
  • # after:
  • # last:
  • # before:
  • operations(
  • type: [OperationType],
  • first: Int,
  • after: String,
  • last: Int,
  • before: String
  • ): OperationConnection
  • # Get single operation by its id
  • #
  • # Arguments
  • # id:
  • operation(id: String): Operation
  • # Get order book details
  • #
  • # Arguments
  • # selling:
  • # buying:
  • # limit:
  • orderBook(selling: AssetID!, buying: AssetID!, limit: Int): OrderBook
  • # Look up for appropriate payment paths
  • #
  • # Arguments
  • # sourceAccountID: The sender’s account id. Any returned path
  • # must use a source that the sender can hold
  • # destinationAsset:
  • # destinationAmount:
  • findPaymentPaths(
  • sourceAccountID: AccountID!,
  • destinationAsset: AssetID!,
  • destinationAmount: String!
  • ): [PaymentPath!]
  • # Get list of trades
  • #
  • # Arguments
  • # assetSold:
  • # assetBought:
  • # offer:
  • # first:
  • # after:
  • # last:
  • # before:
  • trades(
  • assetSold: AssetID,
  • assetBought: AssetID,
  • offer: String,
  • first: Int,
  • after: String,
  • last: Int,
  • before: String
  • ): TradeConnection!
  • }

link Require by

This element is not required by anyone