コンテンツにスキップ

CreateLocalPolicyGatedSignerParams

このコンテンツはまだ日本語訳がありません。

Defined in: src/signer/local.ts:27

Parameters for createLocalPolicyGatedSigner.

Properties

account

readonly account: Account

Defined in: src/signer/local.ts:29

EOA / LocalAccount that signs the EIP-3009 authorization.


acknowledgeAdvisory

readonly acknowledgeAdvisory: 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

readonly asset: X402AssetParam

Defined in: src/signer/local.ts:33

Asset binding — pins the EIP-712 domain name/version/verifyingContract.


policy

readonly policy: SpendingPolicy

Defined in: src/signer/local.ts:31

The spending policy this signer enforces (SDK-side, advisory).


spendState?

readonly optional spendState?: () => 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>