---
title: "Create Bridge Swap Transaction"
method: POST
path: "/defi/v1/bridge/swap"
tags: ["bridge"]
---

# Create Bridge Swap Transaction

`POST /defi/v1/bridge/swap`

Enables seamless, cross-chain token exchanges by swapping assets between supported blockchain networks. This endpoint processes the swap transaction securely and efficiently, converting tokens from one chain to another while managing the necessary transaction parameters. The response provides key details—including source and destination chain IDs, sender and receiver addresses, transferred value, gas specifications, and a unique reference ID—allowing developers and users to verify and track the swap transaction.

> 💡 
**Compute Unit Value:** `80` (Fixed)

## Request body

- BridgeSwapRequest — The request body for a /defi/v1/bridge/swap
  - `bridgeId` '100' | '600' | '300' | '400' | '500' — The unique ID to specify the bridge protocol for routing cross-chain queries or transactions. Find more [here](https://docs.blockdaemon.com/docs/defi-api-supported-protocols#supported-bridges-protocols).
  - `srcTokenSymbol` string — Symbol of the token to swap.
  - `dstChainId` string, required — The unique chain ID to specify the destination chain. Find more [here](https://docs.blockdaemon.com/docs/defi-api-supported-protocols#supported-chains).
  - `amountIn` string, required — Amount of the token to be swapped.
  - `from` string, required — Address of the token sender.
  - `amountOutMin` string — Minimum amount accepted as the result of the swap.
  - `gas` string — Maximum gas to be approved for the transaction.
  - `to` string, required — Address of the token recipient.
  - `dstTokenSymbol` string — Symbol of the token to be received after the swap.
  - `srcChainId` string, required — The unique chain ID to specify the source chain. Find more [here](https://docs.blockdaemon.com/docs/defi-api-supported-protocols#supported-chains).
  - `srcChainSymbol` string — Symbol of the source chain.
  - `srcTokenAddress` string — Address of the source token.
  - `dstTokenAddress` string — Address of the destination token.
  - `slippage` string — Percentage of the total swap value. Defaults to 1. Valid range: 0 <= slippage <= 100.
  - `gasPriority` string — Specifies the priority level for gas fees (e.g., 'low', 'medium', or 'high'), which influences the transaction speed and cost.
  - `enableFee` boolean — Flag to include a basis points fee transaction alongside the main transaction when set to true.
  - `batchOption` 'EIP-5792' | 'EIP-7702' — The batch option to be used for the transaction.
  - `batcherContract` string — The EOA address of the batcher that will be used to execute the transaction when using EIP-7702 batching. If not provided, the default batcher contract for the chain will be used.
  - `transferMode` string — Specifies the mode of token transfer. The first is taxi, where tokens are sent to the destination chain at the moment of swap. The second is bus ride. Bus ride means that multiple user swaps are batched together.

## Response `200`

Successful response

- object
  - `status` number — Numeric status code indicating success or failure of the API call
  - `msg` string — Human-readable message describing the API result or error
  - `data` union
    - object
      - `chainId` string, required — Blockchain network identifier (EVM chain ID, Solana chain name, etc.)
      - `from` string, required — Sender's wallet address
      - `to` string — Recipient's wallet address
      - `value` string — Amount being transferred or involved in a transaction
      - `gas` string — Gas limit for the transaction
      - `gasPrice` string — Price per gas unit for the transaction
      - `data` string, required — Main payload object or array returned by the API
      - `estimationCheck` union — Flag or value indicating transaction fee/estimate status
        - string
        - boolean
      - `referenceId` string, required — Unique ID for tracking a specific transaction or operation
    - object
      - `createFeeTxn` object, required
        - `chainId` string, required — Blockchain network identifier (EVM chain ID, Solana chain name, etc.)
        - `from` string, required — Sender's wallet address
        - `to` string, required — Recipient's wallet address
        - `value` string, required — Amount being transferred or involved in a transaction
        - `gasPrice` string — Price per gas unit for the transaction
        - `gas` string, required — Gas limit for the transaction
      - `swapTxn` object, required
        - `chainId` string, required — Blockchain network identifier (EVM chain ID, Solana chain name, etc.)
        - `from` string, required — Sender's wallet address
        - `to` string — Recipient's wallet address
        - `value` string — Amount being transferred or involved in a transaction
        - `gas` string — Gas limit for the transaction
        - `gasPrice` string — Price per gas unit for the transaction
        - `data` string, required — Main payload object or array returned by the API
        - `estimationCheck` union — Flag or value indicating transaction fee/estimate status
          - string
          - boolean
        - `referenceId` string, required — Unique ID for tracking a specific transaction or operation
    - object
      - `from` string, required
      - `chainId` string, required
      - `referenceId` string, required
      - `methodUsed` 'EIP-5792' | 'EIP-7702', required
      - `calls` object[], required
        - `to` string, required
        - `value` string, required
        - `data` string, required

---

[API](https://skmtc.dev/blockdaemon/apis/staking-api.md) · [All operations](https://skmtc.dev/blockdaemon/apis/staking-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/blockdaemon/staking-api/revisions/f94e296a08a3/schema)
