Skip to main content
GET
Get program wallet statement
Returns a running-balance statement for a program wallet and one asset, including opening_balance, closing_balance, and every wallet posting (such as FUND, BURN, issuance debits, and redemption-target credits). Rows are oldest first; pass sort_dir=desc for newest first (see Row order). period_start and period_end filter inclusively on posting created_at without resetting the running balance (opening_balance plus the rows in the window equals closing_balance). Pass bucket (for example, bucket=AVAILABLE,DEFERRED) to scope rows and balances to those buckets together. Like the participant statement, rule-driven rows carry rule_id and event_id, and related rows share a reference_id.
For row classification, window boundaries, and statement finality, see Statements.

Authorizations

Authorization
string
header
default:sk_...
required

Send your API key as Authorization: Bearer <key>.

Path Parameters

program_id
string<uuid>
required

The program's id.

Query Parameters

asset_id
string<uuid>
required

Asset to produce the statement for

bucket
string

Comma-separated buckets to include (AVAILABLE, HELD, DEFERRED). Defaults to all buckets.

period_start
string<date-time>

Start of the statement period, inclusive, RFC 3339, applied to the posting time.

period_end
string<date-time>

End of the statement period, inclusive, RFC 3339, applied to the posting time.

sort_dir
enum<string>

Row order by posting time: asc (oldest first, default) or desc (newest first).

Available options:
asc,
desc
limit
integer
default:50

Return at most this many records, from 1 to 200, default 50.

Required range: 1 <= x <= 200
cursor
string

The next_cursor from the previous response, valid only with the same endpoint and filters.

Response

Statement page with running balances

One page of a statement for one asset, with the opening balance, the closing balance and each entry between them.

asset_id
string<uuid>

Asset the statement covers

Example:

"a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02"

bucket
string

The buckets this statement covers, as a comma-separated list in the order you requested, with duplicates removed, for example "AVAILABLE,DEFERRED". Omitted when the statement covers all buckets; the running balance is then the total across buckets.

Example:

"AVAILABLE"

closing_balance
string

Scope balance as of the end of the period (the current balance when no period_end is given). Always equals the as-of(period_end) balance for the same entity/asset/bucket scope, regardless of pagination.

Example:

"350"

data
object[]

Statement lines in sort_dir order, oldest first by default

opening_balance
string

Scope balance immediately before the period ("0" when no period_start is given)

Example:

"250"

pagination
object

Pagination metadata for fetching subsequent statement pages

period_end
string

End of the statement period, when provided

Example:

"2027-12-31T23:59:59Z"

period_start
string

Start of the statement period, when provided

Example:

"2027-01-01T00:00:00Z"