Create Bridge Swap Transaction

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)

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params

The request body for a /defi/v1/bridge/swap

string
enum

The unique ID to specify the bridge protocol for routing cross-chain queries or transactions. Find more here.

Allowed:
string

Symbol of the token to swap.

string
required

The unique chain ID to specify the destination chain. Find more here.

string
required

Amount of the token to be swapped.

string
required

Address of the token sender.

string

Minimum amount accepted as the result of the swap.

string

Maximum gas to be approved for the transaction.

string
required

Address of the token recipient.

string

Symbol of the token to be received after the swap.

string
required

The unique chain ID to specify the source chain. Find more here.

string

Symbol of the source chain.

string

Address of the source token.

string

Address of the destination token.

string

Percentage of the total swap value. Defaults to 1. Valid range: 0 <= slippage <= 100.

string

Specifies the priority level for gas fees (e.g., 'low', 'medium', or 'high'), which influences the transaction speed and cost.

boolean

Flag to include a basis points fee transaction alongside the main transaction when set to true.

string
enum

The batch option to be used for the transaction.

Allowed:
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.

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

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json