Skip to content

Function: parseX402Payload()

function parseX402Payload(type, plaintext): X402Payload;

Defined in: rine-core/dist/src/x402/parse.d.ts:16

Parse the decrypted plaintext of an x402 message into its verbatim x402 V2 object. Throws X402Error for a non-x402 type or a structurally malformed body; never reshapes a valid object.

Parameters

Parameter Type
type string
plaintext string

Returns

X402Payload