SerenAI

Pay Per Call Agentic Commerce

WalletAddress

A validated wallet address (EVM or Solana). This type ensures wallet addresses are validated at construction time. Stored as TEXT in the database via SQLx's transparent encoding. # Examples ``` use seren_core::models::WalletAddress; // EVM address let evm = WalletAddress::new("0x1234567890123456789012345678901234567890").unwrap(); // Solana address let sol = WalletAddress::new("EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v").unwrap(); // Convert to alloy Address for EVM operations if let Some(addr) = evm.as_evm() { // Use with alloy... } ```

Properties

string
View JSON Schema
{
  "type": "string",
  "description": "A validated wallet address (EVM or Solana).\n\nThis type ensures wallet addresses are validated at construction time.\nStored as TEXT in the database via SQLx's transparent encoding.\n\n# Examples\n\n```\nuse seren_core::models::WalletAddress;\n\n// EVM address\nlet evm = WalletAddress::new(\"0x1234567890123456789012345678901234567890\").unwrap();\n\n// Solana address\nlet sol = WalletAddress::new(\"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v\").unwrap();\n\n// Convert to alloy Address for EVM operations\nif let Some(addr) = evm.as_evm() {\n    // Use with alloy...\n}\n```",
  "example": "0x1234567890123456789012345678901234567890"
}