Skip to content

API ReferenceTokens and balancesFunction

getAccountTokenBalance()

function getAccountTokenBalance(ctx, params): Promise<bigint>;

Fetches the current token balance for the provided token and configured account.

Parameters

ParameterTypeDescription
ctxSDKContextThe SDK context.
paramsGetAccountTokenBalanceParamsThe request-specific parameters.

Returns

Promise<bigint>

The token balance for the account in question.