Send parallel transactions
This quide explains how to send multiple parallel transactions. Note that you don’t need to send parallel transactions for batching calls. This is for sending new transactions when, for example, there’s already a transaction in the mempool for a certain account.
Prerequisites
- An Alchemy API Key
- A Gas Manager policy
- A signer to own the account and sign messages
The
nonceKey
override must fit into a uint152
!React
JavaScript
API
Required SDK version: ^v4.61.0
Use the useSendCalls
hook and the nonceOverride
capability parameter to send parallel userops. You can also use the usePrepareCalls
hook to only prepare the operation for signing.
You’ll need both ALCHEMY_API_KEY
and ALCHEMY_POLICY_ID
environment variables set to follow along!