decompileTransactionConfig
Decodes the compiled configMask and configValues of a version 1 compiled
transaction message into a V1TransactionConfig.
Use this to read a v1 transaction's compute budget without decompiling the whole message via decompileTransactionMessage.
Parameters
| Parameter | Type | Description |
|---|---|---|
configMask | number | The bitmask indicating which config fields are present. |
configValues | CompiledTransactionConfigValue[] | The config values, ordered by mask bit. |
Returns
The decoded config, containing only the fields present in the mask.
Throws
Throws SOLANA_ERROR__TRANSACTION__INVALID_CONFIG_MASK_PRIORITY_FEE_BITS
if only one of the two priority fee bits is set.
Throws
Throws SOLANA_ERROR__TRANSACTION__INVALID_CONFIG_VALUE_KIND if a value's
kind does not match the field it is decoded into.