Function sendTokens

  • Transfers tokens between designated wallets and retursn a transaction signature.

    Parameters

    • provider: AnchorProvider

      Connection/wallet context

    • fromWallet: PublicKey

      Source account

    • toWallet: PublicKey

      Destination account

    • amount: number

      Number of tokens to transfer

    Returns Promise<web3.TransactionSignature>