Portal

Portal

Portal Team

Share the love

Want to stay updated? Subscribe below to keep in touch.

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"> <mask id="mask0_996_165" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="2" y="1" width="46" height="46"> <path d="M47.2941 1.41177H2.11768V46.5882H47.2941V1.41177Z" fill="white"/> </mask> <g mask="url(#mask0_996_165)"> <path fill-rule="evenodd" clip-rule="evenodd" d="M16.2353 4.2353C16.2353 2.67591 17.4995 1.41177 19.0589 1.41177H44.4706C46.0301 1.41177 47.2941 2.67591 47.2941 4.2353V29.6471C47.2941 31.2065 46.0301 32.4706 44.4706 32.4706H38.8236V12.7059C38.8236 11.1465 37.5595 9.88236 36 9.88236H16.2353V4.2353ZM4.94121 15.5294C3.3818 15.5294 2.11768 16.7935 2.11768 18.353V43.7647C2.11768 45.3242 3.3818 46.5882 4.94121 46.5882H30.353C31.9124 46.5882 33.1765 45.3242 33.1765 43.7647V18.353C33.1765 16.7936 31.9124 15.5294 30.353 15.5294H4.94121Z" fill="currentColor"/> </g> </svg>
Product Updates
3 min

Enabling Concurrent Blockchain Transactions with Portal's /sign API

Reduce latency and gas fees with batched processing

March 6, 2025

Enabling Concurrent Blockchain Transactions with Portal's /sign API

Why Concurrent Transactions Matter in Payments

The ability to process multiple transactions simultaneously is fundamental to the modern financial system, where delays can mean lost revenue and poor user experience. Payment processors like Visa must handle thousands of transactions per second to ensure a seamless commercial experience for people around the world. As such, builders interested in migrating financial operations to blockchain encounter a big hurdle: blockchains, by design, require transactions from the same wallet to be processed sequentially due to the concept of "nonces." This limitation hinders one’s ability to build high-throughput financial applications that rely on processing multiple transactions at once.

How Blockchains Process Transactions and the Role of Nonces

Blockchain networks process transactions in a strict sequence. To prevent double-spending and maintain order, transactions include a "nonce," a sequential number that ensures each transaction is processed exactly once and in the correct order.

For example, if an account has a nonce of 10, the next transaction must have a nonce of 10, followed by 11, 12, and so on. If a transaction with nonce 12 is submitted before nonce 11 is confirmed, the network will hold it in the mempool until nonce 11 completes processing. This dependency guarantees order but introduces a challenge for applications that need to send multiple transactions at once.

Sequential Processing Blocks High Throughput

Imagine a blockchain-powered payment processor—let's say a version of Visa operating entirely on Ethereum. If this company uses a single wallet to settle payments, it must process each transaction one by one. Every payment settlement requires a new transaction with a properly incremented nonce, and since nonces must be used sequentially, concurrent transactions are impossible.

Transactions must be broadcast and mined in strict order, creating bottlenecks in high-volume applications. If a transaction with a lower nonce gets stuck due to network congestion, all subsequent transactions will be blocked until it is resolved.

Options for Handling Nonce Management at Scale

Companies facing this challenge have two main options:

  1. Using Multiple Wallets: Instead of relying on a single wallet, companies can distribute transactions across multiple wallets. Doing so adds complexity, requiring careful wallet management, security controls, and reconciliation mechanisms.
  2. Building a Nonce Management System: This approach involves tracking transaction submissions, keeping an internal record of used nonces, and ensuring transactions are sent in the correct order. While this provides more flexibility than multiple wallets, it still falls short of true concurrency.

A Step Closer to Concurrency with Nonce Management Systems

A well-designed nonce management system can track transactions submitted to the mempool and ensure successful execution. This allows for better transaction flow management but still doesn't fully eliminate the sequential submission requirement. Applications need to constantly monitor the blockchain for pending transactions, handle re-submissions, and ensure nonces remain correctly synchronized.

Portal's /sign API: Seamless Nonce Management for Concurrent Transactions

Developers can use Portal's /sign API to handle nonce management efficiently. With Portal, you can submit multiple transactions with pre-incremented nonces, allowing the backend to manage submissions to the mempool in the correct order.

Here’s how you can use Portal's /sign API to send multiple transactions without manually tracking nonces:

Benefits of Using Portal’s /sign API for Nonce Management

  • Enables back-to-back transaction submission: Transactions can be prepared and sent in parallel without waiting for previous ones to confirm.
  • Simplifies blockchain integration: Developers can focus on business logic instead of low-level blockchain transaction management.

Conclusion

High-throughput financial applications demand concurrent transactions, but blockchain's nonce requirements traditionally enforce strict sequential processing. By leveraging Portal’s /sign API, businesses can submit multiple transactions efficiently, allowing seamless scaling of blockchain-based payment solutions.

If you’re building a blockchain-based payment system, consider integrating Portal to remove nonce management headaches and enable true concurrency for your transactions.

All customers using the Enclave MPC API have access to Concurrent Transactions with simple additions to their code.

Contact the Portal team for support or set up a time to get acquainted with our full suite of products.