Upcoming mainnet upgrade. These changes are already live on testnet.
Mainnet deployment is scheduled for 10 December 2026 at 14:00 UTC.
Migration at a Glance
1. Create or Fund an ISO Account Explicitly
An order withi: true still selects isolated routing, but it no longer creates
or funds the ISO account by pulling collateral from the parent. The protocol
rejects the order if the ISO account is missing or unlinked. A funded parent
does not compensate for insufficient collateral in its ISO account.
Use an authorized internal transfer before placing the ISO order. These are
action snippets inside the normal signed transaction’s actions array:
symbol is supplied, to names the parent, and the protocol resolves
that parent’s deterministic ISO account for the perpetual market. To fund an ISO
account from its parent, set both from and to to the parent in the second example;
the resolved destination is the ISO account.
symbol selects the ISO market, not the collateral currency. It must name
a supported perpetual order market such as BTC-USD, not a collateral symbol
such as USD. marginAmount is the USD-denominated value to move; the protocol
applies its collateral-transfer and risk rules.
Remove stale marginSymbol fields from request builders. marginSymbol is not
a current Transfer input and does not select a collateral asset.
Later Transfers Can Use the Account Public Key
Once the account exists, address it directly and omitsymbol:
symbol form when creating the account, then retain the account
public key from the refreshed account tree.
Use the Correct Account Authority
The transaction’saccount supplies the transfer authority. Both internal
transfer endpoints must be that account or its direct children, and the signer
must be authorized for the transaction account.
For an ISO account under an ordinary sub-account, use that sub-account as the
transaction account, with an authorized signer. A root account’s authority
does not turn every deeper descendant into a direct transfer endpoint. Move
funds through the relevant parent contexts when necessary. External transfers
cannot be used to create or fund ISO accounts.
Registered conditional, On-Fill and other deferred instructions that open ISO
exposure also need an existing, adequately funded account when the order executes.
Review that intent as well as new immediate submissions.
2. Keep Closing, Funding and Mode Changes Separate
Closing the final position or cancelling orders does not return positive ISO collateral to the parent. The collateral stays in the account, and the account can remain linked even with no position, no orders and a zero balance. To return available margin, use an explicit internal transfer:One Margin Mode per Parent and Market
A linked BTC ISO account blocks new BTC cross exposure on the same parent, even when that account is empty. Transferring its positive balance back or closing its position does not switch the parent to cross mode. Remove the eligible account before submitting new cross exposure for that parent and market. Likewise, funding or linking an ISO account cannot bypass an existing same-market cross position or resting order in the parent. This rule is per parent and market, not a prohibition on using different markets or separate account pools. Ordinary and ISO children share a 64-child limit per parent. Include both types in capacity checks before creating another child or linking another account.3. Reconcile Child Debt Before Retrying Outflows
Eligible flat deficits from either ordinary or ISO children can settle into their direct parent. Separate ISO trading collateral therefore does not guarantee that a residual deficit can never affect the parent. If a parent itself becomes eligible with a remaining deficit, debt can propagate farther up the account tree through its own parent. The protocol can settle eligible descendants before assessing a transfer, withdrawal lock or funded child creation. Unresolved descendant debt can block an outflow. A child that still has open positions need not be eligible for immediate collection. For example, suppose a parent has 200 of collateral, an ordinary child has a flat deficit of 100, and its ISO child has a flat deficit of 25. Collection can leave the parent with 75 and the children with zero. A requested outflow of 100 can then reject: the requested payment did not occur, but the earlier debt collection remains applied. After a rejection, inspect the action result and refresh the affected parent and children before recalculating transfer capacity or retrying. Do not infer success from HTTP200 or top-level status: "ok" alone.
Automatic child-debt collection is not exposed as a dedicated account-history
or account-WebSocket activity entry in this release. Use refreshed current
account state when reconciling these adjustments; do not rely on transfer
history alone to reconstruct them.
4. Read and Render Separate Margin Pools
Response Before and After
Previously, a parent’spositions and openOrders mixed its own rows with ISO
rows identified by isoPubkey. They now contain only the parent’s own rows.
Each ISO account has its own margin, positions and openOrders inside
isoAccounts.
These are partial HTTP fullAccount responses showing selected fields.
The same parent has a SOL position and order, a BTC ISO account, and an ordinary
sub-account. Balances and margin requirements are illustrative.
The parent’s
totalMargin remains 1,000. The BTC ISO account’s 200 is shown
separately. Removing aggTotalMargin: 1200 does not remove collateral; it removes
the combined display field. Likewise, the parent’s marginUsed remains 50 and
the ISO account’s 20 is separate.
Nested ISO position and order rows no longer repeat iso or isoPubkey. Their
account identity is the enclosing isoAccounts[].pubkey. Standalone updates,
direct ISO account responses and history retain their ISO identifiers.
pendingOnFill, when present, belongs to the account that contains it. Empty
optional collections such as isoAccounts, subAccounts and pendingOnFill
can be omitted; treat an absent collection as empty.
Removed Margin Fields
The following fields are removed frommargin:
HTTP Queries and WebSocket Snapshots
The HTTP full-account request remains:POST /api/v1/account. The response remains an array of
{"fullAccount": ...} items. Account WebSockets use the same account fields
inside data of a message with type: "account",
data.type: "accountSnapshot" and topic account.<pubkey>; they do not add the HTTP
fullAccount wrapper. Incremental positionUpdate and orderUpdate messages
remain separate message types.
The parent openOrders query now returns parent-local orders. Read
fullAccount.isoAccounts[].openOrders or query the ISO account directly for its
orders. The positions HTTP query type is closed-position history, not a
replacement for reading current positions from fullAccount.
Keep the ISO account’s public key, parent and market from funding and from the
parent’s isoAccounts collection, including when the account is empty. A direct query of an empty,
unnamed ISO does not reliably expose its assigned market through its name or
position rows. Do not infer the market by parsing a display name.
Rendering Checklist
- Render the requested account’s margin, positions and orders as its own pool.
- Render each
isoAccounts[]entry as a separate pool, keyed bypubkey. - Treat ordinary
subAccounts[]as navigation references and fetch their account state separately, including their own ISO accounts. - Route standalone ISO updates and history using their ISO identifiers.
- If showing an informational total across pools, label it clearly. Do not present summed available margin as collateral immediately usable by any one pool. Funding and outflow checks still apply to the relevant accounts.
5. Update Your Signing Library
No signing change for ordinary trading. Transactions containing only existing
order actions and transfers without
symbol keep their current signing format.
To create or fund an ISO account using the new transfer symbol field, update
to bulk-keychain 0.1.35 (or bulk-keychain-wasm 0.1.35 for browsers).
Update your application’s HTTP and WebSocket account-response parsers separately
using the response changes above.
Client Readiness Checklist
- Use
bulk-keychain0.1.35, orbulk-keychain-wasm0.1.35 for browsers, for the new ISO transfer flow. - Add explicit account creation/funding before immediate or deferred ISO orders.
- Keep positive account collateral visible after a close or cancellation.
- Require eligible account removal before switching that parent/market to cross.
- Count ordinary and ISO children together against the 64-child limit.
- Refresh affected account state after an outflow rejection that may have collected child debt.
- Replace
agg*parsing and flattened ISO collections with separate pool views. - Preserve ISO identifiers in standalone updates and history handlers.
- Exercise these flows on testnet before the scheduled mainnet deployment.