Get ERC721 Tokens (NFTs)

Once the user's wallet is created, you may want to fetch the ERC721 tokens (also known as NFTs) in the user's account. The Leap Wallet SDK provides the necessary methods for this.

To get the balance of an ERC721 token, use the following code:

const balance = await provider.getBalance('wallet-address');

// ERC721 Token Balance
const contract = new erc20(erc721_token_contract_address, provider);
const balance = await contract.getBalance('wallet-address');

Last updated