Function confirmTokenBalance

  • Asserts that the balance of a token account matches the provided expected quantity

    Parameters

    • provider: AnchorProvider

      Connection/wallet context

    • tokenAccount: PublicKey

      Public key of account to be confirmed

    • expectedQuantity: number

      Expected number of tokens in account

    • Optional confirmClosed: boolean

    Returns Promise<void>