Account Abstraction gives onchain accounts logic, meaning expanded feature sets (such as batched transactions) and improved security with Passkeys. In this model, operations are packaged as “userOperations” and processed through several specialized roles:
No, you don’t need the Paymaster contract address in order to sponsor transactions using the Paymaster tool from Coinbase Developer Platform. CDP Paymaster streamlines integration by merging Paymaster and Bundler into a single, unified endpoint—much like an API endpoint—so you simply use your Paymaster endpoint to send transaction requests.
Example:
v0.6
eth_estimateUserOperationGas
.eth_sendUserOperation
simulateHandleOp
function. After simulation, the Entrypoint coordinates with the Paymaster (if applicable) to cover fees, and forwards the operation to the Smart Account.UserOperations require gas limits to pay for the computational resources needed to execute it onchain. When the gas limit set for the operation is too low, meaning the transaction ran out of computational resources before completing, it will run out of gas and revert onchain during execution.
Add a multiplier to avoid exclusions
Consider applying a multiplier (e.g., 1.5×) to your estimated value during periods of high congestion to avoid exclusions.
verificationGasLimit: The amount of gas allocated for the verification step, including smart wallet authentication checks and paymaster authorization logic. This value is generally static once you’ve determined the worst-case auth cost.
callGasLimit: The gas allocated for the main execution phase of the userOp (e.g., Morpho contract call). Like the verificationGasLimit
, this is typically a fixed limit based on your expected execution workload.
maxFeePerGas
The maximum fee (base fee + priority fee) per gas unit that you’re willing to pay, equivalent to EIP-1559’s max_fee_per_gas
. Setting this too low may exclude your ops from being included in blocks.
maxPriorityFeePerGas
The maximum priority (tip) fee per gas unit, equivalent to EIP-1559’s max_priority_fee_per_gas
. Adjust this to help your ops compete for inclusion without overpaying.
The best way to interact with the Paymaster is via frontend React libraries like OnchainKit that provide easy to use Components and work seamlessly with our Paymaster.
Today, gas sponsorship only works with contract-based accounts (e.g., the Coinbase Smart Wallet, not with traditional Externally Owned Accounts (EOAs). With Ethereum’s Pectra upgrade, EIP-7702 will allow EOAs to function as smart contract accounts – enabling gas sponsorship for their transactions as well.
Feature | Externally Owned Account (EOA) | Smart Wallets (contract accounts) |
---|---|---|
Control | Governed solely by a private key (seed phrase or hardware wallet) | Governed by onchain contract code |
Creation | Instantly “exists” when a private key is generated (no onchain deploy) | Created by deploying a smart contract (requires gas/ETH) |
Functionality | Basic ETH transfers & interactions with onchain applications | Programmable: transaction batching, pay fees in tokens, custom auth logic, etc. |
Gas & Fees | Must hold ETH to pay gas | Can implement gas abstractions: fee sponsorship, stable-coin payments, batching transactions, and many more! |
Security | Relies on single-key management | Supports multi-sig, 2FA, social or account-recovery schemes |
Recovery | No built-in recovery if key is lost | Can include social recovery or guardian-based recovery |