The auxiliaryFunds capability allows wallets to indicate they have access to funds beyond what can be directly verified onchain by the wallet’s address. This enables more flexible transaction execution and improved user experiences.
Parameters
This capability has no configuration parameters. It is either supported or not supported by the wallet.Returns
object
The auxiliary funds capability configuration for the specified chain.
Example Usage
Error Handling
Wallet Implementation
Wallets supporting auxiliary funds must include the capability in their response:App Behavior
Apps should modify their balance checking logic when auxiliary funds are supported:Without Auxiliary Funds
With Auxiliary Funds Support
Use Cases
DeFi Applications
Enable DeFi operations even when wallet balance appears insufficient:E-commerce Applications
Allow purchases without blocking on visible balance:Gaming Applications
Enable in-game purchases without balance restrictions:Error Handling
Handle auxiliary funds-related scenarios:Best Practices
- Graceful Degradation: Always provide fallback balance checking for non-auxiliary wallets
- Clear Communication: Inform users when auxiliary funding is being used
- Error Handling: Handle cases where auxiliary funds may be temporarily unavailable
- Security: Don’t assume auxiliary funds are always available
The auxiliary funds capability improves user experience by enabling transactions that might otherwise be blocked by insufficient visible balance.
Related Capabilities
Auxiliary funds works well with other capabilities:- Paymaster Service: For sponsored transactions
- Atomic: For ensuring transaction success with auxiliary funds
- Flow Control: For handling auxiliary fund failures