Skip to content

Function: schemeNetworkMatches() ​

ts
function schemeNetworkMatches(payload, requirements): boolean;

Defined in: packages/x402-core/src/verify/common.ts:63

The scheme + network the payer chose (accepted) must match the requirements.

Parameters ​

payload ​

X402PaymentPayload<unknown, unknown>

requirements ​

X402PaymentRequirements<unknown>

Returns ​

boolean