Docs localnet · batch — · opens in —

Program

One Anchor program, unison.

1 Accounts

Config
drand chain parameters, batch timing, fill fee, seal deposit, bond minimum
Vault
one per mint, holding every account's balance of that mint
Balance
per owner and mint: the available amount
Account
per owner: the pending-order lock
Batch
per opening round: phase, seals, revealed orders, and per pair the bids and the clearing
Solver
per solver: bond, cooldown and stats
FeeVault
per mint, owned by the fee PDA: fill fees and forfeits

2 Instructions

account
init_config, deposit, withdraw
orders
commit_order, cancel_order, reveal_orders, forfeit
solvers
register_solver, withdraw_bond, bid
clearing
clear_begin, clear_end, slash, settle
cleanup
close_batch_account

Every state change emits an event, and the indexer reads them.

3 Addresses

The program id and the fee PDA for the network this site is reading are in the read API's /v1/config.