Skip to main content

Tokens

The tokens module allows obtaining information on the tokens of Alfa services.

Methods

Get the tokens of an account

The getTokensFromAccount method allows you to get the tokens from a specific account.

const tokens = sdk.tokens;

const account = "0xa73a3b8ACa335855EeaC2f9Fb505BB0360A1B703";
constchainId = 80001;

const assets = await tokens.getTokensFromAccount(account, chainId);