Skip to Content
Symmio Trading-SDK — the SDK surface for builders on HyperEVM
CoreAccountLayergetUserSubAccounts

getUserSubAccounts

List a user’s subaccounts.

import { getUserSubAccounts } from "@symmio/trading-core"; const subs = await getUserSubAccounts(config, { user: "0xabc...", offset: 0n, limit: 200n, });

Parameters

userAddressrequired

EOA whose subaccounts to list.

offsetbigintdefault 0n

Pagination offset.

limitbigintdefault 200n

Max number of subaccounts to return.

chainIdnumberoptional

Optional chain override.

Returns

readonly SubAccountDetail[]
accountAddressAddress

The subaccount’s proxy address on-chain.

ownerAddress

The EOA that created and owns the subaccount.

namestring

User-defined display name. Editable via the editAccountName write.

isExistsboolean

false for a subaccount that has been deleted on-chain.

singleVAModeboolean

true when the subaccount routes successive quotes for the same market into the existing active VA instead of creating a fresh VA per sendQuote. Toggleable only while no VAs are active on the subaccount.

affiliateAddress

Affiliate address attributed to the subaccount, or the zero address.

symmioCoreAddress

The SYMMIO core (diamond) address this subaccount trades against.

metadataHex

Free-form contract metadata blob. May be 0x (empty) for most accounts.

Strategy the AccountLayer uses to create VAs for this subaccount’s trades.

Query options

import { getUserSubAccountsQueryOptions } from "@symmio/trading-core"; import { useQuery } from "@tanstack/react-query"; useQuery(getUserSubAccountsQueryOptions(config, { user: "0xabc..." }));

Raw ABI

For consumers that want to call viem directly:

import { accountLayerAbi } from "@symmio/trading-core"; await publicClient.readContract({ abi: accountLayerAbi, address: accountLayerAddress, functionName: "getUserSubAccounts", args: ["0xabc...", 0n, 200n], });
Last updated on