Returns calldata for the wallet to sign. Forest never holds funds.
Returns calldata for the wallet to sign. Forest never holds funds.
buy = BNB to token, sell = token to BNB
Value in
Amount to pay, in base units (wei)
^[1-9]\d{0,77}$Wallet that will sign the swap
^0x[a-fA-F0-9]{40}$Slippage tolerance in percent, e.g. 0.5
0.01 <= value <= 50application/json
curl -X GET "https://example.com/tokens/string/external-swap/transaction?side=buy&amount=string&wallet=string&slippagePercent=0.01"{ "to": "string", "data": "string", "value": "string", "toTokenAmount": "string", "minReceiveAmount": "string", "approveAddress": "string"}