Convert Coins

API POST Fields (in addition to the Main Fields described in the Introduction)

Field NameDescriptionRequired?
Convert Coins
cmdconvertYes
amountThe amount convert in the 'from' currency below.Yes
fromThe cryptocurrency in your Coin Wallet to convert from. (BTC, LTC, etc.)Yes
toThe cryptocurrency to convert to. (BTC, LTC, etc.)Yes
addressThe address to send the funds to. If blank or not included the coins will go to your CoinPayments Wallet.No
dest_tagThe destination tag to use for the withdrawal (for Ripple.) If 'address' is not included this has no effect.No

API Response

A successful call to the 'convert' command will give you a result similar to this (JSON):
{
   "error":"ok",
   "result":{
      "id":"61588"
   }
}