Skip to content

Function: isAssetAllowed()

function isAssetAllowed(req, allowedAssets): boolean;

Defined in: rine-core/dist/src/x402/assets.d.ts:82

Is a requirement's asset allowed? An allowedAssets entry matches either directly by contract address (case-insensitive) or by symbol resolved through the known-asset registry for the requirement's network. Unknown symbols fail-closed.

Parameters

Parameter Type
req PaymentRequirements
allowedAssets string[]

Returns

boolean