Polygon zkEVM Refund-on-Failure Batch Sender
Free to download on every platform. Comes pre-installed on BotFone, BotPad and BotFlip — with extra free apps included.
About this app
WHAT IT DOES
Polygon zkEVM Refund-on-Failure Batch Sender is a specialized DeFi tool that adds an automatic gas refund mechanism to batch token distributions on the Polygon zkEVM network. In the event that a batch transfer fails—due to insufficient balance, a blacklisted address, or any other revert condition—the tool triggers a refund process that returns gas costs to the sender via a configured refund contract. This provides a safety net for users who might otherwise lose gas fees on failed batch transactions. The tool reads the transaction receipt after execution to determine success or failure, and if the batch fails, it identifies the failure point and initiates the refund mechanism. This is ideal for users who want to experiment with batch distributions, DAOs testing payout workflows, and any scenario where the cost of failed transactions could be a barrier to using batch senders on Polygon zkEVM. By offering a refund-on-failure guarantee, the tool reduces the financial risk of large batch operations on Polygon's zk-rollup infrastructure.
HOW TO USE
Connect your Web3 wallet to the Polygon zkEVM network. Optionally, enter a refund contract address that will handle gas refunds in case of failure—if left empty, the tool will not attempt refunds. Enter the token contract address you wish to distribute. Paste or upload your list of recipients in the format "address, amount" with one entry per line—amounts are in human-readable token units. The tool parses the list and calculates the total tokens to be sent. Review the sender contract address, fee, and contract owner for transparency. Click the send batch button, review the transaction in your wallet, and confirm. If the batch succeeds, you receive a confirmation with the transaction hash and gas cost. If the batch fails, the tool detects the failure and—if a refund contract is configured—triggers the refund process, returning the gas cost to your wallet via the refund contract on Polygon zkEVM.
MECHANISM: TRANSACTION RECEIPT ANALYSIS WITH REFUND ORCHESTRATION
The tool executes a batch transfer via a specialized sender contract that supports refund-on-failure functionality on Polygon zkEVM. After the transaction is broadcast and confirmed (or reverted), the tool reads the transaction receipt. If the receipt shows a successful batch transfer (status = 1), the tool displays the confirmation and gas cost. If the receipt shows a failure (status = 0) or if the transaction reverts, the tool checks whether a refund contract address has been configured. If a refund contract is present, the tool calls a refund function on that contract, passing the gas used and effective gas price from the receipt. The refund contract calculates the refund amount (typically gas used × effective gas price) and transfers the corresponding native token back to the sender's address. The refund is processed in a separate transaction from the failed batch, ensuring the refund can complete even if the batch failed. The tool provides clear status messages indicating whether the refund was successfully initiated.
WHAT IT CANNOT SEE
This tool reads transaction receipts to detect success or failure on Polygon zkEVM but cannot verify recipient validity, sender balance, token contract correctness, transfer pausing, blacklisting, or gas fluctuations before the transaction. It cannot guarantee that all transfers will succeed—if the batch transaction fails, no tokens are transferred and only the refund mechanism is triggered. It cannot account for Polygon zkEVM-specific gas mechanics or L2 fee structures. It cannot guarantee that refunds will be processed if the refund contract lacks funds or if the refund transaction fails. It cannot ensure the refund is atomic with the failure detection—the refund is a separate transaction. It cannot verify that the refund amount is accurate or fair—the refund contract logic determines the amount. It cannot provide refunds for failed approvals or other non-batch transactions. It cannot recover from refund failures or generate reports for refunded batches. It cannot account for Polygon zkEVM's unique bridge and settlement mechanics.
PLEASE NOTE
This tool works exclusively on EVM-compatible chains and is specifically designed for Polygon zkEVM. It requires the user to have sufficient native ETH for gas on the batch transaction and for the refund transaction (if triggered). The user is solely responsible for verifying the token contract address, recipient addresses, and amounts before signing. Always test with a small batch first to confirm the setup is correct. The refund contract must be deployed and funded separately—the tool does not deploy or fund the refund contract. The refund mechanism is optional—if no refund contract is provided, the tool will not attempt refunds on failure. The sender contract addresses are hardcoded per chain and are publicly available for verification; no third-party custody is involved; you remain in full control of your wallet and funds at all times. Polygon zkEVM's low transaction costs make this tool particularly cost-effective for large-scale refundable distributions.