Swap Lightning to USDC or USDT0 on Arbitrum One — and back to bitcoin — or to USDC on Base, or Lightning ↔ Arkade, with Mark, the open-source client an agent installs to use the Agent Escrow service at agentescrow.to. This is a standalone feature: no deal, no escrow, no arbiter. BTC to USDT0 Arbitrum swap for AI agents, through Satora.
Fees depend on the route and are shown on the live quote. Lightning or Arkade to USDC or USDT0 on Arbitrum One or USDC on Base (and back) is about 1% total (Satora ~0.5% + Agent Escrow 0.5%) plus network fee; USDC on Base also pays Circle's CCTP bridge fee (about 0.05 USDC, in USDC, taken from the payout; the live quote shows it); USDC from Base also pays Circle's CCTP fee (about 0.02% of the amount, in USDC, taken from the deposit) and Base gas for two transactions (approve and burn), paid in ETH on Base by the deposit address (usually well under 0.0001 ETH); the live quote shows both. Lightning to Arkade is about 0.65% total (Satora ~0.15% + Agent Escrow 0.5%) plus network fee. Arkade to Lightning is about 0.80% total (Satora ~0.30% + Agent Escrow 0.5%) plus network fee, shown in the quote, before anything is created. Mainnet only. Standalone swaps: Mark 0.6.1.
Mark is the open-source CLI and MCP server (MIT). It holds the agent's keys locally. Node 20.19+.
npx -y @yuvlero/mark@latest mcp
Or as a CLI: npx -y @yuvlero/mark@latest swap routes. MCP client config:
{
"mcpServers": {
"mark": {
"command": "npx",
"args": [
"-y",
"@yuvlero/mark@latest",
"mcp"
]
}
}
}Mark (open source, MIT): npm @yuvlero/mark · GitHub · agent skill (SKILL.md) · escrow API docs
Fourteen routes on bitcoin mainnet, all via Satora: Lightning or Arkade to USDC or USDT0 on Arbitrum One or USDC on Base (and back) (USDC on Base travels over Circle's CCTP bridge; back to bitcoin, the deposit address also pays a little Base gas in ETH); and Lightning ↔ Arkade both ways. Live minimum and maximum amounts: npx -y @yuvlero/mark@latest swap routes (read-only; nothing is created).
| From | To | Mark flags | Token contract (chain) |
|---|---|---|---|
| Lightning | USDC on Arbitrum One | --from lightning --to usdc | 0xaf88d065e77c8cC2239327C5EDb3A432268e5831 (42161) |
| Lightning | USDT0 on Arbitrum One | --from lightning --to usdt0 | 0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9 (42161) |
| Lightning | USDC on Base | --from lightning --to usdc-base | 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 (8453) |
| Arkade | USDC on Arbitrum One | --from arkade --to usdc | 0xaf88d065e77c8cC2239327C5EDb3A432268e5831 (42161) |
| Arkade | USDT0 on Arbitrum One | --from arkade --to usdt0 | 0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9 (42161) |
| Arkade | USDC on Base | --from arkade --to usdc-base | 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 (8453) |
| USDC on Arbitrum One | Lightning | --from usdc --to lightning | 0xaf88d065e77c8cC2239327C5EDb3A432268e5831 (42161) |
| USDC on Arbitrum One | Arkade | --from usdc --to arkade | 0xaf88d065e77c8cC2239327C5EDb3A432268e5831 (42161) |
| USDT0 on Arbitrum One | Lightning | --from usdt0 --to lightning | 0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9 (42161) |
| USDT0 on Arbitrum One | Arkade | --from usdt0 --to arkade | 0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9 (42161) |
| USDC on Base | Lightning | --from usdc-base --to lightning | 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 (8453) |
| USDC on Base | Arkade | --from usdc-base --to arkade | 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 (8453) |
| Lightning | Arkade | --from lightning --to arkade | — |
| Arkade | Lightning | --from arkade --to lightning | — |
Arkade-source swaps must be paid from an Arkade wallet on https://arkade.computer, not Bark / Second. Lightning payouts need a BOLT11 invoice with an amount, not a Lightning address.
Quote first (nothing is created), then preview, then create only with --yes (MCP: confirm: true). Pay the Lightning invoice (or the Arkade address) once. --wait claims the stablecoins to your address (gasless) and prints the payout transaction. --address is your 0x address on the payout network.
npx -y @yuvlero/mark@latest swap quote --from lightning --to usdc --sats 100000
npx -y @yuvlero/mark@latest swap --from lightning --to usdc --sats 100000 --address 0xYourArbitrumAddress --yes --wait
USDC on Base (--to usdc-base): Satora settles the swap on Arbitrum One, and at the claim Circle's CCTP bridge delivers the USDC to the same address on Base, usually within a few minutes. USDC on Base also pays Circle's CCTP bridge fee (about 0.05 USDC, in USDC, taken from the payout; the live quote shows it); the quote's receive is after it.
npx -y @yuvlero/mark@latest swap --from lightning --to usdc-base --sats 100000 --address 0xYourBaseAddress --yes --wait
MCP: swap_routes, swap_quote, swap_create (needs confirm: true), then swap_claim with wait: true.
From Arbitrum One it is gasless: no EVM wallet in Mark and no ETH are required to lock the deposit. Mark prints a deposit address, the exact amount and the token: send that once on the network it names, then Mark funds the swap. Never send twice. Stuck funds can be refunded and recovered.
npx -y @yuvlero/mark@latest swap quote --from usdc --to lightning --amount 1.5
npx -y @yuvlero/mark@latest swap --from usdc --to lightning --invoice lnbc… --yes --wait
From USDC on Base (--from usdc-base): send the USDC on Base, plus a little ETH on Base once, to the deposit address. Mark signs the USDC approve and Circle's CCTP burn there and refuses, before signing anything, if the ETH is short (it says how much is needed and held). USDC from Base also pays Circle's CCTP fee (about 0.02% of the amount, in USDC, taken from the deposit) and Base gas for two transactions (approve and burn), paid in ETH on Base by the deposit address (usually well under 0.0001 ETH); the live quote shows both.
npx -y @yuvlero/mark@latest swap --from usdc-base --to lightning --invoice lnbc… --yes --wait
MCP: swap_to_btc_quote, swap_to_btc_create (needs confirm: true), then swap_fund with wait: true. Recovery: swap_refund, swap_recover.
Same client, no stablecoin and no escrow. Quote first, then create only with --yes (MCP: confirm: true). Lightning to Arkade: pay the hold invoice once, then swap_claim (or --wait) sends the sats to your Arkade address. Arkade to Lightning: send the exact source sats to the printed VHTLC address from an Arkade wallet on https://arkade.computer (not Bark / Second); Satora pays your invoice. Refund an uncompleted Arkade-funded swap with mark swap refund <id> --to <ark address> after the timelock.
npx -y @yuvlero/mark@latest swap quote --from lightning --to arkade --sats 100000
npx -y @yuvlero/mark@latest swap --from lightning --to arkade --sats 100000 --address ark1… --yes --wait
npx -y @yuvlero/mark@latest swap --from arkade --to lightning --invoice lnbc… --yes --wait
MCP: swap_routes, swap_quote, swap_create (needs confirm: true). After Lightning to Arkade, swap_claim with wait: true.
npx -y @yuvlero/mark@latest swap routes. Amounts outside that range are refused.Can my AI agent swap Lightning to USDC without using escrow?
Yes. mark swap is standalone: no deal, no escrow, no arbiter. It swaps bitcoin (paid over Lightning or from an Arkade wallet) to USDC or USDT0 on Arbitrum One or USDC on Base (and back), and Lightning ↔ Arkade, through Satora. Fees depend on the route and are shown on the live quote. Lightning or Arkade to USDC or USDT0 on Arbitrum One or USDC on Base (and back) is about 1% total (Satora ~0.5% + Agent Escrow 0.5%) plus network fee; USDC on Base also pays Circle's CCTP bridge fee (about 0.05 USDC, in USDC, taken from the payout; the live quote shows it); USDC from Base also pays Circle's CCTP fee (about 0.02% of the amount, in USDC, taken from the deposit) and Base gas for two transactions (approve and burn), paid in ETH on Base by the deposit address (usually well under 0.0001 ETH); the live quote shows both. Lightning to Arkade is about 0.65% total (Satora ~0.15% + Agent Escrow 0.5%) plus network fee. Arkade to Lightning is about 0.80% total (Satora ~0.30% + Agent Escrow 0.5%) plus network fee. Start with npx -y @yuvlero/mark@latest swap routes. The same rails also fund and pay out Agent Escrow deals in one hop with Mark 0.7.0 (see / and /docs); that is a different tool.
Can I use these rails to fund or cash out an escrow?
Yes, with Mark 0.7.0. Fund an escrow from USDC or USDT0 with npx -y @yuvlero/mark@latest escrow fund <id> --from usdc|usdt0|usdc-base, or receive an escrow payout with npx -y @yuvlero/mark@latest escrow approve <id> --payout-stable usdc|usdt0|usdc-base --payout-address 0x…, then npx -y @yuvlero/mark@latest escrow claim-payout <id> --wait. Preview with npx -y @yuvlero/mark@latest escrow quote <id> --payout-stable usdc. The escrow itself still holds bitcoin in a 2-of-3 Arkade address; Agent Escrow wraps Satora for the hop. This /swap page is the standalone tool (no deal).
What is Mark?
Mark is the open-source client (CLI and MCP server) an agent installs to use the Agent Escrow service at agentescrow.to. The same client also runs standalone swaps. It holds the agent's keys locally; the service cannot move those funds on its own.
Which routes are supported?
Fourteen routes on bitcoin mainnet, all via Satora: Lightning or Arkade to USDC or USDT0 on Arbitrum One or USDC on Base (and back) (USDC on Base travels over Circle's CCTP bridge; back to bitcoin, the deposit address also pays a little Base gas in ETH); and Lightning ↔ Arkade both ways. Live minimum and maximum amounts come from mark swap routes. There is no working mutinynet path. Lightning addresses are not accepted as a payout (use a BOLT11 invoice with an amount). Bark / Second wallets cannot pay an Arkade-source swap; use Lightning or an Arkade wallet on arkade.computer.
What does a swap cost?
Fees depend on the route and are shown on the live quote. Lightning or Arkade to USDC or USDT0 on Arbitrum One or USDC on Base (and back) is about 1% total (Satora ~0.5% + Agent Escrow 0.5%) plus network fee; USDC on Base also pays Circle's CCTP bridge fee (about 0.05 USDC, in USDC, taken from the payout; the live quote shows it); USDC from Base also pays Circle's CCTP fee (about 0.02% of the amount, in USDC, taken from the deposit) and Base gas for two transactions (approve and burn), paid in ETH on Base by the deposit address (usually well under 0.0001 ETH); the live quote shows both. Lightning to Arkade is about 0.65% total (Satora ~0.15% + Agent Escrow 0.5%) plus network fee. Arkade to Lightning is about 0.80% total (Satora ~0.30% + Agent Escrow 0.5%) plus network fee. The Agent Escrow part is a 50 basis-point markup (capped at 100). Swaps from USDC or USDT0 on Arbitrum One to bitcoin are gasless: you need no EVM wallet in Mark and no ETH to lock the deposit. From USDC on Base, the deposit address also needs a little ETH on Base for two transactions (approve and burn); Mark checks it before signing anything.
How does my agent start?
Install Mark and run it as an MCP server: npx -y @yuvlero/mark@latest mcp. Then use swap_routes, swap_quote and swap_create (BTC to stablecoins, or Lightning ↔ Arkade; confirm: true to create) or swap_to_btc_quote and swap_to_btc_create (stablecoins back to bitcoin). Or the CLI: npx -y @yuvlero/mark@latest swap routes. Real money on mainnet; Mark previews unless you pass --yes (MCP: confirm true).
If you are paying another agent for a job, use Agent Escrow (a 2-of-3 bitcoin lock). With Mark 0.7.0 the same stablecoin rails fund and pay out those deals in one hop — see the callout above. Standalone swaps (this page) and escrow are different tools in the same Mark client.