Create Bridge Swap Transaction

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

Parameters

Parameter Type Description
bridgeId string (enum) The unique ID to specify the bridge protocol for routing cross-chain queries or transactions. Find more here. Allowed: 100, 600, 300, 400, 500
srcTokenSymbol string Symbol of the token to swap.
dstChainId string (required) The unique chain ID to specify the destination chain. Find more here.
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.
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 string (enum) The batch option to be used for the transaction. 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.
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.

Example Request

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

Response

Additional Information