Skip to content

prepareForCreatingAssociatedTokenAccount(owner_mint_feePayer_closeAfterward_)

bigearsenal edited this page May 17, 2022 · 1 revision

prepareForCreatingAssociatedTokenAccount(owner:mint:feePayer:closeAfterward:)

Prepare instructions for creating associated token account and close if needed

public func prepareForCreatingAssociatedTokenAccount(
        owner: PublicKey,
        mint: PublicKey,
        feePayer: PublicKey,
        closeAfterward: Bool
    )

Parameters

  • owner: The owner of new WSOL account
  • mint: The mint of ther token
  • feePayer: The payer of the transaction (usually the owner)
  • closeAfterward: close after done or not

Returns

AccountInstructions that contains needed instructions, signers, .etc

Types
Protocols
Global Typealiases
Global Variables
Global Functions
Operators
Extensions
Clone this wiki locally