Contracts
Contracts · ABI

AccountLayer

Subaccount lifecycle and deposits — every method called directly against the AccountLayer diamond.

Wallet
Not connected

getSubAccount
read
Read a single subaccount by its address.
Enter a subaccount address and read.
getSubAccountVirtualNonce
read
Read a subaccount's Virtual Account nonce (seeds the next VA address).
Enter a subaccount address and read.
getSubAccountsCountOfUser
read
Count how many subaccounts an address owns.
Run the read to see the count.
getUserSubAccounts
read
List a user's subaccounts on AccountLayer.

Enter a valid address (defaults to connected wallet).

Run the read to see subaccounts.
getUserSubAccountsAddresses
read
List a user's subaccount addresses (addresses only).
Run the read to see addresses.
getVirtualAccount
read
Read a Virtual Account's detail: parent subaccount, market symbolId, isolation type, metadata.

Browse the connected wallet's subaccounts and pick a VA — or paste an address directly.

Pick or paste a VA address and read.
getVirtualAccountsAddressesOfSubAccount
read
List a subaccount's Virtual Account (VA) addresses — the partyA values for VibeCaps quote reads.
Run the read to see VA addresses.

createSubAccounts
write
Create a subaccount for the connected wallet under the app's affiliate and Symmio core.
Affiliate · Symmio coreDefault
affiliate
0xBcB033…741b7c
symmioCore
0x573310…2dcE2e
Fill the fields above and submit.
editAccountName
write
Rename one of the connected user's subaccounts.
Fill the fields above and submit.
deleteSubAccount
write
Permanently delete one of the connected wallet's subaccounts. Irreversible.
Requires before deletion
  • No virtual accounts (delete them first)
  • Zero free and allocated balance
  • No open positions
  • No pending quotes
Pick a subaccount, then delete.
depositForAccount
write
Deposit collateral into a subaccount's available balance. Requires a prior approveCollateral.
Fill the fields above and submit.
depositAndAllocateForAccount
write
Deposit collateral and allocate it into trading margin in one transaction.
Fill the fields above and submit.
addMargin
write
Add margin to a virtual account — move collateral from the parent subaccount's available balance into the VA. No signature required.
Fill the fields above and submit.
removeMargin
write
Remove margin from a virtual account (deallocate). Sending fetches a fresh Muon uPnL signature automatically; subject to the on-chain deallocate debounce.
Fill the fields above and submit.