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

getCollateralAllowance

Read the allowance the owner has granted the SYMMIO core to spend the collateral token.

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

Parameters

ownerAddressrequired

Token owner whose allowance to the SYMMIO core is read (usually the connected EOA).

chainIdnumberoptional

Optional chain override.

Returns

bigint
The current allowance, in the collateral token’s units.

Query options

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