Compute Budget program address. This program contains instructions to set transaction-wide compute limits, heap size and a compute unit price ("priority fee") for transaction prioritization.
Modulesolana-haskell-sdk-1.3.0.0GHC2021
Network.Solana.NativePrograms.ComputeBudget
Client for the Compute Budget program: instructions setting a transaction's compute-unit limit, compute-unit price (priority fee), heap size and loaded-accounts data size limit. Instruction data is byte-verified against the Rust SDK.
- 1 type
- 5 values
- Packagesolana-haskell-sdk-1.3.0.0
- Exports6
- LanguageGHC2021
- LicenceApache-2.0
- SourceComputeBudget.hs
Compute Budget instructions, serialized in the Rust SDK's borsh layout: a single-byte discriminant followed by the little-endian field. The deprecated variant 0 is intentionally not modeled.
Constructors
RequestHeapFrame Word32Request a specific transaction-wide program heap region size in bytes (must be a multiple of 1024)
SetComputeUnitLimit Word32Set a specific compute unit limit that the transaction is allowed to consume
SetComputeUnitPrice Word64Set a compute unit price in micro-lamports to pay a higher transaction fee for higher transaction prioritization
SetLoadedAccountsDataSizeLimit Word32Set a specific transaction-wide account data size limit, in bytes, allowed to load
Instances5Eq, Show, Generic, Binary, Rep
Eq ComputeBudgetInstructionDefined in solana-haskell-sdk-1.3.0.0 · Network.Solana.NativePrograms.ComputeBudgetShow ComputeBudgetInstructionDefined in solana-haskell-sdk-1.3.0.0 · Network.Solana.NativePrograms.ComputeBudgetGeneric ComputeBudgetInstructionDefined in solana-haskell-sdk-1.3.0.0 · Network.Solana.NativePrograms.ComputeBudgetBinary ComputeBudgetInstructionDefined in solana-haskell-sdk-1.3.0.0 · Network.Solana.NativePrograms.ComputeBudgettype Rep ComputeBudgetInstruction = D1 ('MetaDataDefined in solana-haskell-sdk-1.3.0.0 · Network.Solana.NativePrograms.ComputeBudget"ComputeBudgetInstruction"
"Network.Solana.NativePrograms.ComputeBudget"
"solana-haskell-sdk-1.3.0.0-JMJNnl7jmEh90dthY33ZzW"
'False) ((C1 ('MetaCons"RequestHeapFrame"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word32)) :+: C1 ('MetaCons"SetComputeUnitLimit"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word32))) :+: (C1 ('MetaCons"SetComputeUnitPrice"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word64)) :+: C1 ('MetaCons"SetLoadedAccountsDataSizeLimit"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word32))))
Creates instruction to "Request a transaction-wide program heap region size in bytes". Compute Budget instructions take no accounts.
Creates instruction to "Set the transaction's compute unit limit". Compute Budget instructions take no accounts.
Creates instruction to "Set the compute unit price in micro-lamports" (priority fee). Compute Budget instructions take no accounts.
Creates instruction to "Set the transaction-wide loaded account data size limit in bytes". Compute Budget instructions take no accounts.