The atomic capability specifies how wallets execute batches of transactions, providing guarantees for atomic transaction execution. When supported, all transactions in a batch must succeed together or fail together.
Parameters
The atomic capability status for the current chain and account.Possible values:
"supported": Wallet will execute all calls atomically and contiguously"ready": Wallet can upgrade to atomic execution pending user approval"unsupported": No atomicity or contiguity guarantees
Returns
Example Usage
Error Handling
Use Cases
DeFi Operations
Atomic execution is crucial for DeFi operations where multiple steps must complete together:DeFi Operations
NFT Minting with Payment
NFT Minting with Payment
Error Handling
Handle atomic capability errors appropriately:Error Handling
Relationship with EIP-7702
The atomic capability works with EIP-7702 to enable EOA (Externally Owned Accounts) to upgrade to smart accounts that support atomic transaction execution:Check Atomic Upgrade Support
Best Practices
- Check Capabilities First: Always verify atomic support before requiring it
- Provide Fallbacks: Implement sequential execution as a fallback when atomic isn’t available
- Use for Related Operations: Only require atomicity for operations that must succeed together
- Clear Error Messages: Provide helpful error messages when atomic execution fails
Apps should first check wallet capabilities using
wallet_getCapabilities before sending requests requiring atomic execution.