Skip to main content
POST

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

network
enum<string>

Network on which the operation will be performed

Available options:
testnet,
mainnet

Body

application/json

Data required to build the quote

quote
object
required

The quote to build the XDR for

from
string

The wallet address that will send the funds

to
string

The wallet address that will receive the funds. If Gasless Trustline Swap is enabled, this is the wallet address must be the same as the from address (hence, don't provide this parameter)

referralId
string

Ignored. Fee destinations are no longer caller-supplied; the value you send is recorded so Soroswap can propose your payout address.

sponsor
string

The wallet address that will sponsor the transaction. Only required for Gasless Trustline Swap and Soroban sponsored transactions

signedUserXdr
string

The signed transaction XDR from Step 1 of Soroban sponsored transactions. Required for Step 2 when sponsor is provided for non-SDEX platforms.

Response

XDR built successfully

xdr
string

Transaction XDR ready for signing and execution

Example:

"AAAAAgAAAAB8shYDi1JO9x2/3jMeVzK2IGtrsFVWLCL4uHRJf+YPyAAAA+gCzi7HAAAApgAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAGAAAAAAAAAABc12cL..."