/
/Ledger API
DocsSign in
Sign in
  • APIs
  • Generators
  • Stacks
  • Projects
  • Docs
  • History
  • Schema
Checked 20m ago · Updated 1d ago
ledger2
ledger.v120
  • getShow server information
  • getGet information about a ledger
  • getList accounts from a ledger
  • headCount the accounts from a ledger
  • getGet account by its address
  • postAdd metadata to an account
  • getGet the mapping of a ledger
  • putUpdate the mapping of a ledger
  • postExecute a Numscript
  • getGet statistics from a ledger
  • getList transactions from a ledger
  • postCreate a new transaction to a ledger
  • headCount the transactions from a ledger
  • getGet transaction from a ledger by its ID
  • postSet the metadata of a transaction by its ID
  • postRevert a ledger transaction by its ID
  • postCreate a new batch of transactions to a ledger
  • getGet the balances from a ledger's account
  • getGet the aggregated balances from selected accounts
  • getList the logs from a ledger
ledger.v243
    ledger.v1

    Count the accounts from a ledger

    head/{ledger}/accounts

    Path parameters

    ledgerstring required
    Example:ledger001

    Name of the ledger.

    Query parameters

    addressstring
    Example:users:.+

    Filter accounts by address pattern (regular expression placed between ^ and $).

    metadataobject

    Filter accounts by metadata key value pairs. The filter can be used like this metadata[key]=value1&metadata[a.nested.key]=value2

    Response

    OK

    Changes