SB Core
Account State
On-chain account objects, balances, and state isolation
Spot State
Every account (1.2.x) holds asset balances (2.5.x), open limit orders (1.7.x), call orders for SbAssets (1.8.x), and pending force settlement requests (1.9.x).
State Isolation
- Each asset balance is tracked independently — there is no shared margin pool for spot accounts
- Funds locked in open orders are held by the order object, not the account balance, until filled or cancelled
- On fill, funds are transferred atomically — buyer receives the asset and seller receives the proceeds in the same block
Account Object Fields
| Field | Description |
|---|---|
| id | Unique account identifier (1.2.x) |
| name | Human-readable account name |
| owner | Owner authority (key rotation, recovery) |
| active | Active authority (trading, transfers) |
| options.memo_key | Public key for encrypted memo fields |
| options.votes | Governance votes cast by this account |
| options.voting_account | Account delegated to vote on behalf of this account |