Documentation ¶
Index ¶
- func Create(param CreateParam) types.Instruction
- func CreateAssociatedTokenAccount(param CreateAssociatedTokenAccountParam) types.Instruction
- func CreateIdempotent(param CreateIdempotentParam) types.Instruction
- func RecoverNested(param RecoverNestedParam) types.Instruction
- type CreateAssociatedTokenAccountParam
- type CreateIdempotentParam
- type CreateParam
- type Instruction
- type RecoverNestedParam
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
func Create(param CreateParam) types.Instruction
Create creates an associated token account for the given wallet address and token mint. Return an error if the account exists.
func CreateAssociatedTokenAccount ¶
func CreateAssociatedTokenAccount(param CreateAssociatedTokenAccountParam) types.Instruction
CreateAssociatedTokenAccount creates an associated token account for the given wallet address and token mint. Return an error if the account exists. Deprecated: please use `Create`
func CreateIdempotent ¶
func CreateIdempotent(param CreateIdempotentParam) types.Instruction
CreateIdempotent creates an associated token account for the given wallet address and token mint, if it doesn't already exist. Returns an error if the account exists, but with a different owner.
func RecoverNested ¶
func RecoverNested(param RecoverNestedParam) types.Instruction
RecoverNested transfers from and closes a nested associated token account: an associated token account owned by an associated token account.
Types ¶
type CreateIdempotentParam ¶
type CreateParam ¶
type Instruction ¶
type Instruction borsh.Enum
const ( InstructionCreate Instruction = iota InstructionCreateIdempotent InstructionRecoverNested )
Click to show internal directories.
Click to hide internal directories.