| Time | Status | User Agent |  |
| :-- | :-- | :-- | :-- |
| Make a request to see history. |

#### URL Expired

The URL for this request expired after 30 days.

### The request body for a /defi/v1/bridge/swaps

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).

---

srcChainSymbol

string

Symbol of the source chain.

---

srcTokenSymbol

string

Symbol of the token to swap.

---

dstTokenSymbol

string

Symbol of the token to be received after the swap.

---

amountIn

string

required

Amount of the token to be swapped.

---

srcTokenAddress

string

Address of the source token.

---

dstTokenAddress

string

Address of the destination token.

---

from

string

required

Address of the sender of the token.

---

gas

string

Maximum gas to be approved for the transaction.

---

to

string

required

Address of the recipient of the token.

---

excludedBridges

string

Comma-separated values of bridges to exclude.

---

bestNetPrice

boolean

If true, sorts prepared transactions by net value (amountsOut minus gas) in descending order. If multiple sort parameters are true, bestNetPrice takes precedence.

---

bestQuote

boolean

If true, sorts prepared transactions by amountsOut in descending order. If multiple sort parameters are true, bestNetPrice takes precedence.

---

lowestGas

boolean

If true, sorts prepared transactions by gas cost in ascending order. If multiple sort parameters are true, bestNetPrice takes precedence.

---

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

string

enum

undefined

Allowed:

`EIP-5792``EIP-7702`

---

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.

### Successful response

### Shell

```
curl --request POST \
     --url https://svc.blockdaemon.com/defi/v1/bridge/swaps \
     --header 'accept: application/json' \
     --header 'content-type: application/json'
```
