> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.0x.org/llms.txt.
> For full documentation content, see https://docs.0x.org/llms-full.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.0x.org/_mcp/server.

# Understanding Bridging Costs

> All the costs related to executing a cross-chain swap, and where each appears in the quote response.

The 0x Cross-Chain API is in private beta. [Request access](https://0x.org/products/cross-chain) to start building.

This page explains all the costs related to executing a cross-chain swap, and where each of the costs appears in the quote response.

## The `fees` Object

Each quote includes a `fees` object breaking down the explicit costs:

```json
{
  "fees": {
    "integratorFees": [{ "amount": "5000000", "token": "0xUSDC...", "type": "volume" }],
    "zeroExFee": { "amount": "2500000", "token": "0xUSDC...", "type": "volume" },
    "bridgeNativeFee": {
      "amount": "1500000000000000",
      "token": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
      "type": "native"
    }
  }
}
```

### Integrator Fees (`integratorFees`)

Fees you collect as the integrator. Only present when `feeBps` and `feeRecipient` are passed in the request. Deducted from `sellAmount`. See [Monetize Your App](/docs/cross-chain-api/guides/monetize-your-app) for setup instructions.

### 0x Fee (`zeroExFee`)

Fee collected by the 0x API. Deducted from `sellAmount`. Null when not applicable.

### Bridge Native Fee (`bridgeNativeFee`)

A fee charged by the bridge provider in the chain's native token for cross-chain messaging infrastructure. It is **not** deducted from the `sellAmount`. Instead, it is added to the transaction's `value` field on EVM chains and it is paid by the user in native tokens, additionally to the `sellAmount`. It will be null when the bridge doesn't charge it.

| Bridge          | What it covers                                   |
| --------------- | ------------------------------------------------ |
| Stargate V2     | LayerZero messaging fee + destination native gas |
| OFT (LayerZero) | LayerZero messaging fee                          |
| CCIP            | Chainlink message fee                            |
| Linea Bridge    | Postman fee (message relay)                      |
| Arbitrum Bridge | Retryable ticket gas deposit                     |

All other bridges do not charge a native fee. Make sure to always inspect `bridgeNativeFee` in response, as the list of bridges that charge an extra native fee might change in the future.

### Internal Bridge Fees

All bridge providers can also charge their own internal fees (spreads, relayer fees, etc.) for facilitating the cross-chain transfer. These are already factored into `buyAmount` and `minBuyAmount` in the quote and they are not shown separately in the `fees` object.

## Gas Costs

The quote includes a `gasCosts` object estimating the transaction cost on the origin chain. The shape depends on chain type:

### EVM

```json
{ "chainType": "evm", "gasPrice": "30000000000", "gasLimit": "250000", "totalNetworkFee": "7500000000000000" }
```

| Field             | Unit      | Description                                                                                              |
| ----------------- | --------- | -------------------------------------------------------------------------------------------------------- |
| `gasPrice`        | wei       | Gas price per unit.                                                                                      |
| `gasLimit`        | gas units | Estimated gas required.                                                                                  |
| `totalNetworkFee` | wei       | Total cost. On rollups it includes L1 data posting fee and it will be higher than `gasPrice * gasLimit`. |

### Solana (SVM)

```json
{ "chainType": "svm", "base": "5000", "priority": "100000", "total": "105000" }
```

All values in **lamports** (1 SOL = 1,000,000,000 lamports).

### Tron (TVM)

```json
{ "chainType": "tvm", "energyFee": "4200000", "bandwidthFee": "345000", "total": "4545000" }
```

All values in **sun** (1 TRX = 1,000,000 sun).