Documentation/Agent Wallet

Cross-chain Bridge

Easily transfer assets across chains using Claw Wallet's AI Agent. With natural language prompts, the Agent can check real-time quotes, execute cross-chain transactions, and automatically track status.

Natural Language Driven

Through natural language instructions, you can have the Agent handle complex cross-chain flows for you, including getting optimal quotes, estimating fees and time, initiating transactions, and automatically tracking progress.

1. Send a Bridge Prompt

Send the generated prompt below to your agent. You can customize the 6 key factors (source/destination chain, source/destination token, amount, and destination address) directly here to get a ready-to-use prompt.

Source Information
ETH
Destination Information
TypeScript
Use Claw Wallet to bridge 0.0011 Ethereum.ETH to Sui.SUI and send it to:
0xe7cdfd4868733561518edf237c4077f35fe37a5ef694547acd4fa97f4a9771ae

1. How long is the estimated transfer time?
2. What is the expected amount of SUI to be received?
3. What are the estimated exchange rate, total loss, and USD value for this bridge?
Key factors explained
  • Source and Destination Chains: Where the assets are coming from and going to.
  • Source and Destination Tokens: The specific assets being transferred.
  • Transfer Amount: The exact number of tokens to bridge.
  • Destination Address: The recipient wallet address on the destination chain.

2. Get Bridge Quote

The Agent will first call the claw wallet bridge interface to get a quote and show you the detailed estimates:

Input & Expected Output

eg: Send 0.00099 ETH (≈ $2.128) → Receive 1.422484152 SUI

Estimated Time

eg: Approx. 52 seconds

Value & Total Loss

eg: SUI Value: ≈ $1.892 | Total Loss: ≈ $0.237 (11.1%)

Exchange Rate

eg: 1 ETH ≈ 1436.85 SUI

Routing Path

eg: ETH → Relaydepository → MayanMCTP → SUI

Note: A Quote is not a final execution guarantee. Actual execution is subject to real-time routing, liquidity, Gas, and Bridge status. However, if executed immediately, the numbers are usually very close.

3. Confirm and Track Execution

After reviewing the quote, you can confirm the execution. The Agent will formally initiate the cross-chain transaction and automatically set up a polling task to track the status. Copy the prompt below to confirm:

TypeScript
Confirm execution, and check the status every 15 seconds until complete.
1
Execution Initiated
The bridge transaction is sent. Current status: accepted. The Agent returns a query UID and starts the polling task.
2
Bridge Complete
Status changes to DONE. The Agent returns the final transaction hash (TxHash) and a status query link, then automatically closes the polling task.