Defined in EIP-5792Documentation Index
Fetch the complete documentation index at: https://base-a060aa97-meyer9-move-azul-to-top-of-upgrades.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
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
The atomic capability configuration for the specified chain.
Example Usage
Error Handling
| Code | Message | Description |
|---|---|---|
| 4100 | Atomic execution not supported | Wallet does not support atomic transaction execution |
| 5700 | Atomic capability required | Transaction requires atomic execution but wallet doesn’t support it |
| 5750 | Atomic upgrade rejected | User rejected the upgrade to atomic execution capability |
Use Cases
DeFi Operations
Atomic execution is crucial for DeFi operations where multiple steps must complete together:NFT Minting with Payment
Error Handling
Handle atomic capability errors appropriately: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: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.