WalletD developers

All endpoints

Every operation in the ledger contract, in one list. Read Reaching the ledger first: this service is not on the public gateway.

Ledgers

A consumer's own ledgers; each carries its own vocabulary, periods, and event sequence.

Vocabulary

The transaction types, account purposes, and commodities a ledger will accept, registered per ledger and enforced by foreign keys.

Accounts

Opening accounts on their natural key, their credit limit and lifecycle, and what one account is worth now, then, or over a range.

Create an account

Opens an account on the natural key (ledger, owner_type, owner_id, purpose, commodity, shard).

Look up an owner's account by its natural key

The natural key includes commodity. When the owner holds the purpose in a single commodity, commodity may be omitted; if several match, the lookup refuses as a conflict rather than returning an arb...

Read one account

Reads one account: its natural key, status, credit limit, version and current balance.

Set the account's credit limit (absolute, audited by the caller)

Sets the account's credit limit to an absolute value, not a delta, so a retry of the same request lands on the same limit.

Current balance, reservations, and available funds

The account's current balance, the total still reserved by active pendings, and the available figure a caller should spend against: balance minus reservations, plus the credit limit.

Balance at a moment in effective time

Reconstructs the balance as of a moment in *effective* time, not wall-clock insert time.

Opening balance, movements, closing balance over a range

Opening balance, the movements in between, and closing balance over a range of effective time.

Freeze an account (no postings, no new reservations)

Freezes an account: no new postings touch it and no new funds may be reserved against it.

Return a frozen account to service

Returns a frozen account to service. Closure is terminal, so a closed account cannot be unfrozen: that refuses with account_closed.

Close an account (terminal; requires zero balance, nothing reserved)

Closes an account for good. Terminal, and deliberately strict: the balance must be exactly zero and no pending may still be active, otherwise the request is refused as invalid with the offending fi...

System accounts

Sharded fee, float, and settlement accounts, provisioned as a set and read in aggregate.

Postings

Balanced money movement; one transaction, an atomic batch, or a dry run against live state.

Pending postings

The reserve half of a two-phase posting; hold with a TTL, then post bounded by the reservation, or void.

Exchanges

Cross-commodity groups posted atomically with the rate stored on the transaction; per-commodity zero-sum is never relaxed.

Transactions

Reading what was posted, with legs and linkage, and reversing it by posting the linked mirror.

Periods

Period close with per-account checkpoints, the closed-period ladder, and trial balance export.

Scheduled postings

Postings the service executes itself at their effective moment, with an inspectable end state.

Read views

The owner-scoped and ledger-wide read views consumers build their own screens and reconciliation from.

Event feed

The per-ledger sequenced feed, served in (xact, seq) order for read models and consumer-side reconciliation.

Idempotency

The stored-result probe a caller repairs from after losing its own commit.

Service

Unauthenticated liveness and build identity, for probes and deployment checks.

On this page