Skip to content

@lelantos-org/sdk / x402 / parseCaip2

Function: parseCaip2() ​

ts
function parseCaip2(network): Caip2;

Defined in: @lelantos-org/sdk/dist/x402/requirements.d.ts:20

Split a CAIP-2 network id. @x402/core validates only that the string is ≥3 chars and contains a colon; further checks happen here.

Parameters ​

ParameterType
networkstring

Returns ​

Caip2