Skip to main content
Skip to content
DN Research

A batch of blockchain calls is not automatically one atomic transaction

Distinguish RPC batching, wallet atomicRequired and per-call allowFailure using a synthetic permission-and-balance ledger.

Three separate brass compartments share a marble tray, with the middle compartment open. Editorial illustration.
Reading options: audio, text size & sections

Research scope: Documentary analysis with a hypothetical worked example. Sources reviewed 5 December 2026; this is a planning and interpretation guide, not a report of 2027 observations.

Batch describes packaging, not one universal guarantee

A group of blockchain calls can arrive together while still producing partial results. A JSON-RPC batch, a wallet's multi-call request and a smart contract that executes several calls have different failure boundaries. The word batch does not identify which earlier effects disappear when a later call fails.

JSON-RPC 2.0 permits a server to process batch requests concurrently and in an order of its choosing. EIP-5792 instead defines wallet-call requests with an explicit atomicRequired setting. Multicall3's aggregate3 interface adds another choice: individual calls can permit failure. [1][2][3]

The useful reader decision is therefore specific: does this workflow require every business action to succeed together, or can an intermediate permission or balance change safely remain? Choose the execution mechanism only after answering that question.

Transport batches have independent responses

A JSON-RPC batch places several requests in one array. Each response is associated with its request identifier, and responses need not appear in the same order as requests. The specification does not make the batch one ledger transaction or promise a database-style rollback across its entries. [1]

If a client submits several state-changing transactions through a transport batch, they remain transactions with their own acceptance and execution outcomes. Sending them in one HTTP body does not create an all-or-nothing economic operation. Even read-only requests need care if an application assumes they describe one identical state without fixing their context.

For reconciliation, retain the request identifiers and match them to their responses. An array's second element is not reliable evidence of the second request's result unless the application actually matched the IDs. Avoid converting an efficient transport format into an unstated sequencing guarantee.

Wallet atomicity must be requested and supported

EIP-5792's wallet_sendCalls interface describes a collection of calls and an atomicRequired flag. When atomicity is required, the calls must satisfy the specified all-or-nothing execution requirement; a wallet that cannot meet the request should not silently turn it into an unrelated sequence of independently committed actions. [2]

When atomicity is not required, the application cannot infer that partial completion is impossible. It must understand the wallet's actual response and execution behavior. A returned batch identifier is also not proof that the calls have completed successfully. Completion requires the relevant status and receipts.

The specification's atomicity concerns the calls' effects. It does not promise that an included failed operation has no transaction fee or nonce consequence. A business ledger should keep those costs separate from application state that was reverted.

A contract can intentionally permit a failed subcall

Multicall3's aggregate3 accepts an allowFailure choice for each call and reports per-call success. In the reviewed code, a failed call causes a revert when that call is not allowed to fail. Allowing its failure lets the outer operation continue under the interface's rules. [3]

That behavior can be useful for independent reads or optional work. It can be dangerous to assume the same semantics for a sequence where an approval must disappear if a later action fails. The choice belongs to the actual contract invocation, not to the fact that there is one outer transaction hash.

Caller context matters too. A plain external contract CALL changes which address the target sees as caller. An example involving a wallet's own token permissions cannot be copied into an arbitrary public multicall contract and assumed to act as that wallet. The following ledger assumes a correctly authorized wallet executor; it is not a deployment recipe.

A synthetic permission that survives partial failure

Assume a fictional wallet starts with a token balance of 1,000 units and an allowance of 50 units to a particular spender. The intended workflow sets allowance to 500 and then makes an application call that would spend 300. Compare execution boundaries while holding that intended work constant.

Scenario Final allowance, token units Final wallet balance, token units Completed spend, token units
Required atomic batch; second call fails 50 1,000 0
Permitted partial completion; approval remains, second call fails 500 1,000 0
Both calls succeed; modeled spender consumes 300 200 700 300

The failed partial-completion row leaves 450 more units of permission than the starting state. No tokens moved in the failed second call, yet the account's future exposure changed. A monitor that checks only the wallet balance would miss that difference.

The success row assumes a conventional allowance-consuming token and no fees or unusual token behavior. Actual token implementations can differ. The arithmetic is a teaching model of the state transition, not an assertion about every ERC-20 or a real approved spender.

Decide which intermediate states are acceptable

Some workflows genuinely permit independent outcomes. A dashboard can display three successful read results and one failed read if it labels the missing value. A treasury operation that authorizes a spender only to complete an immediate exchange may have a stronger requirement: no lasting approval if the exchange fails.

Write that requirement as a postcondition. For example, after any unsuccessful business operation, the allowance should equal its authorized prior value. Then verify that the chosen wallet and executor actually enforce it. A UI description such as bundle, batch or one click is insufficient evidence.

If partial completion is permitted, define the recovery action and who can authorize it. A compensating transaction is a later action with its own availability and cost; it is not the same as rollback. Assuming it will always succeed recreates an atomicity guarantee the execution mechanism did not provide.

Inspect the whole receipt boundary

For a real case, preserve the call list, atomicity request, wallet capability, executor address, per-call failure settings and resulting receipts. Verify the intended account context and affected contract state. A successful outer transaction can still contain an intentionally failed subcall, while an atomic revert can still consume execution fees.

The state comparison should include permissions as well as balances. It can also include application nonces, reservations or other objects changed by the workflow. Select the fields from the business requirement, not merely from what the interface happens to show first.

DN's existing idempotency article examines duplicate requests and retry identifiers. This article examines another boundary: whether distinct calls share a rollback condition at all. Both matter, but an idempotency key does not create atomic execution and atomic execution does not define safe retries across external systems.

Sources were reviewed on 5 December 2026. The CSV contains only hypothetical allowances and balances. No calls were submitted and no wallet capability was tested. A defensible claim of atomic behavior should name the mechanism, failure settings and postconditions that make the claim true.

Use the worked example

Original DN synthetic worked example. All scenario inputs are hypothetical; no live transaction, return, quote or account is represented. Distinguish RPC batching, wallet atomicRequired and per-call allowFailure using a synthetic permission-and-balance ledger.

To check the arithmetic and CSV/JSON agreement locally, save both files beside the Python verification script and run python3 verify.py q35.json. Python 3 is required; no third-party packages are needed. The check does not verify source claims or provider performance.

These are downloadable research records. They do not connect to an account, execute a trade or provide live market data.

Frequently asked questions

Does one JSON-RPC batch mean one atomic transaction?

No. It is a transport grouping with separate request IDs and responses. The specification does not give the group one ledger rollback boundary.

Can one successful outer transaction contain a failed call?

Yes, if the executor permits that subcall to fail. Multicall3 aggregate3 exposes allowFailure per call, so the invocation’s actual settings matter.

Does an atomic revert imply zero cost?

No. Application effects may revert while an included transaction still incurs execution fees or nonce consequences. Record those separately.

Continue the research

Optional research services and tools

The free example above can be used without buying a product. For a defined team question, the DN Research Desk offers separately agreed documentary briefs, source registers and worked examples. Scope, fee, delivery date and usage terms are agreed before work begins; an enquiry creates no payment obligation.

Commercial disclosure: DN’s own service and any referral relationship are separate from the research method. No provider paid for a favourable finding in this article.

Sources and review scope

Sources reviewed on 5 December 2026. Review dates are distinct from each source’s observation, publication and effective dates.

  1. JSON-RPC 2.0 specification: Batch. Batch request processing can be concurrent and unordered; responses are matched by ID rather than position. Evidence: Protocol specification.
  2. EIP-5792: Wallet Call API. wallet_sendCalls atomicRequired semantics, capabilities and batch status distinctions. Evidence: Protocol specification.
  3. Multicall3 aggregate3 implementation. Per-call allowFailure controls reversion and result flags; calls use ordinary CALL context. Evidence: Primary implementation.

Corrections and limitations

To flag a possible error, use the DN contact route with this article’s URL, the disputed claim and the supporting source. The analysis is educational, not personalised investment, legal or tax advice. Documentation and synthetic examples do not establish realised returns or individual eligibility.

The DN briefing: what changed and why it matters

Follow documented changes in AI, crypto and financial technology, with practical analysis and source context. Unsubscribe anytime.