Skip to main content
POST
Burn program balance
Removes funds from a program’s wallet for a specific PREFUNDED asset. The burned amount is debited from the program wallet and credited to SYSTEM_BREAKAGE in the ledger. This is the inverse of Fund a program. Only PREFUNDED assets can be burned. UNLIMITED assets mint value on demand, so burning one returns 400 with code validation_error. You cannot burn more than the current wallet balance. A larger amount returns 422 with code insufficient_funds.
For usage patterns and examples, see the Programs guide.

Authorizations

Authorization
string
header
default:sk_...
required

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

Headers

Idempotency-Key
string

Unique key (1-255 printable ASCII characters) to make retries safe. Repeating the same request with the same key within 24 hours replays the original response (Idempotent-Replayed: true).

Maximum string length: 255

Path Parameters

program_id
string<uuid>
required

The program's id.

asset_id
string<uuid>
required

The asset's id.

Body

application/json

Burn details

Removes an amount of an asset from a program wallet.

amount
string
required

Decimal amount to remove from the wallet

Minimum string length: 1
Example:

"500.00"

description
string

Reason for this burn

Maximum string length: 500
Example:

"Reduce Q1 budget"

Response

Burn successful

The result of funding or burning a program wallet: the journal entry and the available balance after.

available
string

Wallet balance after the operation

Example:

"10000.00"

journal_entry_id
string<uuid>

Ledger journal entry created by this operation

Example:

"657a0312-1aaa-4ba7-842b-edfbb39edf14"

message
string

Confirmation message

Example:

"Program funded successfully"