Decentralized ETH↔TRON swaps with plug-and-play resolver bots. No bridges, no trust needed.
ResolverX is a decentralized resolver marketplace that powers trustless cross-chain swaps between Ethereum and Tron using Hashed Timelock Contracts (HTLCs). It eliminates the need for centralized bridges, allowing anyone to register as a resolver and provide liquidity in a plug-and-play way using our open-source resolver bot template.
In ResolverX, users can initiate swaps from ETH to TRX or TRX to ETH through our frontend. They select from a list of resolvers who have registered their API endpoints, declared their supported directions, and listed their fees. Once a resolver is selected, a secret is generated and used to lock funds on the source chain. The resolver then locks equivalent value on the destination chain using the same hashlock.
After the user claims the output funds, our relayer bot automatically extracts the revealed secret from the destination chain and routes it to the resolver, allowing them to claim their refund from the original chain. This architecture ensures atomicity and removes counterparty risk.
The system includes:
HTLC contracts on Ethereum and Tron
A resolver registration UI
A backend that tracks swaps, secrets, and orchestrates communication
A relayer bot that watches both chains for secret revelation
A resolver bot template that any developer can fork and run to join the network
ResolverX empowers anyone to become a cross-chain liquidity provider, makes the swap process fully decentralized, and is extensible to more chains in the future.
We built ResolverX as a decentralized, cross-chain atomic swap marketplace between Ethereum and Tron using Hashed Timelock Contracts (HTLCs). The system coordinates multiple on-chain and off-chain components to ensure trustless execution of swaps across chains.
🔨 Smart Contracts We wrote a generic HTLC contract in Solidity that supports native ETH and ERC20 tokens.
The same contract logic was adapted and deployed on Tron Nile Testnet using TronWeb to simulate HTLC behavior on Tron.
Contracts use hashlock and timelock mechanics to ensure atomicity of swaps — enabling claim or refund based on preimage availability.
🔁 Cross-Chain Swap Orchestration A Node.js + Express backend orchestrates the flow:
Generates random secret s and computes hash(s)
Monitors lock and claim transactions on both Ethereum and Tron
Coordinates with resolvers via webhook-style HTTP endpoints
A relayer bot listens to claim events on both chains using ethers.js and TronWeb.
When a user claims funds, the relayer bot extracts the secret and forwards it to the opposite resolver, allowing them to claim their locked funds safely.
Resolver participation is fully permissionless — each resolver runs a plug-and-play Node.js bot exposing 4 core endpoints: /lock-eth, /lock-tron, /claim-eth, /claim-tron.
💻 Frontend Built in React and styled with TailwindCSS.
Users connect via MetaMask (Ethereum) and TronLink (Tron).
UI features include:
Swap form (ETH ↔ TRX)
Resolver selection (fee + liquidity)
Real-time step tracker (Lock → Claim → Complete)
🧪 Hacky or Notable Things We made it bidirectional — ETH→TRX and TRX→ETH swaps work with mirrored HTLC logic.
Resolver bots are completely open-source and forkable — any user can join the network by plugging in their endpoint.
The entire system is bridge-free — resolvers provide liquidity, users never rely on custodians.
Our relayer bot accurately tracks on-chain events and propagates secrets between chains for automatic claim resolution.
🛠️ Stack Smart Contracts: Solidity (EVM), TronWeb (Tron)
Backend & Bots: Node.js, Express, ethers.js, TronWeb
Frontend: React, TailwindCSS, MetaMask, TronLink
Partner tech used:
Tron Nile Testnet helped simulate non-EVM chain behavior
MetaMask + TronLink integration provided smooth multichain UX