Create Bridge Swap Transaction with Approval
| 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/swap-with-approval
| Parameter | Type | Required | Description |
|---|---|---|---|
| bridgeId | string | Yes | The unique ID to specify the bridge protocol for routing cross-chain queries or transactions. Find more here. |
| srcChainId | string | Yes | The unique chain ID to specify the source chain. Find more here. |
| dstChainId | string | Yes | The unique chain ID to specify the destination chain. Find more here. |
| srcTokenSymbol | string | Yes | Symbol of the token to swap. |
| dstTokenSymbol | string | Yes | Symbol of the token to be received after the swap. |
| srcTokenAddress | string | Yes | Address of the source token. |
| dstTokenAddress | string | Yes | Address of the destination token. |
| amountIn | string | Yes | Amount of the token to be swapped. |
| amountOutMin | string | Yes | Minimum amount accepted as the result of the swap. |
| from | string | Yes | Address of the token sender. |
| to | string | Yes | Address of the token recipient. |
| gasPriority | string | No | Specifies the priority level for gas fees (e.g., 'low', 'medium', or 'high'), which influences the transaction speed and cost. |
| slippage | string | No | Percentage of the total swap value. Defaults to 1. Valid range: 0 <= slippage <= 100. |
| enableFee | boolean | No | Flag to include a basis points fee transaction alongside the main transaction when set to true. |
| batchOption | string | No | The batch option to be used for the transaction. Allowed: EIP-5792, EIP-7702 |
| batcherContract | string | No | 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 | No | Maximum gas to be approved for the transaction. |
| srcChainSymbol | string | No | Symbol of the source chain. |
Response Codes
200 Success
curl --request POST \
--url https://svc.blockdaemon.com/defi/v1/bridge/swap-with-approval \
--header 'accept: application/json' \
--header 'content-type: application/json'
Click Try It! to start a request and see the response here! Or choose an example:
{
"status": "200",
"message": "Updated 2 months ago"
}