Optimism 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
Optimism Refund-on-Failure Batch Sender automates ERC-20 token payroll distributions on the Optimism network with built-in failure protection. Connect your wallet, enter the payroll token address, list recipient addresses with payment amounts, and set a pay frequency. The tool reads your token balance, native ETH balance, and current BotGentz sender contract fee, then batches all transfers into a single on-chain transaction. If the batch transaction fails for any reason (e.g., insufficient balance, contract revert, network issue), the tool automatically triggers a refund of the native ETH fee back to your wallet. This protects you from losing gas fees on failed transactions and provides peace of mind when sending large batches.
HOW TO USE
1. Connect your wallet using the built-in connector. Ensure you are on the Optimism network (chain ID 10).
2. Enter the ERC-20 token address you wish to use for payroll.
3. Provide a list of recipients and their payment amounts (one per line, comma-separated).
4. Set the pay frequency in seconds (e.g., 2592000 for 30 days) to define the recurring schedule.
5. Review the total token amount, native fee, and your balances.
6. Click "Send Batch (Refund on Failure)" — the tool will approve the exact total token amount for the sender contract, execute the batch transfer, and monitor the transaction. If the transaction fails, it will automatically send a refund transaction to return the native ETH fee to your wallet.
TECHNICAL MECHANISM
The tool uses the shared BotGentz sender contract deployed on Optimism. It reads the contract's fee and owner address on-chain each time, ensuring the fee is current and never stale. The approval step authorizes the sender contract for the exact total token amount (not unlimited) to minimize risk. The batch transfer is executed as a single transaction with the fee sent as value. The tool wraps the send in a try-catch block and monitors for failure. If the transaction reverts, the tool automatically constructs and sends a refund transaction that transfers the fee amount back to the sender's wallet. This refund mechanism is independent of the sender contract and uses the wallet's native send capability. The tool performs a native balance check before sending to ensure the fee can be covered, and also checks that sufficient balance remains for the refund transaction in case of failure.
WHAT IT CANNOT SEE
This tool cannot send native gas tokens (ETH) or any token standard other than ERC-20. It cannot detect token tax, fee-on-transfer, or rebasing mechanics. It cannot recover incorrectly entered recipient addresses or amounts. It cannot send to contracts that reject transfers. It does not simulate or estimate gas costs beyond the contract fee. Memo data storage is not supported by the standard BotGentz sender contract. The tool does not verify employee eligibility, employment status, or payroll approval. It does not handle tax withholding, benefits, or deductions, and does not support off-ramping to fiat. The refund mechanism relies on detecting transaction failure and may not cover all edge cases (e.g., network congestion, out-of-gas errors). The refund transaction itself requires additional gas, which is not refunded.
PLEASE NOTE
This tool is for EVM-compatible chains only, specifically Optimism. Ensure you are on the correct network and have sufficient ETH for both the fee and the potential refund transaction before sending. The BotGentz sender contract is a shared, community-audited contract; review its address and owner before each use. The refund feature is a safety net but does not guarantee recovery in all failure scenarios. All transactions are irreversible.