Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type InstructionType ¶
type InstructionType struct { ProgramId string `json:"programId"` Accounts_ []struct { Pubkey string `json:"pubkey"` IsSigner bool `json:"isSigner"` IsWritable bool `json:"isWritable"` } `json:"accounts"` Data_ string `json:"data"` }
func (*InstructionType) Accounts ¶
func (t *InstructionType) Accounts() []*solana.AccountMeta
func (*InstructionType) Data ¶
func (t *InstructionType) Data() ([]byte, error)
func (*InstructionType) ProgramID ¶
func (t *InstructionType) ProgramID() solana.PublicKey
type QuoteType ¶
type QuoteType struct { InputMint string `json:"inputMint"` InAmount string `json:"inAmount"` OutputMint string `json:"outputMint"` OutAmount string `json:"outAmount"` OtherAmountThreshold string `json:"otherAmountThreshold"` SwapMode string `json:"swapMode"` SlippageBps uint64 `json:"slippageBps"` // PlatformFee string `json:"platformFee,omitempty"` PriceImpactPct string `json:"priceImpactPct"` RoutePlan []RoutePlanType `json:"routePlan"` }
type RoutePlanType ¶
type RoutePlanType struct { SwapInfo SwapInfoType `json:"swapInfo"` Percent uint64 `json:"percent"` }
type SwapInfoType ¶
type SwapInstructionsResultType ¶
type SwapInstructionsResultType struct { ComputeBudgetInstructions []*InstructionType `json:"computeBudgetInstructions"` SetupInstructions []*InstructionType `json:"setupInstructions"` SwapInstruction *InstructionType `json:"swapInstruction"` CleanupInstruction *InstructionType `json:"cleanupInstruction"` OtherInstructions []*InstructionType `json:"otherInstructions"` AddressLookupTableAddresses []string `json:"addressLookupTableAddresses"` PrioritizationFeeLamports uint64 `json:"prioritizationFeeLamports"` ComputeUnitLimit uint64 `json:"computeUnitLimit"` PrioritizationType struct { ComputeBudget struct { MicroLamports uint64 `json:"microLamports"` EstimatedMicroLamports uint64 `json:"estimatedMicroLamports"` } `json:"computeBudget"` } `json:"prioritizationType"` }
Click to show internal directories.
Click to hide internal directories.