π°Monetization
How to take fees from the users using Rango Main API?
How Rango affiliate system works?
π°MonetizationHow to set affiliate parameters?
const bestRoute = await rango.getBestRoute({
from: {"blockchain": "BSC", "symbol": "BNB", "address": null},
to: {"blockchain": "AVAX_CCHAIN", "symbol": "USDT.E", "address": "0xc7198437980c041c805a1edcba50c1ce5db95118"},
amount: "1",
slippage: 1,
checkPrerequisites: false,
affiliatePercent: 0.3,
affiliateWallets: {
"BSC": "0x6f33bb1763eebead07cf8815a62fcd7b30311fa3"
},
})curl --request POST \
--url 'https://api.rango.exchange/routing/best?apiKey=c6381a79-2817-4602-83bf-6a641a409e32' \
--header 'content-type: application/json' \
--data '
{
"from": {
"blockchain": "BSC",
"symbol": "BNB"
},
"to": {
"blockchain": "AVAX_CCHAIN",
"symbol": "USDT.E",
"address": "0xc7198437980c041c805a1edcba50c1ce5db95118"
},
"checkPrerequisites": false,
"affiliateWallets": {
"BSC": "0x6f33bb1763eebead07cf8815a62fcd7b30311fa3"
},
"amount": "1",
"affiliatePercent": 0.3,
"slippage": 1
}
'Last updated