pub struct EvmSmartAccount {
pub address: EvmSmartAccountAddress,
pub created_at: Option<DateTime<Utc>>,
pub name: Option<EvmSmartAccountName>,
pub owners: Vec<EvmSmartAccountOwnersItem>,
pub policies: Vec<EvmSmartAccountPoliciesItem>,
pub updated_at: Option<DateTime<Utc>>,
}
Expand description
EvmSmartAccount
JSON schema
{
"type": "object",
"required": [
"address",
"owners"
],
"properties": {
"address": {
"description": "The 0x-prefixed, checksum address of the Smart Account.",
"examples": [
"0x742d35Cc6634C0532925a3b844Bc454e4438f44e"
],
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$"
},
"createdAt": {
"description": "The UTC ISO 8601 timestamp at which the account was created.",
"examples": [
"2025-03-25T12:00:00Z"
],
"type": "string",
"format": "date-time"
},
"name": {
"description": "An optional name for the account.\nAccount names can consist of alphanumeric characters and hyphens, and be between 2 and 36 characters long.\nAccount names are guaranteed to be unique across all Smart Accounts in the developer's CDP Project.",
"examples": [
"my-smart-account"
],
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9-]{0,34}[A-Za-z0-9]$"
},
"owners": {
"description": "Today, only a single owner can be set for a Smart Account, but this is an array to allow having multiple owners in the future. The address is a 0x-prefixed, checksum address.",
"examples": [
[
"0xfc807D1bE4997e5C7B33E4d8D57e60c5b0f02B1a"
]
],
"type": "array",
"items": {
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$"
}
},
"policies": {
"description": "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.",
"examples": [
[
"123e4567-e89b-12d3-a456-426614174000"
]
],
"type": "array",
"items": {
"type": "string",
"pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
},
"x-audience": "public"
},
"updatedAt": {
"description": "The UTC ISO 8601 timestamp at which the account was last updated.",
"examples": [
"2025-03-26T12:00:00Z"
],
"type": "string",
"format": "date-time"
}
}
}
Fields§
§address: EvmSmartAccountAddress
The 0x-prefixed, checksum address of the Smart Account.
created_at: Option<DateTime<Utc>>
The UTC ISO 8601 timestamp at which the account was created.
name: Option<EvmSmartAccountName>
An optional name for the account. Account names can consist of alphanumeric characters and hyphens, and be between 2 and 36 characters long. Account names are guaranteed to be unique across all Smart Accounts in the developer’s CDP Project.
owners: Vec<EvmSmartAccountOwnersItem>
Today, only a single owner can be set for a Smart Account, but this is an array to allow having multiple owners in the future. The address is a 0x-prefixed, checksum address.
policies: Vec<EvmSmartAccountPoliciesItem>
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.
updated_at: Option<DateTime<Utc>>
The UTC ISO 8601 timestamp at which the account was last updated.
Implementations§
Source§impl EvmSmartAccount
impl EvmSmartAccount
pub fn builder() -> EvmSmartAccount
Trait Implementations§
Source§impl Clone for EvmSmartAccount
impl Clone for EvmSmartAccount
Source§fn clone(&self) -> EvmSmartAccount
fn clone(&self) -> EvmSmartAccount
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more