Skip to main content
Defined in: guardrails/apply.ts:209 Attach a SpendControls configuration to an x402Client. Can only be called once per client — a second call throws SpendControlError (code: "already_applied").

Parameters

client

x402Client The client to attach controls to.

controls

SpendControls The spend controls configuration to apply.

Returns

ResolvedSpendControls A frozen snapshot of the resolved configuration.