Skip to content

Interface: PaymentPolicy

Defined in: rine-core/dist/src/x402/types.d.ts:118

Client-side spend policy, enforced at signing. All cap fields are decimal major-unit strings (e.g. "10.00") interpreted in canonical 6-decimal stablecoin units; allowedAssets entries are symbols (e.g. "EURC") or 0x contract addresses; allowedNetworks are CAIP-2 ids. Absence of a policy is a hard deny (deny-by-default).

Properties

Property Type Description Defined in
allowedAssets string[] - rine-core/dist/src/x402/types.d.ts:121
allowedNetworks string[] - rine-core/dist/src/x402/types.d.ts:122
allowRepay? boolean Whether a quote already paid today may be paid again (default false). rine-core/dist/src/x402/types.d.ts:127
autoPay? boolean Whether a quote at or below autoPayThreshold may pay without asking (default true). rine-core/dist/src/x402/types.d.ts:125
autoPayThreshold string - rine-core/dist/src/x402/types.d.ts:123
dailyCap string - rine-core/dist/src/x402/types.d.ts:120
perTxCap string - rine-core/dist/src/x402/types.d.ts:119