Skip to content

Function: gunzipPreparedTransaction() ​

ts
function gunzipPreparedTransaction(preparedTransaction, limits?): Uint8Array<ArrayBufferLike> | null;

Defined in: packages/x402-core/src/verify/prepared-tx-codec.ts:95

The payload's preparedTransaction back to the protobuf bytes, or null unless it is canonical standard base64 of exactly one gzip member within both bounds. Never returns partial output, and never throws on the input; it throws only on a malformed limits.

decodePreparedTransaction reads these bytes, not the payload's value, and so does a ledger's execute.

Parameters ​

preparedTransaction ​

string

limits? ​

PreparedTransactionLimits = {}

Returns ​

Uint8Array<ArrayBufferLike> | null