Crypto Swap

Non-custodial cryptocurrency exchange across blockchain networks.

You Send Min: ...
You Receive (Estimated)
Recipient ETH Destination Address
Refund Wallet Address (In case swap fails)
Exchange Rate: --
Routing & Network Fee: Included (0.5%)
Estimated Arrival: ~10 - 20 mins
Settlement Protocol: Automated Cross-Chain
Non-Custodial
Direct On-Chain
Multi-Network
Order: SWP...
Awaiting Deposit
1
Deposit
2
Confirming
3
Exchanging
4
Sending
5
Complete
Please Send Exactly
0.00 BTC
Generating deposit address...
Quote rate locked. Deposit expected within 15 minutes.
You are Sending: --
You will Receive: --
Recipient Destination: --

Track Swap Status

Enter your Order ID (e.g. SWP01M41BXJKMXR2CAZKC36M7DDKN) to query on-chain deposit confirmation and settlement broadcast.

Recent Swaps

Swaps initiated or tracked in this browser session.

No recent swaps found.

Developer API

Programmatic quote aggregation, order creation, and status tracking.

Example Language

Get Real-Time Quote

Retrieve live aggregated rates, minimum deposit thresholds, and estimated payout.

Fetches execution quote and parameters for trading pair. Quotes are locked for 15 minutes when creating a fixed order.

GET/api/v1/quote?from={symbol}&to={symbol}&amount={amount}&type={fixed|variable}

Parameters

ParameterInRequiredDescription
fromQueryYesDeposit cryptocurrency symbol (e.g. BTC, ETH, USDT)
toQueryYesSettlement cryptocurrency symbol (e.g. ETH, SOL, XMR)
amountQueryYesDeposit quantity to exchange
typeQueryNofixed (15m rate lock) or variable (live market)
fromNetworkQueryNoDeposit network (e.g. bitcoin, tron, ethereum)
toNetworkQueryNoSettlement network (e.g. ethereum, solana, arbitrum)
marginPercentQueryNoCustom margin percent (0.0 to 5.0). Net payout adjusts dynamically.
curl -sS "https://swap-api.mehrnet.com/api/v1/quote?from=BTC&to=ETH&amount=0.1&marginPercent=1.0" \
  -H "x-api-key: 3484700130:AtMlk9K8nt1UUmwcLn21C9V61fO8evfIfkys"
{
  "success": true,
  "quote": {
    "depositAmount": 0.1,
    "settleAmount": 2.845120,
    "rate": 28.4512,
    "min": 0.002,
    "max": 5.0,
    "type": "fixed",
    "validUntil": 1775225400000
  }
}

Create Swap Order

Initiate a non-custodial exchange order with your deposit pair and destination settlement address.

Returns a unique blockchain deposit address and order tracking ID. Swaps automatically execute as soon as your deposit confirms.

POST/api/v1/orders

Request Body (JSON)

FieldTypeRequiredDescription
fromCoinStringYesSource coin symbol (e.g. BTC)
fromNetworkStringNoSource network (e.g. bitcoin)
toCoinStringYesSettlement coin symbol (e.g. ETH)
toNetworkStringNoSettlement network (e.g. ethereum)
amountNumberYesDeposit amount to exchange
settleAddressStringYesRecipient wallet destination address
marginPercentNumberNoCustom partner profit margin (0.0 to 5.0). Accrues directly to your unpaid balance.
settleMemoStringNoDestination memo / extra ID if required (e.g. TON, XRP)
refundAddressStringNoWallet address for automated refunds in case of expiry
curl -sS -X POST "https://swap-api.mehrnet.com/api/v1/orders" \
  -H "Content-Type: application/json" \
  -H "x-api-key: 3484700130:AtMlk9K8nt1UUmwcLn21C9V61fO8evfIfkys" \
  -d '{
    "fromCoin": "BTC",
    "fromNetwork": "bitcoin",
    "toCoin": "ETH",
    "toNetwork": "ethereum",
    "amount": 0.1,
    "settleAddress": "0x71C...b88",
    "marginPercent": 1.0
  }'
{
  "success": true,
  "order": {
    "orderId": "SWP01M41BXJKMXR2CAZKC36M7DDKN",
    "depositAddress": "bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh",
    "depositAmount": 0.1,
    "settleAmount": 2.845120,
    "status": "waiting",
    "expiresAt": 1775225400000
  }
}

Track Swap Status

Poll blockchain confirmations, deposit verification, backend exchange, and settlement payout broadcast.

Returns the live status timeline: waiting → confirming → exchanging → sending → completed.

GET/api/v1/orders/{orderId}

Parameters

ParameterInRequiredDescription
orderIdPathYesUnique swap order ID (e.g. SWP01M41BXJKMXR2CAZKC36M7DDKN)
curl -sS "https://swap-api.mehrnet.com/api/v1/orders/SWP01M41BXJKMXR2CAZKC36M7DDKN"
{
  "success": true,
  "order": {
    "orderId": "SWP01M41BXJKMXR2CAZKC36M7DDKN",
    "status": "completed",
    "depositAmount": 0.1,
    "settleAmount": 2.845120,
    "depositTx": "3f7a1b...c92",
    "payoutTx": "0x9d4e...a55",
    "updatedAt": 1775224950000
  }
}

Partner Account & Earnings

Inspect your affiliate commission margin, accrued unpaid earnings, lifetime swap volume, and account tier.

Requires authentication with your {accountId}:{accountHash} key in the x-api-key request header.

GET/api/v1/account

Headers

HeaderTypeRequiredDescription
x-api-keyStringYesCombined API Key (format: {accountId}:{accountHash})
curl -sS "https://swap-api.mehrnet.com/api/v1/account" \
  -H "x-api-key: 3484700130:AtMlk9K8nt1UUmwcLn21C9V61fO8evfIfkys"
{
  "success": true,
  "account": {
    "accountId": "3484700130",
    "status": "active",
    "marginPercent": 0.5,
    "unpaidBalance": 142.50,
    "totalSwaps": 28,
    "totalVolume": 18500.00
  }
}
Full OpenAPI Specification: View openapi.json

Admin Management Console

Backend routing telemetry, provider breakdown (SideShift & ChangeNow), and account maintenance.

Authenticate as Administrator