# Native bridge (XMR1 and ZEC1)

> Bridge Monero and Zcash to Hyperliquid as XMR1 and ZEC1 and back with the Wagyu API, with live fees, minimums, availability and request examples.

The native bridge turns a native coin into its wrapped version on Hyperliquid, and back:

- A **deposit** sends native XMR or ZEC and mints **XMR1** or **ZEC1** to a Hyperliquid address.
- A **withdrawal** sends XMR1 or ZEC1 back and pays out native XMR or ZEC.

Bridge orders work like swaps: you create one, the user funds it, you track it until it ends. The [lifecycle](https://docs.wagyu.xyz/order-lifecycle.md) and [deposit rules](https://docs.wagyu.xyz/deposits.md) apply.

## Availability, fees and minimums

| Pair | asset | Deposit (mint) | Withdraw (redeem) | Deposit fee | Withdrawal fee | Minimum |
| --- | --- | --- | --- | --- | --- | --- |
| XMR ↔ XMR1 | `xmr` | On | On | 0% | 2% | 0.01 XMR |
| TRX ↔ TRX1 | `trx` | Off | Off | 0% | 2% | 5 TRX |
| ZEC ↔ ZEC1 | `zec` | On | On | 0% | 2% | 0.0001 ZEC |

_Live from `GET /v2/bridges/terms`, read when this page was built (12 Nov 2026, 18:11 UTC)._

- Each asset is switched on or off independently, per direction. An asset stays listed while it is off (with its fees and minimum), so a picker can grey it out instead of hiding it.
- Fees are fractions in `GET /v2/bridges/terms`: deposits cost 0% and withdrawals 2% right now.
- The **minimum** applies to the gross amount sent, in both directions, and fees are taken from it. Sending exactly the minimum settles.
- Read `GET /v2/bridges/terms` when you create an order. Do not hard-code an asset as available because it worked earlier.

Creating an order for an asset or direction that is switched off answers `503` with `code: "unavailable"`. That is a temporary refusal about Wagyu's configuration, not a problem with your request: do not treat it as a validation error.

## Quote an amount

`GET /v2/bridges/quote` returns the net amount for a gross amount, in atomic units. This is 1 XMR1 withdrawn back to XMR:

<!-- curl -->
```bash
curl 'https://api-beta.wagyu.xyz/v2/bridges/quote?asset=xmr&direction=withdraw&amount=1000000000000'
```

<!-- JavaScript -->
```javascript
const res = await fetch('https://api-beta.wagyu.xyz/v2/bridges/quote?asset=xmr&direction=withdraw&amount=1000000000000'
);
const data = await res.json();
```

<!-- Python -->
```python
import requests

res = requests.get('https://api-beta.wagyu.xyz/v2/bridges/quote?asset=xmr&direction=withdraw&amount=1000000000000', timeout=30)
data = res.json()
```

<!-- Response · 200 · captured 12 Nov 2026, 18:11 UTC -->
```json
{
  "asset": "xmr",
  "direction": "withdraw",
  "grossAtomic": "1000000000000",
  "netAtomic": "980000000000",
  "feeAtomic": "20000000000",
  "flatFeeAtomic": "0",
  "percentFeeAtomic": "20000000000",
  "feePercent": 2,
  "minimumAtomic": "10000000000",
  "belowMinimum": false,
  "available": true
}
```

- `belowMinimum: true` means the amount is under `minimumAtomic`; the net and fee fields are then `null`.
- `available: false` means that asset or direction is off right now.
- For withdrawals you may pass `senderAddress`, the Hyperliquid address sending the wrapped asset, so the quote can apply that sender's fee override. The settled amount is still computed from what actually arrives.

## Create a deposit (XMR or ZEC → XMR1 or ZEC1)

<!-- Creates a real order -->
```bash
curl -X POST 'https://api-beta.wagyu.xyz/v2/bridges' \
  -H 'content-type: application/json' \
  -d '{ "asset": "xmr", "direction": "deposit", "toAddress": "<Hyperliquid address to receive XMR1>" }'
```

The response is the bridge order: save its `orderId` and private `sessionId`, and show its deposit address. A deposit order needs no amount: the wrapped amount follows what arrives.

## Create a withdrawal (XMR1 or ZEC1 → XMR or ZEC)

<!-- Creates a real order -->
```bash
curl -X POST 'https://api-beta.wagyu.xyz/v2/bridges' \
  -H 'content-type: application/json' \
  -d '{ "asset": "zec", "direction": "withdraw", "toAddress": "<Zcash address to receive ZEC>" }'
```

Withdrawals are also amountless at creation. The payout is computed from the wrapped amount actually observed, never from an amount the client claims. Show the order's funding instruction rather than assuming an address or amount.

### Zcash withdrawal addresses

| Address type | Accepted |
| --- | --- |
| Unified (`u1…`) | Yes |
| Sapling (`zs1…`) | Yes |
| Transparent (`t1…`, `t3…`) | Yes |
| TEX (`tex1…`) | No: it requires transparent-source funds |

For Zcash deposit addresses and the mining-payout warning, see [Deposits and refunds](https://docs.wagyu.xyz/deposits.md#zcash-deposit-addresses).

## Track and recover

Read bridge orders with `GET /v2/bridges/{id}` and the owner session, or follow them on the `/v2/bridges/{id}/events` [WebSocket](https://docs.wagyu.xyz/live-updates.md). When present, `bridgeSettlement.input` and `bridgeSettlement.output` are the authoritative settlement amounts. For a failed or expired order that asks for one, submit a refund address with `PUT /v2/orders/{id}/refund-address`.

`fees.withdrawalFlat` in the terms is keyed by asset (`{ xmr, trx, zec }`). `withdrawalFlatXmr` and `withdrawalFlatTrx` remain for older clients.

---
Source: https://docs.wagyu.xyz/native-bridge · Built from the live Wagyu API on 2026-11-12.
