コンテンツにスキップ

IssueSessionKeyParams

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

IssueSessionKeyParams = object & AgentOwner

Defined in: src/session/issue.ts:37

Parameters for issueSessionKey.

Type Declaration

address?

readonly optional address?: Address

Bind issuance to an existing deployed account (re-provision after recovery).

approveEnable?

readonly optional approveEnable?: (permissionValidator) => Promise<Hex>

Weighted-enable seam (RFC-0003 U-B1). Called with the SDK-built permission validator; returns the enable signature for serializePermissionAccount’s 3rd arg. Omit for an ECDSA owner (the default single-signer enable). For a weighted sudo this is approvePlugin(plugin) + encodeSignatures([approval], true), computed by the caller with their weighted client. A mismatch surfaces on-chain as EnableNotApproved at first use.

Parameters

permissionValidator

KernelValidator

Returns

Promise<Hex>

entryPoint?

readonly optional entryPoint?: EntryPointType<"0.7">

EntryPoint override. Defaults to v0.7.

expiresAt?

readonly optional expiresAt?: bigint

Optional advisory expiry (unix seconds). Recorded in the envelope.

kernelVersion?

readonly optional kernelVersion?: GetKernelVersion<"0.7">

Kernel version override. Defaults to KERNEL_V3_1.

policies

readonly policies: readonly Policy[]

Policies the session key must satisfy at userOp validation time (e.g. createJpycDailyLimitPolicies). Supply the SAME policies in the SAME order to issue and to revoke (buildRevokeSessionKeyCall) — the validator identifier hashes the ordered policy array.

policySummary?

readonly optional policySummary?: KawasekitSessionPolicySummary

Optional advisory policy summary for host UI.

publicClient

readonly publicClient: PublicClient<Transport, Chain>

sessionKeySigner

readonly sessionKeySigner: LocalAccount