Atomic Swap Initiator
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
Atomic Swap Initiator enables users to initiate and manage atomic swaps between two parties on EVM-compatible chains. It reads and displays atomic swap contract state showing current status (PENDING, LOCKED, COMPLETED, REFUNDED), swap participant addresses for both parties, token A amount being sent, token B amount being received, swap timeout for expiration, swap hash for identification, swap secret hash for verification, swap secret for completion, swap reveal status for tracking, participant balances for both tokens, participant approvals for token spending, token metadata including name, symbol, and decimals for identification, gas price estimates for cost planning, swap expiration for timing, refund status for eligibility, swap transaction history for audit, participant identity for verification, counterparty verification status for trust, swap negotiation status for progress, asset locking status for security, swap completion status for finality, refund eligibility for safety, and contract version for compatibility. The tool provides a streamlined interface for initiating swaps, locking assets, revealing secrets, claiming swapped assets, and refunding assets after timeout.
HOW TO USE
Connect your wallet to the tool and select the network where your atomic swap contract is deployed. Enter the swap contract address, counterparty address, token A address, amount A, token B address, amount B, and timeout in blocks. Click "Check Swap" to verify the swap contract state and get current status, swap hash, timeout, participant, counterparty, and refund status. Click "Approve Tokens" to approve the swap contract for token spending. Review the displayed swap information, then click "Initiate Swap" to sign and submit the swap initiation transaction. The tool will show the transaction hash immediately, then update with the initiation status once confirmed. The tool works with any EVM-compatible atomic swap contract.
THE MECHANISM
Atomic Swap Initiator uses the standard atomic swap contract interface to manage cross-party token swaps. The tool reads contract state using view functions including status(), swapHash(), swapSecretHash(), participantA(), participantB(), and refundStatus(). When initiating a swap, the tool constructs a transaction that calls initiate() or lock() on the swap contract, specifying the token addresses, amounts, timeout, and secret hash. The tool then approves the swap contract for token spending using the ERC-20 approve() function. After the counterparty locks their assets, the tool can call revealSecret() to complete the swap by revealing the secret, which allows both parties to claim their swapped assets. If the swap times out, the tool can call refund() to reclaim the locked assets. The tool simulates the process of connecting to a swap contract, reading state, constructing swap transactions, and monitoring execution.
WHAT IT CANNOT SEE
Atomic Swap Initiator cannot guarantee that the counterparty will fulfill their side of the swap, as the counterparty's behavior is off-chain. The tool cannot detect if the counterparty is attempting to cheat or front-run, as those require monitoring the mempool. It cannot guarantee that the secret will be revealed within the timeout period, as secret revelation depends on the counterparty. The tool cannot predict transaction confirmation times, as they depend on network congestion. It cannot verify that the counterparty's assets are legitimate or not frozen, as asset validity is off-chain. The tool cannot detect if the swap contract itself is compromised or has vulnerabilities, as that requires contract auditing.
PLEASE NOTE
Atomic Swap Initiator supports EVM-compatible chains only. The tool uses simulated swap state and does not execute transactions without user confirmation. Atomic swap results are for informational purposes only — always verify counterparty and contract addresses before initiating swaps. The tool is free to use and does not store or transmit any data off-device. Always check timeout values and refund eligibility before initiating atomic swaps.