Skip to main content
Defined in: accounts/evm/types.ts:155

Properties

address

Defined in: accounts/evm/types.ts:157 The smart account’s address.

name?

Defined in: accounts/evm/types.ts:159 The name of the smart account.

owners

Defined in: accounts/evm/types.ts:161 Array of accounts that own and can sign for the smart account (currently only supports one owner but will be extended to support multiple owners in the future).

policies

Defined in: accounts/evm/types.ts:165 The list of policy IDs that apply to the smart account. This will include both the project-level policy and the account-level policy, if one exists.

signX402Payment()

Defined in: accounts/evm/types.ts:178 Signs an x402 payment payload for direct use with any transport. Smart accounts support the EIP-3009 exact flow only. Smart accounts sign with an ERC-1271/ERC-6492 contract signature, so the Permit2-based upto scheme and exact requirements that use the Permit2 transfer method are rejected.

Parameters

paymentRequired
SignX402PaymentOptions["paymentRequired"] The payment requirements returned by a resource server.
acceptedIndex
number Index into paymentRequired.accepts.

Returns

Promise<PaymentPayload> The signed x402 payment payload.

type

Defined in: accounts/evm/types.ts:163 Identifier for the smart account type.

useNetwork()

Defined in: accounts/evm/types.ts:196 A function that returns a network-scoped smart account.

Type Parameters

Network
Network extends NetworkOrRpcUrl

Parameters

network
Network The network name or RPC URL

Returns

Promise<NetworkScopedEvmSmartAccount<Network>>

Example