EOA Wallets
An Externally Owned Account (EOA) is a standard Ethereum wallet controlled by a private key (e.g., MetaMask, hardware wallet, or a key managed by an agent).How EOA Payments Work
- User signs an EIP-712
TransferWithAuthorizationmessage off-chain - The signed payload is sent to the facilitator
- The facilitator calls
transferWithAuthorization()on the Relayer contract - The Relayer verifies the signature and executes the token transfer
Requirements
- Token approval required. The user must approve the Relayer contract to spend their tokens (one-time per token).
- Tokens must be in the EOA. The wallet needs a balance of the payment token.
- No gas needed for payment. The facilitator pays gas. But the initial approval transaction costs gas.
Smart Wallets (ERC-7579 Nexus)
b402 smart wallets are ERC-7579 modular smart accounts deployed via the Nexus factory. They are deterministic: the wallet address can be computed before deployment.How Smart Wallet Payments Work
- Client sends payment request with wallet address to facilitator
- Facilitator builds an unsigned UserOperation (v0.7 unpacked format)
- Facilitator injects payment fee and signs paymaster data
- Client signs the UserOp hash with their owner key
- Facilitator submits to an ERC-4337 bundler
- Bundler executes the UserOp on-chain as a batch call (approve + transfer)
- Paymaster covers gas, deducting from the payment amount
Key Features
Gasless. Users never need native gas tokens. The paymaster sponsors gas, deducting the cost from the payment token. Batched operations. Token approval and transfer happen in a single transaction. No separate approval step. Deterministic addresses. Wallet addresses are computed from the owner address using a predictable salt:Wallet Types
| Type | Salt | Use Case |
|---|---|---|
| Master wallet | keccak256("b402-" + reversedOwner) | Primary wallet, one per owner |
| Sub-wallet | Custom salt | Additional wallets for specific purposes |
Comparison
| Feature | EOA | Smart Wallet |
|---|---|---|
| Gas for payments | Gasless (facilitator pays) | Gasless (paymaster pays) |
| Initial setup | Requires approval tx (costs gas) | No setup needed |
| Token approval | One-time per token | Automatic (batched in UserOp) |
| Deploy cost | None (already exists) | Paid on first use |
| Address type | Standard ETH address | Deterministic contract address |
| Batch operations | No | Yes (via ERC-7579 execute) |
Identity Layer (ERC-8004)
Both EOA and smart wallets can be linked to an ERC-8004 agent identity. This standard enables:- On-chain identity minting for agents
- Reputation-linked signing
- Delegation (one wallet acting on behalf of another)
