Skip to content

Account

Read balances, positions, account health, margin units, keys, signer policies, fee and staking tiers, the ledger, transfers, transaction receipts and outcomes, and Builder tiers and stats by account address, see how an account opens, and check the build and server time.

On this page

Account reads return what an account holds, how it got there, and whether it can trade. They are HTTP calls that take an explicit account address: every account, Main or sub-account, is named by its own 20-byte address (0x + 40 hex). Almost all of them are public. The staking read and the two Builder reads that can carry deal terms need a sign-in token.

Reads
Auth
Account id
Unknown account
Opening an account
Live updates

Which call do I need?

You wantCall
Cash per asset, staked or in a margin unitatlas.getBalances
Open positions, with unrealized PnL and liquidation priceatlas.getPositions
Everything, grouped by staked, cross and isolated, plus account health, the wallet's state, its accepted terms and the limitsatlas.getAccountState
The accounts in a walletatlas.getAccounts
The wallet's owner, instruction keys, their bindings and noncesatlas.getKeys
A signer policy's threshold and membersatlas.getSignerPolicy
The wallet's fee tier and 14-day volumeatlas.getFeeTier
The wallet's staking tier and staked ZROatlas.getStakingState
Every balance change, with its causeatlas.getLedger
Account value, PnL and volume over timeatlas.getPortfolioHistory
Whether a signed write applied, by txIdatlas.getTransactionReceipt
What a signed write contained, by txIdatlas.getTransactionByHash
The recorded outcomes of an account's signed writesatlas.getTransactions
Transfers into and out of an accountatlas.getTransfers
Withdrawalsatlas.getWithdrawals, atlas.getWithdrawal
The Terms of Use a wallet must acceptatlas.getTerms
The Builder tier tableatlas.getBuilderTiers
A Builder ID, terms, volume, payouts and usersatlas.getBuilder, atlas.getBuilderPayouts, atlas.getBuilderUsers
A new accountThe owner key's first signed command (Main) or a signed createSubAccount (sub-account)

Orders, fills and funding payments are read from the same endpoint. See Order reads.

Pages and cursors

Every history read returns one page, { rows, nextCursor }, newest first. Pass nextCursor back unchanged as cursor, with the same filters, for the next page. null ends the traversal. Don't infer the end from a short page, and don't parse the cursor: it is opaque. A cursor sent with different filters is -32602. Where a read takes from and to, both are Unix milliseconds, from inclusive and to exclusive, and from must be earlier than to (equal bounds are -32602, except on atlas.getTransactions and atlas.getWithdrawals, where they select nothing).

History can trail the live streams slightly. atlas.getLedger, atlas.getPortfolioHistory, atlas.getFills, atlas.getOrderHistory and the price histories also return coveredThrough: the time up to which that history is complete. It is not the time of the last row, and newer events may still arrive. An empty page means nothing happened only up to coveredThrough.

  • Fills, order history and funding payments keep a traversal stable: every page after the first stays within the history covered when you read the first page, so rows don't shift under you. To see newer rows, start again from the first page.
  • If a cursor is refused, start again from the first page.

Two rules hold for every read on this page:

  • A history that can't be read is -20003 (Service unavailable), never an empty page or null. Retry with backoff.
  • Absent means unknown, never zero. When an optional figure is absent, show "unavailable". Don't show zero or put an estimate in its place.

Balances

atlas.getBalances

atlas.getBalancesHTTP/account/rpc

Settled cash per asset, one row per asset in each place the account holds it: staked (its staking position and pending unstake), cross (the cross unit) or isolated (the isolated unit of the market symbol names).

Try itatlas.getBalancesHTTP POST
paramsedit me
curl -s https://<api-host>/account/rpc \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"atlas.getBalances","params":{"accountAddress":"0x8f3a6c1e2b9d4f7a0c5e8b1d3f6a9c2e4b7d0f15"}}'
Sent to testnet by the docs server, which adds the API key · use your own account
Response
Press Send to see the response.
accountAddressAccountAddress

Result: Balance[]

Balance

placeenumrequired
symbolSymbol
assetstringrequired
assetIdintegerrequired
totalDecimalStringrequired
availableDecimalStringrequired
heldDecimalStringrequired
unstakeDueNsUint64String

In the example, 1,500 ZRO is staked. 500 of it is on its way back after an unstake, due at unstakeDueNs, and the other 1,000 can still be unstaked.

An address that holds no account yet, but has received deposits or transfers, returns what waits there as cross rows: the cash its first account takes when it opens. An address that holds neither is -12015.

Positions

atlas.getPositions

atlas.getPositionsHTTP/account/rpc

Open positions. A closed position is not listed, except an isolated unit that still holds margin: it is listed with size "0" and its isolatedMargin until the margin is withdrawn.

Try itatlas.getPositionsHTTP POST
paramsedit me
curl -s https://<api-host>/account/rpc \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"atlas.getPositions","params":{"accountAddress":"0x8f3a6c1e2b9d4f7a0c5e8b1d3f6a9c2e4b7d0f15","marketId":4294967298}}'
Sent to testnet by the docs server, which adds the API key · use your own account
Response
Press Send to see the response.
marketIdinteger
accountAddressAccountAddressrequired

Result: Position[]

Position

marketIdintegerrequired
symbolSymbolrequired
sizeDecimalStringrequired
entryPriceDecimalString
marginModeenumrequired
realizedPnlDecimalString
cumulativeFundingDecimalString
unrealizedPnlAmount
isolatedMarginAmount
estLiquidationPricePrice

Positions carry no positionId and no leverage. Tell a cross position from an isolated one by marginMode. An isolated position's margin is what its unit holds: the openingMargin of the order that opened it, adjusted with moveIsolatedMargin. See Trading.

An absent unrealizedPnl or estLiquidationPrice is unknown, not zero: see Pages and cursors. Liquidation follows margin health, not a per-position price: see Liquidation.

Account state

atlas.getAccountState

atlas.getAccountStateHTTP/account/rpc

One call for the whole account: its staked balances, its cross unit, shared by every cross position, and one isolated unit per market held in isolated margin, each with its own cash and position. It also carries the cross unit's health figures, the wallet's state and accepted Terms of Use, the account's limits, its self-trade prevention level and its dead-man clock.

Try itatlas.getAccountStateHTTP POST
paramsedit me
curl -s https://<api-host>/account/rpc \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"atlas.getAccountState","params":{"accountAddress":"0x8f3a6c1e2b9d4f7a0c5e8b1d3f6a9c2e4b7d0f15"}}'
Sent to testnet by the docs server, which adds the API key · use your own account
Response
Press Send to see the response.
accountAddressAccountAddressrequired

Result: AccountState

AccountState

asOfTimestampMsrequired
walletAddressAccountAddress
stakedBalance[]required
crossCrossUnitrequired
›Show 2 child fields
balancesBalance[]required
positionsPosition[]required
isolatedIsolatedUnit[]required
›Show 4 child fields
marketIdintegerrequired
symbolSymbolrequired
balanceBalancerequired
positionPosition
termsTermsVersion | nullrequired
walletStateenumrequired
stpLevelenumrequired
limitsAccountLimits
›Show 2 child fields
maxIsolatedUnitsintegerrequired
maxOpenOrdersintegerrequired
deadManTimeoutSecondsinteger
deadManDeadlineNsUint64String
healthAccountHealth
›Show 7 child fields
equityAmountrequired
unrealizedPnlAmountrequired
usedMarginAmountrequired
maintenanceMarginAmountrequired
availableToTradeAmountrequired
maintenanceBufferAmountrequired
totalEquityAmountrequired

walletState and stpLevel belong to the wallet, so every account in it reports the same values. Orders that add risk are refused while walletState is pending. See Opening an account.

AccountHealth

health is the cross unit's margin figures, the ones pre-trade checks use. It is absent when the account has no margin unit yet, its figures are stale, or the unit's markets don't all settle in one asset. In the terms of Account figures: equity is the cross margin balance, unrealizedPnl the cross unrealized PnL, usedMargin the cross initial margin plus the reserve of resting orders, maintenanceMargin the cross maintenance margin, availableToTrade the cross available margin, maintenanceBuffer the distance to liquidation at the maintenance haircuts (liquidation starts below 0; it is not equity − maintenanceMargin), and totalEquity the cross margin balance plus every isolated margin balance. They are not streamed: read atlas.getAccountState again to refresh them.

Wallet

Reads that cover the whole wallet: its accounts, its owner and keys, and its fee and staking tiers.

atlas.getAccounts

atlas.getAccountsHTTP/account/rpc

Every account in a wallet: the Main first, then the sub-accounts in the order they were opened. Pass the wallet's address, which is its Main's address. A sub-account's address is refused. To find a sub-account's wallet, read walletAddress from atlas.getAccountState.

Try itatlas.getAccountsHTTP POST
paramsedit me
curl -s https://<api-host>/account/rpc \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"atlas.getAccounts","params":{"walletAddress":"0x8f3a6c1e2b9d4f7a0c5e8b1d3f6a9c2e4b7d0f15"}}'
Sent to testnet by the docs server, which adds the API key
Response
Press Send to see the response.
walletAddressAccountAddressrequired

Result: WalletAccounts

WalletAccounts

walletAddressAccountAddressrequired
accountsWalletAccount[]required
›Show 2 child fields
accountAddressAccountAddressrequired
kindenumrequired
subAccountsUsedintegerrequired

atlas.getKeys

atlas.getKeysHTTP/account/rpc

For the wallet that holds the account: the address its owner signs as, the owner key's last accepted nonce, and every instruction key bound to one of the wallet's accounts, with each binding's scope, Builder Fee caps and nonce mode. A known wallet with no bound keys returns an empty keys array.

Try itatlas.getKeysHTTP POST
paramsedit me
curl -s https://<api-host>/account/rpc \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"atlas.getKeys","params":{"accountAddress":"0x8f3a6c1e2b9d4f7a0c5e8b1d3f6a9c2e4b7d0f15"}}'
Sent to testnet by the docs server, which adds the API key · use your own account
Response
Press Send to see the response.
accountAddressAccountAddressrequired

Result: KeyList

KeyList

walletAddressAccountAddressrequired
ownerAddressEvmAddress | nullrequired
ownerKeyNonceUint64Stringrequired
keysKeyInfo[]required
›Show 2 child fields
instructionKeyEvmAddressrequired
bindingsKeyBinding[]required
›Show 5 child fields
accountAddressAccountAddressrequired
scopeenumrequired
builderFeeCapobjectrequired
nonceModeenumrequired
lastGaplessNonceUint64String

A key bound in several wallets appears in each, with that wallet's bindings. The values follow committed commands with a short delay: if you sign the next gapless nonce from an older value and it is refused as not next, read again and sign the value read plus one. Keys are bound and removed with setInstructionKey. See Trading.

atlas.getSignerPolicy

atlas.getSignerPolicyHTTP/account/rpc

A signer policy's record: the identity the venue assigned it, how many member signatures a proof needs, and its members. A wallet owned by a policy reports the policy's identity as ownerAddress in atlas.getKeys; read the policy here to show what signing for that wallet needs. A record never changes once created.

Try itatlas.getSignerPolicyHTTP POST
paramsedit me
curl -s https://<api-host>/account/rpc \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"atlas.getSignerPolicy","params":{"identity":"0x3e5a7c9b1d2f4e6a8c0b2d4f6e8a1c3b5d7f9e2a"}}'
Sent to testnet by the docs server, which adds the API key
Response
Press Send to see the response.
identityEvmAddressrequired

Result: Policy, or null when no record is held under identity.

Policy

identityEvmAddressrequired
thresholdintegerrequired
membersEvmAddress[]required

null covers an address that is not a policy identity and a policy whose createSignerPolicy is not visible yet.

atlas.getFeeTier

atlas.getFeeTierHTTP/account/rpc

The wallet's user fee tier, its 14-day weighted volume and what the next tier needs, from the latest tier snapshot. The tier sets the wallet's taker and maker rates.

Try itatlas.getFeeTierHTTP POST
paramsedit me
curl -s https://<api-host>/account/rpc \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"atlas.getFeeTier","params":{"accountAddress":"0x8f3a6c1e2b9d4f7a0c5e8b1d3f6a9c2e4b7d0f15"}}'
Sent to testnet by the docs server, which adds the API key · use your own account
Response
Press Send to see the response.
accountAddressAccountAddressrequired

Result: FeeTier

FeeTier

walletAddressAccountAddressrequired
userTierstring | nullrequired
weightedVolume14dDecimalString | nullrequired
nextTierobject | nullrequired
snapshotAtTimestampMs | nullrequired

Which tiers a wallet can reach is on Trading fees. The staking discount on top of this tier is in atlas.getStakingState.

atlas.getStakingState

atlas.getStakingStateHTTP/account/rpc auth

The wallet's staking tier, the ZRO staked across it, and what the next tier needs, from the latest tier snapshot. The tier sets the staking discount on the wallet's fees. Send Authorization: Bearer <accessToken> from an auth.login, signed by the wallet's owner key or by an instruction key bound to accountAddress. The result covers the whole wallet, Main and every sub-account, even when the key is bound only to that account.

Try itatlas.getStakingStateHTTP POST
paramsedit me
curl -s https://<api-host>/account/rpc \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"atlas.getStakingState","params":{"accountAddress":"0x8f3a6c1e2b9d4f7a0c5e8b1d3f6a9c2e4b7d0f15"}}'
Documented example (the launch spec), not a live call
Response
Press Send to see the response.
accountAddressAccountAddressrequired

Result: StakingState

StakingState

walletAddressAccountAddressrequired
stakingTierstring | nullrequired
stakedZroDecimalString | nullrequired
nextTierobject | nullrequired
snapshotAtTimestampMs | nullrequired
ErrorWhen
-20002No access token
-12019, -12020The token has expired or is invalid. Log in again
-12009The token doesn't cover accountAddress, or its key no longer acts for that account
-20003The tier can't be read

Each account's own stake and pending unstake are its place staked rows in atlas.getBalances.

Ledger

atlas.getLedger

atlas.getLedgerHTTP/account/rpc

Every change to the account's balances, newest first: trades, fees, funding, interest, deposits, transfers, staking, withdrawals, liquidations, ADL and force closes. Only the account's own legs are returned. Filter type to liquidation or adl for liquidation history, and to withdrawal for withdrawals.

Try itatlas.getLedgerHTTP POST
paramsedit me
curl -s https://<api-host>/account/rpc \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"atlas.getLedger","params":{"accountAddress":"0x8f3a6c1e2b9d4f7a0c5e8b1d3f6a9c2e4b7d0f15","asset":"USDT","limit":2}}'
Sent to testnet by the docs server, which adds the API key · use your own account
Response
Press Send to see the response.

Both rows come from one fill: the PnL it realized and the fee it paid.

accountAddressAccountAddressrequired
assetstring
typeenum
fromTimestampMs
toTimestampMs
limitinteger
cursorstring

Result: LedgerPage

LedgerPage

rowsLedgerEntry[]required
›Show 13 child fields
transactionIdstringrequired
legIndexintegerrequired
timestampTimestampMsrequired
typeenumrequired
kindenum
causeIdstringrequired
assetstringrequired
assetIdintegerrequired
amountDeltaDecimalStringrequired
reasonenumrequired
symbolSymbol
orderIdOrderId
memostring
nextCursorstring | nullrequired
coveredThroughTimestampMs | nullrequired
typekindcauseId
fillThe fill's tradeId
depositThe digest of the request that booked the deposit
withdrawalThe withdrawalId: the withdraw's txId, the transferId its result carried
transferinternalThe transfer's own transactionId
transferisolated_add, isolated_removeIts own transactionId
transferstake, unstake, unstake_releaseIts own transactionId
funding, interestThe funding session's sessionId
liquidationvault_assignmentThe liquidation id
adlThe ADL id
force_closeOpaque id of the force close

A causeId is unique only within its type, and within its kind on a transfer, so match on those too. Rows with the same cause share it: a fill's trade and fee legs share the tradeId. A withdrawal is one debit of the full amount under its withdrawalId. A funding or interest row's timestamp is when the settlement was booked, which can be after the session that fixed the charge.

An unstake shows as an unstake row when it is requested and an unstake_release row when the pending unstake returns to the cross unit.

Portfolio history

atlas.getPortfolioHistory

atlas.getPortfolioHistoryHTTP/account/rpc

Account value, PnL and traded volume over trailing windows, for a portfolio chart. Values are in the margin base asset (for example USDT).

Try itatlas.getPortfolioHistoryHTTP POST
paramsedit me
curl -s https://<api-host>/account/rpc \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"atlas.getPortfolioHistory","params":{"accountAddress":"0x8f3a6c1e2b9d4f7a0c5e8b1d3f6a9c2e4b7d0f15","window":"day"}}'
Sent to testnet by the docs server, which adds the API key · use your own account
Response
Press Send to see the response.

In this example the account made 12.4, then gave back 3.5. The third point is a 500 deposit: it raised the value without counting as PnL. A real day window has many more points; the example leaves them out.

accountAddressAccountAddressrequired
windowenum

Result: PortfolioHistory

PortfolioHistory

accountAddressAccountAddressrequired
windowsPortfolioWindow[]required
›Show 4 child fields
windowenumrequired
accountValueHistoryPortfolioPoint[]required
pnlHistoryPortfolioPoint[] | nullrequired
volumeDecimalStringrequired
coveredThroughTimestampMs | nullrequired
  • Points fall at snapshot times, not on a fixed grid. Their density falls as the window grows.
  • A window may start slightly before its nominal start, and ends at coveredThrough.
  • Hide the PnL chart for a window whose pnlHistory is null. Don't draw zero.

Transactions

Every signed write is named by its txId: the digest its credential signs (its Opaque or Typed digest), 0x + 64 lowercase hex. It is not a hash of the signature, not the nonce and not a client order id. The write's result or error carries it, and so do the orders, fills and history rows it produced. Three reads look a write up by it:

ReadAnswers
atlas.getTransactionReceiptDid ATLAS apply it?
atlas.getTransactionByHashWhat did it sign?
atlas.getTransactionsWhat was its recorded outcome, applied or refused?

atlas.getTransactionReceipt

atlas.getTransactionReceiptHTTP/account/rpc

Whether one signed transaction has been applied. committed means it is applied and final. Use it to settle what happened after a lost reply or an uncertain error.

Try itatlas.getTransactionReceiptHTTP POST
paramsedit me
curl -s https://<api-host>/account/rpc \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"atlas.getTransactionReceipt","params":{"txId":"0xb1337dd9087bea77f000559a4282bc91a6665602d35b6cc240a516226ed7d8db"}}'
Sent to testnet by the docs server, which adds the API key
Response
Press Send to see the response.
txIdTxIdrequired

Result: { txId, status: "committed" }, or null when no applied entry carries the txId.

A receipt carries no result and no refusal. null means not applied: refused, or not visible yet. It can still apply, until its nonce settles it (the last step below).

  1. Read the receipt

    After an unknown outcome, such as -10010, -32603 or a lost reply, call atlas.getTransactionReceipt. committed: it applied. Don't send it again.
  2. Null: check for an error

    If atlas.getTransactions with the acting account and the txId shows an error, nothing changed. Resend the same signed bytes only if the code is retryable, no higher nonce of the key on the same channel has applied, and the nonce has not expired; otherwise fix the cause and sign again with a new nonce. No row proves nothing: a refused write is normally not recorded, and its error answer was the only record. See Errors.
  3. Otherwise resend the same bytes

    Resend the identical signed request, same nonce and signature: it applies at most once. Don't sign the same intent again with a new nonce while the outcome is open: both could apply.
  4. A higher nonce or expiry settles it

    Once a later transaction from the same key and nonce channel has applied, the earlier one can never apply. Nor can it once its nonce has expired by the venue's time, which never goes back: from expires_at for a gapless nonce, or once an increasing nonce falls behind the nonce window. null is then final once atlas.getTransactions, for any account, lists a row whose createdAt is at or after that moment: the receipt and that list stop at the same point in the history, so a receipt read after you see that row covers that moment.

atlas.getTransactionByHash

atlas.getTransactionByHashHTTP/account/rpc

What one signed transaction is: its signed fields and the credential that signed them, exactly as signed. It answers once an attempt of the transaction is recorded, applied or refused. Read what it did with atlas.getTransactionReceipt or atlas.getTransactions.

Try itatlas.getTransactionByHashHTTP POST
paramsedit me
curl -s https://<api-host>/account/rpc \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"atlas.getTransactionByHash","params":{"txId":"0xb1337dd9087bea77f000559a4282bc91a6665602d35b6cc240a516226ed7d8db"}}'
Sent to testnet by the docs server, which adds the API key
Response
Press Send to see the response.

The example shortens the byte fields.

txIdTxIdrequired

Result: SignedTransaction, or null when no attempt is recorded.

SignedTransaction

txIdTxIdrequired
chainIdintegerrequired
authorityAccountAddressrequired
signerEvmAddressrequired
nonceNoncerequired
kindstringrequired
commandstringrequired
sigSuitestringrequired
domainChainIdUint64String | nullrequired
proofstringrequired
envelopestringrequired

null means no attempt is recorded: it was refused, or it is not visible yet. It doesn't prove the transaction was never sent.

atlas.getTransactions

atlas.getTransactionsHTTP/account/rpc

The account's recorded signed writes and their outcomes, newest first. Recorded refusals are included.

Try itatlas.getTransactionsHTTP POST
paramsedit me
curl -s https://<api-host>/account/rpc \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"atlas.getTransactions","params":{"accountAddress":"0x8f3a6c1e2b9d4f7a0c5e8b1d3f6a9c2e4b7d0f15","kind":"placeOrder","limit":1}}'
Sent to testnet by the docs server, which adds the API key · use your own account
Response
Press Send to see the response.
accountAddressAccountAddressrequired
txIdTxId
kindstring
fromTimestampMs
toTimestampMs
limitinteger
cursorstring

Result: { rows: TransactionRecord[], nextCursor }, newest first. See Pages and cursors. A pending row can complete after you page past it: read it again by txId.

TransactionRecord

txIdTxIdrequired
accountAddressAccountAddressrequired
kindstringrequired
createdAtTimestampMsrequired
statusenumrequired
resultobject | nullrequired
errorobject | nullrequired

These kinds are covered: placeOrder, cancelOrder, replaceOrder, cancelAllOrders, cancelAllOrdersAfter, moveIsolatedMargin, setStpLevel, createSubAccount, createSignerPolicy, internalTransfer, transfer, withdraw, stake, unstake, rotateOwnerKey, setInstructionKey and setWalletConfigBatched (the grant that activates a wallet after enableTrading). A signed message such as enableTrading has no record. Any other kind is left out of the list and is -32602 as a kind filter. Advanced orders have their own reads (see Advanced order reads).

Transfers

atlas.getTransfers

atlas.getTransfersHTTP/account/rpc

Booked transfers into and out of one account, newest first, each with its memo unchanged. A transfer appears only once it is booked, so every row is final. Pass transferId to look up one transfer.

Try itatlas.getTransfersHTTP POST
paramsedit me
curl -s https://<api-host>/account/rpc \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"atlas.getTransfers","params":{"accountAddress":"0x8f3a6c1e2b9d4f7a0c5e8b1d3f6a9c2e4b7d0f15","limit":20}}'
Sent to testnet by the docs server, which adds the API key · use your own account
Response
Press Send to see the response.

The memo above is the UTF-8 text invoice-42, padded with zero bytes to 64.

accountAddressAccountAddressrequired
transferIdstring
limitinteger
cursorstring

Result: TransferHistoryPage

TransferHistoryPage

rowsTransferRecord[]required
›Show 8 child fields
transferIdstringrequired
accountAddressAccountAddressrequired
directionenumrequired
assetIdintegerrequired
amountPositiveDecimalStringrequired
memostringrequired
statusenumrequired
timestampMsTimestampMsrequired
nextCursorstring | nullrequired

Transfers are sent with internalTransfer (within your wallet) or transfer (to any account). For who can sign which, see Transfers and withdrawals; for the rules, see Withdrawals and transfers.

Withdrawals

A withdrawal is a signed withdraw that sends funds to another Zero zone. The amount must be at least the asset's withdrawalMinimum and name one of its withdrawalZones, both on atlas.getAssets. For fees and when a withdrawal is accepted, see Withdrawals and transfers. Track one with:

The write answers { status: "ok", transferId } once ATLAS has booked the withdrawal. That confirms the debit, not arrival on the destination zone, and no ATLAS read reports arrival. Confirm it on the destination zone itself: once ATLAS's block that booked the withdrawal settles and the message is delivered, destinationApp pays receiveAmount to receiver there. After a timeout the outcome is unknown: check the receipt or the ledger before you send another withdrawal.

atlas.getWithdrawals

atlas.getWithdrawalsHTTP/account/rpc

One account's withdrawals, newest first, one row per signed withdrawal, applied and rejected alike. A withdrawal sent more than once is one row: it is applied once any attempt applied, and rejected when every recorded attempt was refused. A refused attempt may not be listed at all: its error answer is then the only record.

accountAddressAccountAddressrequired
statusenum
fromTimestampMs
toTimestampMs
limitinteger
cursorstring

Result: { rows: Withdrawal[], nextCursor }. See Pages and cursors.

Withdrawal

withdrawalIdstringrequired
accountAddressAccountAddressrequired
statusenumrequired
createdAtTimestampMsrequired
assetIdinteger
amountDecimalString
destinationZoneinteger
receiverstring
memostring
destinationAppstring
receiveAmountDecimalString
rejectReasonJsonRpcError
One applied withdrawal
{
  "withdrawalId": "0x1111111111111111111111111111111111111111111111111111111111111111",
  "accountAddress": "0x8f3a6c1e2b9d4f7a0c5e8b1d3f6a9c2e4b7d0f15",
  "status": "applied",
  "createdAt": 1791210612345,
  "assetId": 1,
  "amount": "25",
  "destinationZone": 19,
  "destinationApp": "0xabcd",
  "receiver": "0x0000000000000000000000001111111111111111111111111111111111111111",
  "memo": "0x",
  "receiveAmount": "25"
}

A status filter doesn't freeze a row: a withdrawal listed as rejected becomes applied if a later attempt of the same signed withdrawal applies.

CodeWhen
-32602Invalid params, or a cursor sent with different filters
-12015Unknown account
-20003History can't be read. Retry with backoff

atlas.getWithdrawal

atlas.getWithdrawalHTTP/account/rpc

One withdrawal and each recorded attempt of it.

accountAddressAccountAddressrequired
withdrawalIdstringrequired

Result: { withdrawal, steps }, or null.

withdrawalWithdrawalrequired
stepsobject[]required
›Show 3 child fields
statusenumrequired
timeTimestampMsrequired
rejectReasonJsonRpcError

null means this account has no withdrawal with that id yet. It doesn't prove the withdrawal was never sent: a recent one may not be visible yet. Errors are as for atlas.getWithdrawals.

Terms

atlas.getTerms

atlas.getTermsHTTP/account/rpc

The Atlas Terms of Use in force and where to fetch the text. There is one terms document: every wallet accepts it to trade, with enableTrading, and every Builder with enableBuilder. A signer accepts exactly the terms object returned here; anything else is refused.

Try itatlas.getTermsHTTP POST
paramsedit me
curl -s https://<api-host>/account/rpc \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"atlas.getTerms","params":{}}'
Sent to testnet by the docs server, which adds the API key
Response
Press Send to see the response.
idstring
versionstring

Result: Terms[]. Without params, the version in force: the newest whose effectiveAt has passed, or an empty array before the first.

Terms

termsTermsVersionrequired
›Show 3 child fields
idstringrequired
versionstringrequired
contentHashstringrequired
effectiveAtTimestampMsrequired
documentUrlstringrequired

Before you show the terms for acceptance, fetch documentUrl and check that keccak256 of the downloaded bytes equals terms.contentHash. Render the Markdown for display; hash the raw bytes.

Builders

A Builder is an app that routes orders and earns a Builder Fee. Public reads serve the tier table and a Builder's dashboard. Two private reads, which can carry deal terms, need an access token. From a restricted region these return -20014.

atlas.getBuilderTiers

atlas.getBuilderTiersHTTP/account/rpc

The published Builder Tier table, lowest tier first: each tier's Builder Rebate and the 14-day Builder Volume or staked ZRO that reaches it. Public, no params.

Try itatlas.getBuilderTiersHTTP POST
paramsedit me
curl -s https://<api-host>/account/rpc \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"atlas.getBuilderTiers","params":{}}'
Sent to testnet by the docs server, which adds the API key
Response
Press Send to see the response.

The example is illustrative and shows only the first three tiers. See Builder rebates, and read the live table from this method.

BuilderTierTable

tiersBuilderTierThreshold[]required
›Show 4 child fields
tierstringrequired
rebatePctDecimalStringrequired
builderVolume14dDecimalStringrequired
stakedZroDecimalStringrequired

The table is served as last published; there are no built-in values. Before a table is published, or if it can't be read, the call is -20003.

atlas.getBuilder

atlas.getBuilderHTTP/account/rpc

The Builder ID, the Terms of Use version it last accepted, and its volume in UTC buckets.

Try itatlas.getBuilderHTTP POST
paramsedit me
curl -s https://<api-host>/account/rpc \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"atlas.getBuilder","params":{"accountAddress":"0x8f3a6c1e2b9d4f7a0c5e8b1d3f6a9c2e4b7d0f15","window":"day","interval":"1h"}}'
Sent to testnet by the docs server, which adds the API key · use your own account
Response
Press Send to see the response.

The example is cut to the last two of 25 hourly buckets.

accountAddressAccountAddressrequired
windowenum
fromTimestampMs
toTimestampMs
intervalenum

Result: Builder

Builder

builderIdBuilderIdrequired
termsTermsVersion | nullrequired
statsBuilderStats | nullrequired
›Show 5 child fields
windowenum
intervalenumrequired
totalsobjectrequired
seriesobject[]required
asOfTimestampMsrequired
  • Builder Volume is paid flow from wallets stamped with the Builder ID, on any app. App Volume is flow through orders carrying the Builder ID. A liquidation fill counts in Builder Volume, not App Volume.
  • builderFee is the Builder Fee charged on App Volume fills, counted when the fill happens, before it is paid out. The Builder Rebate is computed per payout period and reported by atlas.getBuilderPayouts.
  • Buckets align to UTC. A range's start is rounded down to a bucket boundary, so a week window in 1d buckets returns 8 buckets, the last one partial. More than 1,000 buckets is -32602.
ErrorWhen
-12024The account has no Builder ID from enableBuilder (not a Builder)
-20003Service unavailable. Retry with backoff

While the volume history can't be read, the call still answers, with the Builder ID and terms and stats: null.

atlas.getBuilderPayouts

atlas.getBuilderPayoutsHTTP/account/rpc auth

The Builder's tier and its Builder Fee and Builder Rebate payouts, newest period first. Send Authorization: Bearer <accessToken> from auth.login, with a token that covers the Builder's Main.

accountAddressAccountAddressrequired
limitinteger
cursorstring

Result: BuilderPayoutPage

BuilderPayoutPage

tierBuilderTierrequired
›Show 7 child fields
tierstring | nullrequired
rebatePctDecimalString | nullrequired
qualifiedByenum | nullrequired
stakedZroDecimalString | nullrequired
builderVolume14dDecimalString | nullrequired
nextTierobject | nullrequired
snapshotAtTimestampMs | nullrequired
rowsBuilderPayout[]required
›Show 9 child fields
payoutIdstringrequired
kindenumrequired
periodStartTimestampMsrequired
periodEndTimestampMsrequired
paidAtTimestampMsrequired
assetstringrequired
assetIdintegerrequired
amountDecimalStringrequired
creditedAccountAddressAccountAddressrequired
nextCursorstring | nullrequired
nextPayoutAtTimestampMs | nullrequired

The tier figures come from the published tier table. Until one is published the call is -20003; there are no built-in thresholds. The rows list payouts that have been paid: a scheduled payout appears only once it is credited. For the payout schedule and rules, see Payouts.

atlas.getBuilderUsers

atlas.getBuilderUsersHTTP/account/rpc auth

The Builder's users for one payout period: every wallet stamped with the Builder ID, and every other wallet that traded through the Builder's app in the period. Needs the same bearer token as atlas.getBuilderPayouts.

accountAddressAccountAddressrequired
periodStartTimestampMs
limitinteger
cursorstring

Result: BuilderUserPage

BuilderUserPage

periodStartTimestampMsrequired
periodEndTimestampMsrequired
rowsBuilderUser[]required
›Show 6 child fields
walletAddressAccountAddressrequired
stampedAtTimestampMs
builderVolumeDecimalStringrequired
appVolumeDecimalStringrequired
builderFeeDecimalStringrequired
builderRebateDecimalString | nullrequired
nextCursorstring | nullrequired
asOfTimestampMsrequired

Errors (both private reads)

ErrorWhen
-32602Invalid params
-20002No access token
-12019, -12020The token has expired or is invalid. Log in again
-12009The token doesn't cover the Builder's Main
-12024The account is not a Builder
-20014Restricted region
-20003Payout or volume history, or the tier table, can't be read. Retry with backoff

Opening an account

There is no registration call. Your Main's address is your owner key's address, and deposits to it before it holds an account wait there: atlas.getBalances and atlas.getAccountState show them as cross rows, with walletState pending.

The owner key's first signed command opens the wallet and its Main, and enables trading: see Open an account and enable trading. Afterwards walletState is active.

A sub-account opens with a signed createSubAccount. Read its address from atlas.getAccounts once it is open.

Service

These diagnostics take no params: omit params or send {}.

atlas.getVersion

atlas.getVersionHTTP/seq/rpc, /account/rpc, /market/rpc

The build that answered, the deployment's ATLAS chain id, and the venue's Typed transaction signing domain. Use it to read the chain id and domain to sign with. /seq/tx and the WebSocket paths don't serve it.

Try itatlas.getVersionHTTP POST
paramsedit me
curl -s https://<api-host>/seq/rpc \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"atlas.getVersion","params":{}}'
Sent to testnet by the docs server, which adds the API key
Response
Press Send to see the response.

VersionInfo

versionstringrequired
gitShastringrequired
commitTimestringrequired
buildTimestringrequired
signingSigningInforequired
›Show 2 child fields
chainIdintegerrequired
transactionDomainobjectrequired

version, gitSha, commitTime and buildTime identify the build: quote them when you contact support. Any of them can be unknown.

atlas.getTime

atlas.getTimeHTTP/seq/rpc, /market/rpc

The answering server's clock, as a JSON integer of Unix milliseconds. Use it to sign a nonce whose millisecond falls inside the venue's window when you have no other source of server time.

Try itatlas.getTimeHTTP POST
paramsedit me
curl -s https://<api-host>/seq/rpc \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"atlas.getTime","params":{}}'
Sent to testnet by the docs server, which adds the API key
Response
Press Send to see the response.

Don't cache it: estimate your clock offset from your send and receive times. The TradingView /udf/time endpoint returns seconds instead.