Skip to content

Function: gzipPreparedTransaction() ​

ts
function gzipPreparedTransaction(preparedTransaction): string;

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

The prepared transaction (the protobuf bytes prepare returned) in the form the payload carries: base64 of one gzip member, with no optional header fields. The header's OS byte is the platform's, so the output is the same on one machine but not necessarily across platforms.

Parameters ​

preparedTransaction ​

Uint8Array

Returns ​

string