Create Bridge Swap Transaction with Approval

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

Compute Unit Value: 110 (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-with-approval

string
enum

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

Allowed:
string

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

string
required

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

string

Symbol of the token to swap.

string

Symbol of the token to be received after the swap.

string

Address of the source token.

string

Address of the destination token.

string
required

Amount of the token to be swapped.

string

Minimum amount accepted as the result of the swap.

string
required

Address of the token sender.

string
required

Address of the token recipient.

string

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

string

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

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

Maximum gas to be approved for the transaction.

string

Symbol of the source chain.

Response

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