✍️Get Crypto Swap Amount Out
Get crypto swap amount out using our APIs
This endpoint helps you get the amount you will receive on swap even before initiating the swap
Crypto Swap Amount Out API
POST
https://api.lazerpay.engineering/api/v1/swap/crypto/amount-out
Headers
Name | Type | Description |
---|---|---|
Authorization* | String | Bearer YOUR_SECRET_KEY |
Request Body
Name | Type | Description |
---|---|---|
amount* | String | Number | The amount you want to send out |
from_coin* | String | Crypto you want to swap from |
blockchain* | String | The blockchain network you are sending to |
to_coin* | String | Crypto you want to swap to |
Example : NodeJS - Request
Important things to note
The
blockchain
field must be"Binance Smart Chain"
.The
from_coin
field must either be "BUSD", "DAI", "USDT", or "USDC".The
to_coin
field must either be "BUSD", "DAI", "USDT", or "USDC".Also
to_coin
andfrom_coin
cannot be the same
we only support the Binance smart chain for swaps. we will add more networks in the future.
Last updated