Skip to main content
Every asset movement in Scrip is recorded as a double-entry journal entry. Credits and debits always balance.

Double-Entry Accounting

Every transaction creates a journal entry with two or more postings that sum to zero:
For PREFUNDED assets, the source is the program wallet instead of SYSTEM_ISSUANCE:

Accounts and Buckets

An account is a balance container in the ledger. Participants, groups, programs, and system entities all have accounts. The ledger tracks funds by writing postings against these accounts. Each account holds a balance for a single asset in a single bucket. A participant with one asset has up to three accounts: one for AVAILABLE funds, one for HELD funds, and one for DEFERRED funds. Accounts are created automatically when the first posting touches that bucket. A participant with three assets has up to nine accounts. A bucket segments the balance into separate pools: When you query a participant’s balances, the response breaks out each bucket:

Journal Entries

A journal entry is a record of a single ledger operation. The system creates one every time funds move: credits, debits, holds, releases, forfeits, and redemptions. Each journal entry contains two or more postings. A posting is a single line item that records a change to one account: which account, the signed amount (positive for credits, negative for debits), and which bucket. The postings within an entry always sum to zero. You can list journal entries through the API:
Each journal entry includes:

Filtering

The journal entries list endpoint accepts query parameters to narrow results. Amount filters apply to raw signed posting values. Credits are positive, debits are negative. Entity filters (participant_id, external_id, group_id) are mutually exclusive.

Entry Detail

Fetch a single journal entry to see the full record:
The response includes every posting in the entry, with the full account, amount, and bucket detail for each.

System Accounts

Every fund movement has an origin and a destination. For transfers between participants, both sides are participant accounts. When funds are minted, forfeited, or redeemed, the other side of the transaction is a system account. These accounts make it possible to reconcile total points issued against points in circulation, points spent, and points lost.

Integrity

The ledger is append-only. Journal entries cannot be modified or deleted after creation. Every journal entry is sealed with a SHA-256 hash that covers its metadata, all postings, and the previous entry’s hash. This forms a chain within each organization: if any entry were altered, the hash would no longer match, and every subsequent entry’s hash would also break. The entry_hash field on each journal entry is this cryptographic seal. You can verify the chain, along with postings balance and value conservation, at any time with the ledger integrity report. Pin its chain_head hash externally to make any later alteration of history detectable. To reverse a transaction, create a new journal entry with opposite postings. A redemption reversal, for example, credits the participant and debits the redemption account. The original entry and its hash remain intact.