CreateLocalPolicyGatedSignerParams
Defined in: src/signer/local.ts:27
Parameters for createLocalPolicyGatedSigner.
Properties
account
readonlyaccount:Account
Defined in: src/signer/local.ts:29
EOA / LocalAccount that signs the EIP-3009 authorization.
acknowledgeAdvisory
readonlyacknowledgeAdvisory:true
Defined in: src/signer/local.ts:41
Required literal acknowledgement that this signer is advisory (a key-holder can bypass its policy). Omitting it is a compile error (TS) and a construction-time throw (JS) — so constructing an advisory signer is a conscious, greppable act. For bounded/regulated flows use a cryptographic adapter instead.
asset
readonlyasset:X402AssetParam
Defined in: src/signer/local.ts:33
Asset binding — pins the EIP-712 domain name/version/verifyingContract.
policy
readonlypolicy:SpendingPolicy
Defined in: src/signer/local.ts:31
The spending policy this signer enforces (SDK-side, advisory).
spendState?
readonlyoptionalspendState?: () =>SpendState|Promise<SpendState>
Defined in: src/signer/local.ts:48
Optional cumulative-spend view (read-only) the adapter evaluates
cumulativeCap against. local does not own an authoritative ledger; the
caller folds a successful spend back in (e.g. via mergeSpendState) before
the next call. Default: empty.
Returns
SpendState | Promise<SpendState>