Safe Smart Accounts is a product by Safe (formerly Gnosis Safe) that enables the creation of ERC-4337-compatible smart
accounts for your users. This integration allows you to leverage the power of Account Abstraction and other Safe
features within your Para-powered application.
Safe Smart Accounts use the user’s Externally Owned Account (EOA) as the smart account’s signer. This builds upon the
robust smart contract infrastructure that powers the widely-used Safe wallet.
An EOA (Externally Owned Account) is an Ethereum account controlled by a private key. Para’s embedded wallets and most external wallets (like MetaMask or Coinbase Wallet) are EOAs.
EOAs differ from contract accounts, which are controlled by smart contract code and don’t have their own private key.
Safe’s smart wallet is a contract account, offering enhanced capabilities such as gas sponsorship and batched
transactions.
In this integration:
The user’s EOA (from Para) serves as the signer for their smart wallet (from Safe).
The smart wallet (Safe) holds all assets and submits transactions to the network.
The signer (Para) is responsible for producing signatures and initiating transaction flows.
Now you can interact with the Safe smart account using the Para VIEM client:
Copy
Ask AI
// Example: Send a transaction through the Safe smart accountconst transaction = await paraViemClient.sendTransaction({ account: safeAddress, to: '0x...', // Recipient address value: 1000000000000000000n, // 1 ETH in wei});console.log('Transaction hash:', transaction);