Skip to content

Function: loadPolicy()

function loadPolicy(configDir, agentId): PaymentPolicy | null;

Defined in: rine-core/dist/src/x402/policy-store.d.ts:29

The policy on disk, signed or not, with its signature NOT checked; null when absent or malformed (deny-by-default). A payer decides trust through loadPolicyWithTrust.

Parameters

Parameter Type
configDir string
agentId string

Returns

PaymentPolicy | null