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

# Create Bridge Swap Transaction with Approval

`POST /defi/v1/bridge/swap-with-approval`

Generates both token approval and swap transactions in a single call with configurable slippage protection.

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

## Request body

- BridgeSwapwithapprovalRequest — The request body for a /defi/v1/bridge/swap-with-approval
  - `bridgeId` '600' | '300' | '400' | '100' | '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).
  - `srcChainId` string — The unique chain ID to specify the source chain. Find more [here](https://docs.blockdaemon.com/docs/defi-api-supported-protocols#supported-chains).
  - `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).
  - `srcTokenSymbol` string — Symbol of the token to swap.
  - `dstTokenSymbol` string — Symbol of the token to be received after the swap.
  - `srcTokenAddress` string — Address of the source token.
  - `dstTokenAddress` string — Address of the destination token.
  - `amountIn` string, required — Amount of the token to be swapped.
  - `amountOutMin` string — Minimum amount accepted as the result of the swap.
  - `from` string, required — Address of the token sender.
  - `to` string, required — Address of the token recipient.
  - `gasPriority` string — Specifies the priority level for gas fees (e.g., 'low', 'medium', or 'high'), which influences the transaction speed and cost.
  - `slippage` string — Percentage of the total swap value. Defaults to 1. Valid range: 0 <= slippage <= 100.
  - `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.
  - `gas` string — Maximum gas to be approved for the transaction.
  - `srcChainSymbol` string — Symbol of the source chain.

## 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, required — Recipient's wallet address
      - `gas` string, required — Gas limit for the transaction
      - `value` string, required — Amount being transferred or involved in a transaction
      - `data` string, required — Main payload object or array returned by the API
      - `referenceId` string, required — Unique ID for tracking a specific transaction or operation
      - `gasPrice` string — Price per gas unit for the transaction
    - 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
      - `swapWithApproveTxn` 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
        - `gas` string, required — Gas limit for the transaction
        - `value` string, required — Amount being transferred or involved in a transaction
        - `data` string, required — Main payload object or array returned by the API
        - `referenceId` string, required — Unique ID for tracking a specific transaction or operation
        - `gasPrice` string — Price per gas unit for the transaction
    - 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)
