GET List of Tokens Owned by Address
Get the list of Tokens owned by Address
The getTokenList()
function allows you to get the list of tokens owned by a specific address. You can use this function to retrieve information such as the token name, symbol, and balance. The function returns a TokenList
object that contains a list of Token
objects, each of which represents a token owned by the specified address.
- Web
- Flutter
const address = "ADDRESS";
const tokenList = await fuseSDK.explorerModule.getTokenList(address);
final String address = 'ADDRESS';
final tokenListData = await fuseSDK.explorerModule.getTokenList(
address,
);
tokenListData.pick(
onData: (TokenList tokenList) {
// Do you magic here
},
onError: (err) {
// Handle errors
},
);