Get program statement
Returns a running-balance statement of a program wallet’s ledger activity for one asset, with opening and closing balances for the window.
FUND, BURN, and issuance debit appears with the wallet balance after it.
Works like the participant statement: asset_id is required, bucket optionally scopes the view, and from/to window the rows without affecting balance computation.
Authorizations
API key passed in the X-API-Key header.
Path Parameters
Program ID
Query Parameters
Asset to produce the statement for
Scope the statement (rows and running balance) to a single bucket
AVAILABLE, HELD, DEFERRED Start of statement window (RFC 3339) — selects returned rows on system ingestion time
End of statement window (RFC 3339) — selects returned rows on system ingestion time
Maximum number of results (default 50, max 200)
x >= 1Pagination cursor from previous response
Response
Statement page with running balances
Asset the statement covers
"550e8400-e29b-41d4-a716-446655440000"
Bucket scope, when the statement was requested for a single bucket. Absent when the statement covers all buckets (running balance is then the total across buckets).
"AVAILABLE"
Scope balance as of the end of the window (the current balance when no to is given). Always equals the as-of(to) balance for the same entity/asset/bucket scope, regardless of pagination.
"350"
Statement lines, oldest first
Start of the statement window, when provided
"2024-01-01T00:00:00Z"
Scope balance immediately before the window ("0" when no from is given)
"250"
Pagination metadata for fetching subsequent statement pages
End of the statement window, when provided
"2024-02-01T00:00:00Z"