Function useNFTBalance

  • Beta

    Get NFT balance of a specific wallet

    Parameters

    Returns UseQueryResult<BigNumber, unknown>

    a response object that includes the total balance of the owner

    Example

    const { data: ownerBalance, isLoading, error } = useNFTBalance(contract, "{{wallet_address}}");
    // for ERC1155 contracts, you can also pass a tokenId
    const tokenId = 0;
    const { data: ownerBalance, isLoading, error } = useNFTBalance(contract, "{{wallet_address}}", tokenId);

    Twfeature

    ERC721 | ERC1155

    See

    Documentation

Generated using TypeDoc