# SDK Methods Tokens

# Get All ERC20 Tokens

Get all the ERC20 tokens information. This will only return for tokens which are on the currently selected network.

getAll(): Promise<EnabledERC20TokenResponse[]>

EnabledERC20TokenResponse:

{
  symbol: string;
  decimalPlaces: number;
  networkId: number;
  contractAddress: string;
  iconUrl: string;
  hasFiatPrice: boolean;
}

    # Get Enabled ERC20 Tokens

    Get the ERC20 token information. Will return null if it can not match the contract address. This will only find tokens which are on the currently-selected network.

    get(contractAddress: string): Promise<EnabledERC20TokenResponse | null>
    

    EnabledERC20TokenResponse:

    {
      symbol: string;
      decimalPlaces: number;
      networkId: number;
      contractAddress: string;
      iconUrl: string;
      hasFiatPrice: boolean;
    }
    

      # Get All ERC20 Token Balances

      Get all the ERC20 token balances information. The tokenBalance is already formatted for you so that value is the value you can directly show the user without having to convert to a readable value. This will only return tokens which are on the currently-selected network.

      getAllBalances(): Promise<BalanceResponse[]>
      

      BalanceResponse:

      {
        symbol: string;
        // already formatted for you by the decimal places
        tokenBalance: string;
        decimalPlaces: number;
        networkId: number;
        contractAddress: string;
        iconUrl: string;
        hasFiatPrice: boolean;
      }
      

        # Get ERC20 Token Balance

        Get the ERC20 token balance information. Will return null if it can not match the contract address. The tokenBalance is already formatted for you so that value is the value you can directly show the user without having to convert to a readable value. This will only find tokens which are on the currently-selected network.

        balance(): Promise<BalanceResponse | null>
        

        BalanceResponse:

        {
          symbol: string;
          // already formatted for you by the decimal places
          tokenBalance: string;
          decimalPlaces: number;
          networkId: number;
          contractAddress: string;
          iconUrl: string;
          hasFiatPrice: boolean;
        }
        

          # Get ERC20 Token Icon

          Get the ERC20 token icon. Will return null if it can not match the contract address. This will only find tokens which are on the currently-selected network. If you plan to use these in your dApp please do not hard code icon URLs, as the build up of that image includes a hash of the content. If that image was ever updated that link would not work anymore. So calling this to grab the src for the image each time would be the best solution.

          icon(): string | null
          

            # Get ERC20 Token Fiat Price

            Get the ERC20 token fiat price. Will return null if it can not match the contract address OR if the Wallet does not have a fiat price for that token. This will only find tokens which are on the currently-selected network.

            fiatPrice(): number | null