Function getTokenAccount

  • Parameters

    • connection: Connection
    • wallet: PublicKey
    • mint: PublicKey
    • newAccountFunder: PublicKey = wallet
    • Optional amountNeededHeuristic: number

    Returns Promise<{
        tokenAccount: web3.PublicKey;
    } | {
        createInstruction: web3.TransactionInstruction[];
        tokenAccount: web3.Keypair | web3.PublicKey;
    }>