Documentation ¶
Index ¶
- func RequestHeapFrame(param RequestHeapFrameParam) types.Instruction
- func RequestUnits(param RequestUnitsParam) types.Instruction
- func SetComputeUnitLimit(param SetComputeUnitLimitParam) types.Instruction
- func SetComputeUnitPrice(param SetComputeUnitPriceParam) types.Instruction
- type Instruction
- type RequestHeapFrameParam
- type RequestUnitsParam
- type SetComputeUnitLimitParam
- type SetComputeUnitPriceParam
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RequestHeapFrame ¶
func RequestHeapFrame(param RequestHeapFrameParam) types.Instruction
RequestHeapFrame ...
func SetComputeUnitLimit ¶
func SetComputeUnitLimit(param SetComputeUnitLimitParam) types.Instruction
SetComputeUnitLimit set a specific compute unit limit that the transaction is allowed to consume.
func SetComputeUnitPrice ¶
func SetComputeUnitPrice(param SetComputeUnitPriceParam) types.Instruction
SetComputeUnitPrice set a compute unit price in "micro-lamports" to pay a higher transaction fee for higher transaction prioritization.
Types ¶
type Instruction ¶
type Instruction borsh.Enum
const ( InstructionRequestUnits Instruction = iota InstructionRequestHeapFrame InstructionSetComputeUnitLimit InstructionSetComputeUnitPrice )
type RequestHeapFrameParam ¶
type RequestHeapFrameParam struct {
Bytes uint32
}
type RequestUnitsParam ¶
type SetComputeUnitLimitParam ¶
type SetComputeUnitLimitParam struct {
Units uint32
}
type SetComputeUnitPriceParam ¶
type SetComputeUnitPriceParam struct {
MicroLamports uint64
}
Click to show internal directories.
Click to hide internal directories.