Smart Account Execution Mode
Smart Account mode is the simplest execution mode, ideal when funds are already in your Nexus smart account. It eliminates approval steps and provides native support for gasless transactions.Key Advantages
Simplified Flow
No token approvals needed - works directly with Nexus balance
Gasless Transactions
Native sponsorship support for better UX
Always Simple Signature
API always returns
simple quote typeHow It Works
When using Smart Account mode:- Prerequisite: Funds must already be in the Nexus account (from any source)
- Quote Request: Create quote without
fundingTokens - Sign Payload: Simple message signature
- Execute: Operations execute using existing Nexus balance
Funds can be in Nexus from:
- Previous operations
- Manual transfers to Nexus address
- Direct deposits
- Any other source
Requirements
- Must NOT provide:
fundingTokensfield (not needed) - Must NOT provide:
authorizationsfield (not applicable) - Signature type: API always returns
simple - Prerequisites: Sufficient balance must exist in Nexus account
Complete Flow Example
Here’s a complete Smart Account workflow:Sponsorship Options
Smart Account mode supports flexible fee payment:- Sponsored (Gasless)
- Self-Paid
Recommended: Omit
feeToken for gasless executionAdvanced Example: Portfolio Rebalancing
Complete example splitting one token into multiple:Multi-Step DeFi Strategy
Example: Swap + Aave supply in one transaction:Best Practices
Verify Nexus Balance Before Operations
Verify Nexus Balance Before Operations
Always check Nexus has sufficient balance before creating quotes:
Use Sponsorship for Better UX
Use Sponsorship for Better UX
Omit
feeToken to use gasless execution:Batch Same-Chain Operations
Batch Same-Chain Operations
Operations on the same chain are automatically batched (default behavior):
Use Runtime Balance for Dynamic Amounts
Use Runtime Balance for Dynamic Amounts
Use
runtimeErc20Balance for operations that depend on previous step outputs:Runtime balance is currently only supported for
/instructions/build flow type.Withdrawal Not Required
Withdrawal Not Required
Unlike EOA mode, funds stay in Nexus which is often desired:
- No need to add withdrawal instructions
- Funds available for future operations
- Can withdraw manually later if needed
Comparison with Other Modes
| Feature | Smart Account | EOA | EIP-7702 |
|---|---|---|---|
| Funds Location | Nexus | EOA | EOA (delegated) |
| Setup Complexity | Low | Low | Medium |
| Funding Required | No | Yes | No |
| Authorization Required | No | No | Yes (first time) |
| Token Approval Method | Internal | External | External |
| Signature Type | simple | permit/onchain | simple |
| Sponsorship Support | Native | No | Via Delegation |
| Batch Operations | Native | No | Yes |
| Gas Efficiency | High | Medium | High |
| Withdrawal Needed | Optional | Yes | No |
Troubleshooting
Insufficient balance error
Insufficient balance error
Ensure Nexus has sufficient token balance:
Sponsorship unavailable
Sponsorship unavailable
How to fund Nexus account
How to fund Nexus account
To get funds into Nexus:
- Direct transfer: Send tokens directly to Nexus address
- From EOA mode: Previous EOA operations leave funds in Nexus
- Manual deposit: Use SDK to transfer from EOA to Nexus
Signature verification failed
Signature verification failed
Smart Account mode requires signing with the owner account:
- Verify you’re signing with the correct private key
- Ensure account matches
ownerAddressin request - Check wallet client is properly configured