Monish Muralidharan
5
min read
Apr 15, 2025
Cross-chain trading has long been a challenge in the blockchain ecosystem. Existing solutions rely on centralized bridges or liquidity pools, which introduce risks such as custodial control, security vulnerabilities, and inefficiencies due to manual claiming.
At Mettalex, we have built a decentralized, trustless, and efficient cross-chain trading mechanism leveraging Fetch.ai’s autonomous agent technology. This system ensures secure, peer-to-peer (P2P) asset transfers between multiple blockchains while eliminating reliance on third-party intermediaries.
The Problem with Traditional Cross-Chain Solutions
Despite the growing adoption of blockchain technology, interoperability remains a significant barrier. Current cross-chain transfer mechanisms face multiple issues:
Centralized Custodians: Most bridges require third-party control, creating a single point of failure.
Liquidity Risks: Liquidity pool-based models are prone to depletion and impermanent loss.
Slow & Costly Transactions: Traditional cross-chain transfers require multiple steps and manual approvals, leading to inefficiencies.
Security Vulnerabilities: Cross-chain hacks are among the most common exploits in DeFi, resulting in billions in lost assets.
The Mettalex Solution: Autonomous Agent-Powered Cross-Chain Transfers
Mettalex addresses these challenges by integrating Fetch.ai powered agents that autonomously execute cross-chain transfers using a Push-Pull Mechanism. These agents operate independently, listening to on-chain events and executing transactions securely and efficiently without manual intervention and most importantly without no central point of failure.
How It Works: Cross-Chain Transfer Process
At the core of our system are autonomous agents that handle the complexities of cross-chain transactions. These agents listen to on-chain events, match trades, and execute transfers seamlessly across different blockchains.
Push Mechanism: Standard Cross-Chain Transfer
The Push Mechanism enables seamless cross-chain transfers between users by executing pre-matched transactions. Here's a simplified breakdown of the process:

Agent Matching: Agents (A1 & A2) detect and match a cross-chain transfer request between two users.
Lock Order Verification: Each agent verifies and acknowledges the lock order, confirming available balances on their respective chains.
A1 verifies Lock Order & Balance on Blockchain 1.
A2 verifies Lock Order & Balance on Blockchain 2.
Escrow Locking: Users lock their assets in escrow contracts on their respective blockchains.
Escrow (U1) on Blockchain 1 and Escrow (U2) on Blockchain 2 secure the funds.
Lock Order Execution: Once verified, agents execute the final lock order transaction, ensuring funds are reserved for transfer.
Fund Transfer Initiation: The agents trigger the transfer, instructing the escrow contracts to release funds to the counterparties.
Final Settlement: User 1 receives funds on Blockchain 2.
User 2 receives funds on Blockchain 1.
This approach guarantees a secure, fast, decentralized cross-chain asset transfer experience.
Pull Mechanism: Fail-Safe for Cross-Chain Transfers
While the Push Mechanism ensures smooth execution, unforeseen failures (e.g., network congestion, contract failures) may disrupt transactions. The Pull Mechanism acts as a fail-safe, ensuring users can retrieve their locked funds in case of an issue.

How the Pull Mechanism Works:
Agent Matching: Agents A1 and A2 identify a trade match between users on different blockchains.
Lock Order & Acknowledgment: Agents lock the orders in escrow contracts on both blockchains, preventing funds from being moved during the transaction.
Transaction Execution Begins: A1 initiates the fund transfer request from Escrow U1 to User 2.
However, if A2 fails to transfer funds from Escrow U2 to User 1, the process needs a fail-safe.
User Requests Fund Retrieval: If U1 doesn’t receive funds within a set timeframe (T1), they request A1 to retrieve locked funds.
Agent Pulls Funds from Opposing Escrow: A1 uses its on-chain authority to pull funds from Escrow U2 back to U1.
Final Settlement: Escrow U2 transfers funds back to User 1, ensuring that no assets are stuck due to mid-transaction failures.
Seamless Cross-Chain Trading with AI Agents
With the integration of Fetch.ai’s autonomous agents, Mettalex is leading the next gen of cross-chain trading by providing:
Fully decentralized cross-chain swaps
Trustless peer-to-peer asset transfers
Enhanced security with escrow-based transfers
Fail-safe mechanisms to prevent stuck transactions
As cross-chain DeFi evolves, Mettalex remains committed to expanding interoperability, enhancing efficiency, and eliminating risks in blockchain asset trading.
Join the Future of Cross-Chain Trading
Explore Mettalex’s cross-chain capabilities and discover how our agent-powered trading system transforms decentralized finance. Join now https://beta.mettalex.ai/