getTransactionConfigValues

function getTransactionConfigValues(
    config,
): CompiledTransactionConfigValue[];

Computes the configValues of a compiled version 1 transaction message: the set V1TransactionConfig fields, in the order their bits appear in the configMask.

Parameters

ParameterTypeDescription
configV1TransactionConfigThe transaction config to compile.

Returns

CompiledTransactionConfigValue[]

The config values, each tagged with the width it is encoded with.

Example

const configValues = getTransactionConfigValues({ computeUnitLimit: 200_000, priorityFeeLamports: 5_000n });
// [{ kind: 'u64', value: 5_000n }, { kind: 'u32', value: 200_000 }]

See

getTransactionConfigMask

On this page