Files

1 line
3.8 KiB
JSON

{"text":["Available Now","Smart Wallets","ERC-4337 account abstraction wallets","Smart contract wallets with account abstraction. Social recovery, session keys, batch transactions, and gasless transactions included.","Smart Contract Wallets","Upgradeable wallets with programmable logic and security.","Social Recovery","Recover accounts using trusted guardians, not seed phrases.","Session Keys","Temporary permissions for apps without repeated signing.","Multi-sig Support","Require multiple approvals for high-value transactions.","Back to Web3 Overview","Get Your API Key","Start building in under 5 minutes","HA","Failover","<50ms","Latency","100+","Chains","Try Hanzo","View Documentation","No credit card required.","Trusted by developers building:","DeFi","NFTs","Payments","Gaming","AI Agents","Key Capabilities","Everything you need, nothing you don't.","Batch Transactions","Execute multiple operations in a single transaction.","Multi-chain","Same wallet address across all EVM chains.","Custom Modules","Extend functionality with modular security plugins.","Time-locked Actions","Schedule transactions and set spending limits.","Transaction History","Complete audit trail of all wallet activity.","Simple to Integrate","Get started with just a few lines of code. SDKs for every language.","Solidity","Node","Python","Go","Rust","C++","Ruby","SmartAccount.sol","// SPDX-License-Identifier: MIT","pragma","solidity","^0.8.24","import","\"@account-abstraction/contracts/core/BaseAccount.sol\"","\"@hanzo/wallet/ISessionKeyManager.sol\"","\"@hanzo/wallet/ISocialRecovery.sol\"","contract","HanzoSmartAccount","is","BaseAccount, ISocialRecovery","address","public","owner","ISessionKeyManager","sessionManager","mapping","(address => bool)","guardians","uint256","guardianCount","recoveryThreshold","constructor","IEntryPoint","_entryPoint","address _owner","[]","memory","_guardians","uint256 _threshold","BaseAccount","_entryPoint)","owner = _owner","recoveryThreshold = _threshold","for","uint i =","i < _guardians.length","i++","]]","true","guardianCount++","// Validate UserOperation signature","function","_validateSignature","UserOperation","calldata","userOp","bytes32 userOpHash","internal","override","returns","uint256 validationData","// Check if signed by owner or valid session key","bytes32 hash =","keccak256","abi.","encodePacked","\"\\x19Ethereum Signed Message:\\n32\"","userOpHash","));","address signer = ECDSA.","recover","hash","userOp.signature",");","if","signer == owner","return","sessionManager.","isValidSession","signer","userOp.callData","))","SIG_VALIDATION_FAILED","// Execute batch of calls","executeBatch","targets","values","bytes","datas","external","onlyEntryPoint","i < targets.length","bool success",",)","= targets",".call","value: values","]}(","]);","require","success","\"Batch call failed\"","// Social recovery - guardians can recover to new owner","executeRecovery","address newOwner","signatures","signatures.length >= recoveryThreshold","\"Not enough signatures\"","// Verify guardian signatures","owner = newOwner","Built For","Consumer Wallets","User-friendly wallets without seed phrase management.","Session keys sign in-game actions without prompting on every move.","Enterprise Treasury","Multi-sig controls for corporate crypto management.","DeFi Power Users","Batch operations and automated strategies.","Supported Chains","Ethereum","Polygon","Arbitrum","Optimism","Base","BNB Chain","Avalanche","zkSync","Linea","Start Building with Smart Wallets","Get your free API key and ship your first request in under 5 minutes. No credit card required.","Explore All Web3 Products","Get Smart Wallets","Multi-chain wallets","Apache-2.0","License:","hanzoai","Deploy to Cloud"],"links":["/blockchain","https://platform.hanzo.ai/api-keys","https://github.com/hanzoai","https://platform.hanzo.ai/deploy"]}