Property | Type | Description | Defined in |
---|---|---|---|
address | Address | The address of the signer. | src/accounts/evm/types.ts:75 |
policies? | string [] | A list of Policy ID’s that apply to the account. | src/accounts/evm/types.ts:90 |
sign | (parameters : { hash : Hash ; }) => Promise <Hex > | Signs a message hash and returns the signature as a hex string. | src/accounts/evm/types.ts:77 |
signMessage | (parameters : { message : SignableMessage ; }) => Promise <Hex > | Signs a message and returns the signature as a hex string. | src/accounts/evm/types.ts:79 |
signTransaction | (transaction : TransactionSerializable ) => Promise <Hex > | Signs a transaction and returns the signed transaction as a hex string. | src/accounts/evm/types.ts:81 |
signTypedData | <typedData , primaryType >(parameters : TypedDataDefinition <typedData , primaryType >) => Promise <Hex > | Signs a typed data and returns the signature as a hex string. | src/accounts/evm/types.ts:83 |
Property | Type | Description | Defined in |
---|---|---|---|
address | Address | The smart account’s address. | src/accounts/evm/types.ts:150 |
name? | string | The name of the smart account. | src/accounts/evm/types.ts:152 |
owners | EvmAccount [] | 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). | src/accounts/evm/types.ts:154 |
policies | string [] | undefined | 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. | src/accounts/evm/types.ts:158 |
type | "evm-smart" | Identifier for the smart account type. | src/accounts/evm/types.ts:156 |
useNetwork | <Network >(network : Network ) => Promise <NetworkScopedEvmSmartAccount <Network >> | A function that returns a network-scoped smart account. Example // For known networks, type is inferred automatically: const baseAccount = await smartAccount.useNetwork("base"); // For custom RPC URLs with type hints (requires casting): const typedAccount = await smartAccount.useNetwork<"base">("https://mainnet.base.org" as "base"); // For custom RPC URLs without type hints (only sendTransaction, transfer and waitForTransactionReceipt methods available): const customAccount = await smartAccount.useNetwork("https://mainnet.base.org"); | src/accounts/evm/types.ts:173 |