The platform runs an ERC-4337 bundler for each organisation and network, so you submit signed user operations to its API instead of running your own bundler, funded operator wallet, queue, nonce manager and settlement worker. A user operation is a signed instruction from a Smart Wallet validated and executed by an EntryPoint contract.
Each organisation and network gets one bundler with two interfaces: a typed Platform API and an ERC-4337 JSON-RPC endpoint. Ordinary platform writes for a deployed single-owner smart wallet take the same bundler path directly.
Send a user operation
POST /api/ accepts the canonical EntryPoint and a signed user operation. The platform verifies that the EntryPoint matches the network and that the sender belongs to the organisation, simulates validation, stores the operation and returns its hash. A returned hash means the operation is stored, not that it executes.
Admission checks
Before storing an operation, the bundler refuses an ERC-7579 execute with the delegatecall call type and an operation whose validity ends less than 60 seconds ahead, and enforces these checks:
Sender standing and pending-limit refusals return 429 (exec., or JSON-RPC -32504), both retryable. Operations signing zero for both fee fields on zero-fee networks bypass maximum-fee, pre-verification gas and size checks while block base fees remain zero.
Re-checks at bundle time
Because base fees and network rules can shift after admission, the bundler re-checks maxFeePerGas and preVerificationGas against the current block before packing:
- If
maxFeePerGasfalls below the block floor, the operation staysPENDINGand holds its lane (sender plus nonce key) until fees fall or you send a replacement. If still below the floor one hour after last storage, it fails withPRE_FLIGHT_REJECTED. - If
preVerificationGasfalls below the block price,maxFeePerGasis below priority fee, or zero fees meet a non-zero base fee, it fails immediately withPRE_FLIGHT_REJECTED.
Submitting the same operation hash again returns that hash idempotently and nudges the bundler if hand-off was lost. Reads are scoped to the organisation and network, returning null for unknown hashes.
Replace a pending operation
Send a second signed operation with the same sender and nonce to POST /api/ to reprice a waiting client-submitted operation:
- The original must still be waiting (not bundled, and not platform-prepared).
- Both
maxFeePerGasandmaxPriorityFeePerGasmust reach at least 1.1x the original (rounded down to whole wei). - The replacement swaps the stored operation and hash atomically, retiring the original hash, and ignores the original's prefund when checking payer funds.
Estimate gas
POST /api/ requires a sender owned by the organisation and returns preVerificationGas, verificationGasLimit, callGasLimit and, when sponsored, paymaster verification and post-operation limits.
The estimator enforces the lower of the block gas limit and the per-transaction cap (2^24 gas on Osaka-fork networks), adding a 1.05x safety margin (no margin on Amsterdam-fork networks) and refusing calls that exceed transaction room. Bundles respect the same ceiling. On the Amsterdam fork, a bundle that holds an operation that creates state is filed with gas above 2^24, a reservoir sized to at least that operation's state creation gas.
On networks with calldata gas floors (Prague EIP-7623 at 10/40 gas per zero/non-zero byte, or Amsterdam EIP-7976 at 64 gas per byte), preVerificationGas equals 21,000 plus the higher of:
- Standard price: 85,800 per-operation overhead plus encoded calldata at 4/16 gas per zero/non-zero byte and 10 gas per 32-byte word.
- Floor price: encoded calldata plus the 132-byte
handleOpswrapper priced at the network's calldata floor.
Signatures, paymaster data and fixed-width nonce, gas and fee fields are priced at the non-zero rate so estimates stay valid after signing. An estimate holds only while the state it measured has not changed: the first use of a nonce key writes a new storage slot and adds 97,920 gas, so estimate with the nonce you will sign.
On the Amsterdam fork, state creation is charged as state gas (EIP-8037), and the EntryPoint does not meter state gas that a bundle pays from its reservoir. Pre-verification gas therefore also includes the operation's state creation gas: the gas of every storage slot, account and byte of contract code the operation creates. The estimate measures it against the chain's current state, and the bundler keeps it with the operation. A chain without state gas adds nothing.
Read the status
GET /api/ returns sender, nonce, call data, timestamps, transaction hash, block number, recorded error and status:
The read looks up operations by hash, so unsigned prebuilt rows are never returned. A MINED operation that reverted settles as failed without automatic re-signing.
Read the receipt
GET /api/ returns null until the operation confirms or reverts on chain (and for unknown hashes). Once settled, it returns the operation hash, sender, nonce, success flag, transaction hash, block hash, block number and any revert reason.
Use the ERC-4337 endpoint
POST /bundler/ implements standard ERC-4337 JSON-RPC: eth_chainId, eth_sendUserOperation, eth_, eth_, eth_, eth_supportedEntryPoints, pm_getPaymasterData and pm_getPaymasterStubData. Paymaster methods enforce sponsorship rules and require a matching network parameter.
The route requires a write-scoped API key with an active organisation and access to that network (the default EVM network, or another enabled deployment with multi-network access). JSON-RPC batches accept 1 to 100 requests, returning HTTP 204 for notification-only batches.
Write directly from a deployed single-owner wallet
Ordinary platform writes targeting an already-deployed single-owner smart wallet bypass the transaction workflow and go straight to the bundler when no approval policy gates the wallet, no extra weighted signers exist, gasless forwarding is not used and the write is not deploying the account.
The platform persists the transaction request and user operation in one commit before handing off to the bundler. Wait-budget callers receive the confirmed outcome directly, while non-waiting callers receive the request identifier immediately. Replaying the same idempotency key starts nothing new.
What happens to an operation no bundle executed
If a mined bundle contains an operation the EntryPoint did not execute, the platform inspects the EntryPoint nonce and event logs before settling:
- One matching event: settles as confirmed, or failed with revert data.
- Unused nonce, no event: returns the operation for re-bundling up to three times before failing it as never executed.
- Used nonce, no event: fails it because another operation consumed the nonce.
- Unbroadcast or reverted bundle: an unbroadcast bundle returns all its operations, and a reverted bundle is replayed at the prior block to isolate the failing operation and return the rest.
- Ambiguous state or unreadable network: holds the bundle with a visible reason rather than guessing.
Elapsed time alone never settles an operation inside a mined bundle, and expired sponsorships are renewed rather than failed.
What happens to a nonce the bundler skipped
Because the bundler wallet's transaction nonces mine in strict sequence, a skipped nonce (such as from a rejected bundler withdrawal) stalls every later bundle. The platform counts from the mined nonce rather than trusting node pending counts that can mask holes.
- Unowned hole: goes to the next bundle or withdrawal, or gets filled by a zero-value self-transfer after three blocks if bundles wait above it.
- Withdrawal-held nonce: never filled or reassigned while the withdrawal owns it.
- Stalled gap-filler: released and retried if unknown to every configured node after six blocks.
- Unknown post-restart bundle: if no node recognises its hashes and the nonce has not advanced, the bundle is held as dropped and raises an alert for operator decision rather than auto-resending.
What happens to a reservation nobody signed
Prebuilding an operation reserves the wallet's lane for a requested lifetime. A background sweep clears unsigned, unbundled rows:
- Expired prebuilt rows fail with
reservation-expired(unsigned, so no hash exists to look up). - Platform-owned reservations that lapse unsigned fail with the same reason.
- Unreserved prebuilt rows expire after one hour.
- Rows with a stored or committing signature are never expired.
Related pages
Read Smart Wallet for the threshold that authorises an operation before it is signed, Operator Wallet for the account that pays the bundle, and Transaction lifecycle for the workflow an ordinary platform write runs when it does not take this path.