How to send a batch payment?
What is the batch payment?
Batch payment in MPCVault allows you to send cryptocurrency to multiple addresses in a single transaction, which is both time-efficient and cost-effective. You can send cryptocurrency to up to 254 recipients per request, with the option to send different or equal amounts. You can also clone a previous payment or upload a CSV file to create a new batch payment. All the payment entries will be visible in your transaction history for easy tracking and management.
Supported assets
Network | Assets |
---|---|
Ethereum | ETH, ERC-20 |
Polygon | POL, ERC-20 |
BNB Smart Chain | BNB, BEP-20 |
Arbitrum | ETH, ERC-20 |
Optimism | ETH, ERC-20 |
Avalanche C-Chain | AVAX, ERC-20 |
Base | ETH, ERC-20 |
Bitcoin | BTC (Only supports BTC) |
Sui | SUI, Coin |
How to set up a batch payment?
If this is your first time using batch payment, please follow the steps below:
-
Select a vault, and from the vault's details page, click the "Batch payment" tab on the side menu, then click "New batch payment".
-
Select the wallet and asset you want to use. Then, fill in the recipient's address and the amount you want to send. Alternatively, you can use our CSV file upload feature to quickly import a list of prepared addresses and amounts. To upload a CSV or Excel file, click on the "Upload CSV/Excel" button, but be sure to review the notes in the pop-up window before uploading the file.
-
Click "Continue" and then confirm the payment details. After verifying that everything is correct, click "Confirm" to successfully create a batch payment event.
-
Initiate the transaction
4.1. When the asset of the transaction is the native cryptocurrency of that blockchain, click "Create batch transaction" to initiate a transaction for a batch payment.
4.2. When the asset of the transaction is an ERC-20 token, it is necessary to first authorize the contract so that the token contract can record the amount and address of tokens you have authorized. Only after obtaining sufficient authorization can you initiate the transaction. Therefore, the following two steps are required:
-
Click "Create approval transaction" and sign on the MPCVault app to authorize the contract.
-
Click "Create batch transaction" to initiate the transaction.
-
Attention📣
Batch payment of ERC-20 token requires two steps: Approval and Send. When making multiple batch payments of the same ERC-20 token, please process the two signing requests (Approval and Send) of one payment in order before processing to the next. This is to prevent transaction failures due to a mismatch between the send amount and the approved allowance.
For example, you initiate two batch payments of USDC on Polygon network, the first for 300 USDC and the second for 200 USDC:
- Signing order: Batch tx - approval (300 USDC) --> Batch tx - send (300 USDC)--> Batch tx - approval (200 USDC)--> Batch tx - send (200 USDC) ✅
- Like this is no problem!
- Signing order: Batch tx - approval (300 USDC) --> Batch tx - approval (200 USDC) --> Batch tx - send (300 USDC) --> Batch tx - send (200 USDC) ❌
- Like this, the transaction for the 300 USDC batch send will fail.
Why does the authorization transaction fail? (e.g. USDT)
When attempting to perform batch payments with USDT tokens on the Ethereum blockchain, you may encounter exceptions during the smart contract authorization process. This is because certain tokens may have insufficient allowance
to cover your current transaction, requiring you to revoke the existing approval for that token. It is recommended to perform the revocation through a blockchain explorer. This action is performed on-chain and will incur gas fees. For tokens with non-standard approvals, if you fail to revoke the existing approval, the new authorization will be unsuccessful. USDT and CRV are two tokens that follow this non-standard approval process.
How to revoke a token approval?
Taking USDT on the Ethereum network as an example, follow these steps to reset the authorization amount and initiate the transaction again:
- Open the etherscan and navigate to the USDT contract.
- Click on the "Connect to Web3" button to connect to your wallet. Please note that only the owner of the address can revoke the smart contract's authorization.
- Locate the "approve" function. Parameter settings are as follows:
Then click on the "Write" button.
_spender (address): 0xa4994144a9217e3779bDa588798EfF546b69DEfB
_value (uint256): 0 - Go back to the MPCVault App, agree and sign this signing request.
After completing these steps, you can retry the batch payment.
MPCVault batch contract
Network | Chain ID | Block explorer | Batch contract address |
---|---|---|---|
Ethereum | 1 | etherscan | 0xa4994144a9217e3779bda588798eff546b69defb |
Polygon | 137 | polygonscan | 0x6569189b6f3c9107abf61383a8f7bbe30263ecde |
BNB Smart Chain | 56 | bscscan | 0xa4994144a9217e3779bda588798eff546b69defb |
Arbitrum | 42161 | arbiscan | 0x09ef519886ff608c7965d7d8dc4fbed62c083b6e |
Optimism | 10 | optimistic | 0xa4994144a9217e3779bda588798eff546b69defb |
Avalanche C-Chain | 43114 | snowtrace | 0x09ef519886ff608c7965d7d8dc4fbed62c083b6e |
Base | 8453 | basescan | 0x09ef519886ff608c7965d7d8dc4fbed62c083b6e |