Using the swap method, you can get directly a depositAddress, amountToSend, exchangeId and extraFields optionally to manually make transfer on wallet of selected deposit provider, obtained on previous step. You can check available request params here.
Here is an example of a data request for swapping 50 USDT on Solana to USDT on Ethereum:
Swap request params
Required params
Field
Type
Description
Example
srcTokenAddress*
string
Source token address
0x0000000000000000000000000000000000000000
srcTokenBlockchain*
string
Source token blockchain
ETH
srcTokenAmount*
string
Source token amount with decimals
1.05
dstTokenAddress*
string
Destination token address
0x0000000000000000000000000000000000000000
dstTokenBlockchain*
string
Destination token blockchain
POLYGON
referrer*
string
Referrer address
rubic.exchange
fromAddress*
string
Wallet address to make tx from
0x0000000000000000000000000000000000000000
id*
string
Trade identifier obtained on quote step
08df660f-49e5-42fd-a1f1-cdf0af5eac4c
Optional params
Field
Type
Description
Example
nativeBlacklist
string[]
Native providers to exclude from calculation
["xy", "symbiosis"]
showFailedRoutes
boolean
Show failed routes in response or not
false
integratorAddress
string
Integrator address to set fees
Get the address from our BD team
slippage
number
minimum: 0.01
maximum: 0.5
Slippage tolerance in percents for trade, 0.01 equals 1%
0.02
preferredProvider
string
Preferred provider for calculation
lifi
foreignBlacklist
{
lifi?: string[];
rango?: string[];
}
Foreign providers to exclude from calculation
{
lifi: ["stargate"]
}
timeout
number
minimum: 5
maximum: 60
Calculation timeout in seconds
32
enableTestnets
boolean
Include testnet in calculations
false
enableChecks
boolean
Should we perform transaction simulation and wallet checks or no
default: true
false
Required params for swapDepositTrade
Field
Type
Description
Example
srcTokenAddress*
string
Source token address
0x0000000000000000000000000000000000000000
srcTokenBlockchain*
string
Source token blockchain
SOLANA
srcTokenAmount*
string
Source token amount with decimals
50
dstTokenAddress*
string
Destination token address
0x0000000000000000000000000000000000000000
dstTokenBlockchain*
string
Destination token blockchain
ETH
referrer*
string
Referrer address
rubic.exchange
id*
string
Trade identifier obtained on quote step
e88fad3f-70db-4901-a14e-caa140d27805
receiver*
string
Receipient wallet in target chain
0x1b3cB81E51011b549d78bf720b0d924ac763A7C2
Optional params for swapDepositTrade
Field
Type
Description
Example
nativeBlacklist
string[]
Native providers to exclude from calculation
["xy", "symbiosis"]
showFailedRoutes
boolean
Show failed routes in response or not
false
integratorAddress
string
Integrator address to set fees
Get the address from our BD team
slippage
number
minimum: 0.01
maximum: 0.5
Slippage tolerance in percents for trade, 0.01 equals 1%
0.02
preferredProvider
string
Preferred provider for calculation
lifi
foreignBlacklist
{
lifi?: string[];
rango?: string[];
}
Foreign providers to exclude from calculation
{
lifi: ["stargate"]
}
timeout
number
minimum: 5
maximum: 60
Calculation timeout in seconds
32
enableTestnets
boolean
Include testnet in calculations
false
enableChecks
boolean
Should we perform transaction simulation and wallet checks or no
default: true