uplc.applyparams
Home > @blaze-cardano/uplc > applyParams
applyParams() function
Applies parameters to a UPLC program encoded as a hex blob.
This function takes a hex-encoded UPLC program and applies one or more Plutus data parameters to it. It does this by decoding the program, modifying its AST to apply the parameters, and then re-encoding it.
Signature:
export declare function applyParams(hex: HexBlob, ...params: PlutusData[]): HexBlob;
Parameters
| Parameter | Type | Description | 
|---|---|---|
| hex | HexBlob | The hex-encoded UPLC program. | 
| params | PlutusData[] | The Plutus data parameters to apply to the program. | 
Returns:
HexBlob
A new hex-encoded UPLC program with the parameters applied.