Documentation ¶
Index ¶
- type Create
- func (inst Create) Build() *Instruction
- func (inst Create) MarshalWithEncoder(encoder *encodbin.Encoder) error
- func (inst *Create) SetMint(mint common.Address) *Create
- func (inst *Create) SetPayer(payer common.Address) *Create
- func (inst *Create) SetTokenProgramID(tokenProgramID common.Address) *Create
- func (inst *Create) SetWallet(wallet common.Address) *Create
- type Instruction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Create ¶
type Create struct { Payer common.Address `bin:"-" borsh_skip:"true"` Wallet common.Address `bin:"-" borsh_skip:"true"` Mint common.Address `bin:"-" borsh_skip:"true"` TokenProgramID common.Address `bin:"-" borsh_skip:"true"` // [0] = [WRITE, SIGNER] Payer // ··········· Funding account // // [1] = [WRITE] AssociatedTokenAccount // ··········· Associated token account address to be created // // [2] = [] Wallet // ··········· Wallet address for the new associated token account // // [3] = [] TokenMint // ··········· The token mint for the new associated token account // // [4] = [] SystemProgram // ··········· System program ID // // [5] = [] TokenProgram // ··········· SPL token program ID // // [6] = [] SysVarRent // ··········· SysVarRentPubkey base.AccountMetaSlice `bin:"-" borsh_skip:"true"` }
func NewCreateInstruction ¶
func NewCreateInstructionBuilder ¶
func NewCreateInstructionBuilder() *Create
NewCreateInstructionBuilder creates a new `Create` instruction builder.
func (Create) Build ¶
func (inst Create) Build() *Instruction
func (Create) MarshalWithEncoder ¶
func (*Create) SetTokenProgramID ¶
type Instruction ¶
type Instruction struct {
encodbin.BaseVariant
}
func (*Instruction) Accounts ¶
func (inst *Instruction) Accounts() (out []*base.AccountMeta)
func (*Instruction) Data ¶
func (inst *Instruction) Data() ([]byte, error)
func (*Instruction) MarshalWithEncoder ¶
func (inst *Instruction) MarshalWithEncoder(encoder *encodbin.Encoder) error
func (*Instruction) ProgramID ¶
func (inst *Instruction) ProgramID() common.Address
Click to show internal directories.
Click to hide internal directories.