NFT-Gated Conditional Batch Sender (Optimism)
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
NFT-Gated Conditional Batch Sender (Optimism) is a specialized DeFi and NFT tool that adds an NFT ownership requirement to batch token distributions on the Optimism network. Before executing any batch transfer, the tool checks the sender's wallet for ownership of NFTs from a specified ERC-721 or ERC-1155 contract. Only if the sender holds at least the minimum number of NFTs—or a specific token ID—does the batch transaction proceed. This creates a powerful access-control mechanism for token distributions, enabling you to require that distributors hold membership NFTs, governance passes, or any other NFT before they are allowed to send tokens to recipients. The tool is ideal for DAO treasury management, partner reward programs, exclusive distribution roles, and any scenario where you want to restrict batch-sending privileges to NFT holders on Optimism. By combining NFT gating with batch transfers on Optimism's low-cost L2 infrastructure, you add an extra layer of control, exclusivity, and accountability to your distribution workflows while enjoying Optimism's fast finality and minimal transaction fees.
HOW TO USE
Connect your Web3 wallet to the Optimism network. Enter the NFT contract address—this can be either an ERC-721 or ERC-1155 contract whose ownership will be checked. Optionally, specify a specific token ID to check for ownership of that particular NFT (leave blank to check total NFT balance). Enter the minimum number of NFTs required to pass the gate. 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. It then reads your NFT ownership from the specified contract and displays whether you meet the minimum threshold. Review the sender contract address, fee, and contract owner for transparency. If the NFT gating condition passes, click the send button, review the transaction in your wallet, and confirm. The tool performs a final on-chain NFT ownership check before executing the batch transfer, ensuring the condition is met at the moment of transaction execution on Optimism. If the condition fails at any point, the batch transfer is blocked.
MECHANISM: ON-CHAIN NFT BALANCE GATING WITH OPTIMISM BATCH EXECUTION
The tool implements a two-phase gating mechanism optimized for Optimism's L2 environment. First, it reads the sender's NFT balance from the specified contract using the appropriate standard: balanceOf(address) for ERC-721 or balanceOf(address, tokenId) for ERC-1155 with a specific token ID. For ERC-1155 contracts without a specific token ID, it attempts to detect the contract type via supportsInterface and uses balanceOf with token 0 as a fallback. This initial check is displayed in the UI and used to enable or disable the send button. When the user clicks send, the tool performs a second on-chain NFT verification using the signer's address to ensure the condition still holds—this prevents race conditions where the NFT might be transferred between the UI check and transaction submission, a critical consideration on Optimism's fast block times. If the NFT check passes, the tool proceeds with the standard batch transfer flow: it calculates the total tokens to send plus the sender contract fee, checks the sender's balance of the distribution token on Optimism, approves the sender contract for the exact total, and executes the batchTransferERC20 function on the shared BotGentz sender contract deployed on Optimism. The batch transfer is atomic—either all recipients receive their tokens, or the entire transaction reverts.
WHAT IT CANNOT SEE
This tool reads NFT ownership for gating purposes but cannot verify recipient validity, token contract correctness, transfer pausing, blacklisting, or gas fluctuations. It cannot guarantee that all transfers will succeed—if one transfer fails due to a blacklisted address, a contract that rejects the token, or any other reason, the entire batch reverts. It cannot detect if the NFT contract uses non-standard ownership mechanics or if the sender's NFT balance changes between the initial read time and transaction execution (though it does re-check at execution). It cannot verify that the NFT is not paused, blacklisted, or transferred during execution. It cannot account for Optimism-specific gas mechanics such as L1-to-L2 fee components or the dynamic fee structure of the Optimism network. It cannot ensure that the condition check is atomic with the transfer if the contract does not support atomic re-verification on-chain. It cannot verify that the sender will maintain the required NFT holdings after the transaction completes. It cannot detect if the sender holds the NFT in a contract or delegated wallet rather than their personal address.
PLEASE NOTE
This tool works exclusively on EVM-compatible chains and is specifically designed for the Optimism network. It requires the user to have sufficient native ETH for gas on Optimism, sufficient distribution token balance to cover the total amount sent plus the sender contract fee, and sufficient NFT holdings to meet the minimum threshold. The user is solely responsible for verifying the NFT contract address, distribution token address, recipient addresses, and amounts before signing. Always test with a small batch first to confirm the setup is correct. The NFT gating condition is a prerequisite for sending—if you do not meet the minimum NFT requirements, the tool will not allow the transaction to proceed. 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. Optimism's low transaction costs make this tool particularly cost-effective for large distributions with NFT-gating requirements.