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

getCollateralBalance

Read the ERC-20 balance of the collateral token for one owner (usually the connected EOA).

import { getCollateralBalance } from "@symmio/trading-core"; const balance = await getCollateralBalance(config, { owner });

Parameters

ownerAddressrequired

Address whose collateral-token balance to read (usually the connected EOA).

chainIdnumberoptional

Optional chain override.

Returns

bigint
The wallet balance, in the collateral token’s units.

Query options

import { getCollateralBalanceQueryOptions } from "@symmio/trading-core"; import { useQuery } from "@tanstack/react-query"; useQuery(getCollateralBalanceQueryOptions(config, { owner }));
Last updated on