Function fetchTokenAccountValue

  • Fetches the value of a token account, in raw decimals. If an invalid account is passed in, 0 is returned.

    Parameters

    • connection: Connection

      The connection to use.

    • account: PublicKey

      The account to fetch the value from.

    Returns Promise<number>

    A promise that resolves to the token account value.

Generated using TypeDoc