OBJECT

Query

link GraphQL Schema definition

  • type Query {
  • # Query to retrieve list of accounts
  • getAccounts: [Account]
  • # Query to retrieve a single account
  • #
  • # Arguments
  • # public_key: Public key that uniquely identifies the account
  • getAccount(public_key: String!): Account
  • # Query to retrieve account balances for a single account
  • #
  • # Arguments
  • # public_key: Public key that uniquely identifies the account
  • getBalances(public_key: String!): [Balance]
  • # Query to retrieve list of assets
  • getAssets: [Asset]
  • # Query to retrieve account history for a single account
  • #
  • # Arguments
  • # public_key: Public key that uniquely identifies the account
  • # type: Filter for retrieving specific history types
  • getHistory(public_key: String!, type: String): [History]
  • # Query to retrieve active offers for a single account
  • #
  • # Arguments
  • # public_key: Public key that uniquely identifies the account
  • getOffers(public_key: String!): [Offer]
  • # Query to retrieve account history for a single account
  • #
  • # Arguments
  • # sell_asset_code: Code of Asset being offered for sale
  • # sell_asset_issuer: Issuer of Asset being offered for sale
  • # buy_asset_code: Type of Asset being bought
  • # buy_asset_issuer: Issuer of Asset being bought
  • getOrderbook(
  • sell_asset_code: String!,
  • sell_asset_issuer: String,
  • buy_asset_code: String!,
  • buy_asset_issuer: String
  • ): Orderbook
  • # Query to retrieve list of in process transactions for an account
  • #
  • # Arguments
  • # public_key: Public key that uniquely identifies the account
  • getInitiatedTransactions(public_key: String!): [Transaction]
  • # Query to retrieve list of in transactions to sign for an account
  • #
  • # Arguments
  • # public_key: Public key that uniquely identifies the account
  • getTransactionsToSign(public_key: String!): [Transaction]
  • # Query to retrieve details about a given fee
  • #
  • # Arguments
  • # type: Unique identifier to retrieve the Fee
  • getFee(type: String!): Fee
  • }

link Require by

This element is not required by anyone