API (Interfaz de programación de aplicaciones)

API - Interfaz de programación de aplicaciones.
Todas las solicitudes deben realizarse a través de HTTPS.
Compatible con JSON-RPC. Para usar JSON-RPC, agregue .json al final de la solicitud.

Solicitudes de POST

JSON-RPC es compatible.

Crear un pedido

Puede crear un pedido de intercambio para una dirección de intercambio específica. Puede especificar cuánto necesita enviar o recibir a través de los parámetros deposit_amount o withdrawal_amount.
URL: https://www.alfa.cash/api/create.json
Method: POST

Data required:
{
  "gate_deposit": "Example: 'bitcoin'. Gate column from Direction of the exchange",
  "gate_withdrawal": "Example: 'litecoin'. Gate column from Direction of the exchange",
  "pair": "[DEPRECATED] Example: 'BTC_LTC'. Direction of the exchange, defined in the form [source_currency_code]_[destination_currency_code].",
  "deposit_amount": "(Optional) example: '4.953', fixed deposit amount you'd like to send for an exchange.",
  "withdrawal_amount": "(Optional) example: '6.431', fixed withdrawal amount you'd like to get after an exchange is made.",
  "email": "Example: '[email protected]'",
  "options": "Example: {'address': '1FgThhtLdSM1i78vXHGovA3WxzbTWA2mse'}, this array of parameters depends on source_currency_code.",
  "r_uid": "(Optional) example: '2f777791', Affiliate Program ID.",
  "promo_code": "(Optional) example: 'ALFACODE'."
}
Success Output example:
{
  "secret_key": "Example: '11fb9a42045b0bf35ef40b8e96e45ebe', your order unique secret key which is used to track your order's status.",
  "deposit": "(JSON Object) depending on deposit coin, there will be deposit address, array structure is the same as options.",
  "deposit_amount": "Amount you'd need to send to complete an exchange.",
  "withdrawal_amount": "Amount you'd receive upon completing exchange",
  "order_id": "Unique order id in our system"

}
Error Output example:
{"error": "Missing required argument pair"}
cURL (example):
curl -X POST https://www.alfa.cash/api/create.json \
     -H "Content-Type:application/json" \
     --data '{"gate_deposit":"bitcoin","gate_withdrawal":"litecoin","deposit_amount":"1.4561","email":"[email protected]","options":{"address":"mnD8wHZKfdSwoKyW4H44spK2MqGAEXNbG9"}}'
Response (example):
{
  "secret_key": "fdce47f91e4b28c50e9f08beb4e43dee",
  "deposit": {"address":"n1S9pzENwn3QQgHcCE3afyxVrL57798eA2"},
  "deposit_amount": 0.00827399,
  "withdrawal_amount": 0.87673802,
  "order_id": "581572"
}

Obtener el tipo de cambio actual

Este método muestra la tasa de cambio actual entre las monedas que se elijan en el par en este momento. La tasa de cambio puede cambiar rápidamente dependiendo del mercado.
URL: https://www.alfa.cash/api/rate.json
Method: POST

Data required:
{
  "gate_deposit": "Example: 'bitcoin'. Gate column from Direction of the exchange",
  "gate_withdrawal": "Example: 'litecoin'. Gate column from Direction of the exchange",
  "pair": "[DEPRECATED] Example: 'BTC_LTC', direction of the exchange, defined in the form [source_currency_code]_[destination_currency_code].",
  "deposit_amount": "(Optional) example: '4.952', fixed deposit amount you'd like to send for an exchange.",
  "withdrawal_amount": "(Optional) example: '6.431', fixed withdrawal amount you'd like to get after an exchange is made.",
  "promo_code_discount": "(Optional) example: '10', discount percent returned from promo code validation."
}
Success Output example:
{"gate_deposit": "bitcoin", "gate_withdrawal": "litecoin", "pair": "BTC_LTC", "rate": 1.213456}
Error Output example:
{"error": "Invalid pair"}
cURL (example):
curl -X POST https://www.alfa.cash/api/rate.json \
     -H "Content-Type:application/json" \
     --data '{"gate_deposit": "bitcoin", "gate_withdrawal": "litecoin"}'
Response (example):
{"gate_deposit": "bitcoin", "gate_withdrawal": "litecoin", "pair": "BTC_LTC", "rate": "108.82046494"}

Validar dirección

Verifique la dirección que especificó/la cuenta monetaria específica con parámetros adicionales como destination_tag, message o payment_id.
URL: https://www.alfa.cash/api/validateaddress.json
Method: POST

Data required:
{
  "gate_withdrawal": "Gate", // example: "bitcoin", Direction of the exchange
  "currency": "[DEPRECATED] Currency", // example: "BTC", Currency Codes
  "options": "Example: {'address': '1FgThhtLdSM1i78vXHGovA3WxzbTWA2mse'} This array of parameters depends on source_currency_code" // array of params
}
Success Output example:
{"valid": "true"}
Error Output example:
{"error": "Invalid payment_id"}
cURL (example):
curl -X POST https://www.alfa.cash/api/validateaddress.json \
>      -H "Content-Type:application/json" \
>      --data '{"gate_withdrawal":"stellar","options":{"account":"GAKUWGKLFUDBCS2JHZUTRUPXL5Q7C3KC2XXEGLK2J6JBILD2HYBYD55H","memo":"b5db89975bc958fa"}}'
Response (example):
{"valid": true}

Promo Code Validation

Validates Promo Code for specific exchange direction (pair).
URL: https://www.alfa.cash/api/promo_code.json
Method: POST

Data required:
{
  "code": "Example: 'ALFACODE'",
  "gate_deposit": "Example: 'bitcoin'. Gate column from Direction of the exchange",
  "gate_withdrawal": "Example: 'litecoin'. Gate column from Direction of the exchange",
  "pair": "[DEPRECATED] Example: 'BTC_LTC', direction of the exchange, defined in the form [source_currency_code]_[destination_currency_code].",
}
Success Output example:
{"discount": "10"}
Error Output example:
{"error": "Invalid Promo Code"}
cURL (example):
curl -X POST https://www.alfa.cash/api/promo_code.json \
     -H "Content-Type:application/json" \
     --data '{"code":"ALFACODE","gate_deposit": "bitcoin", "gate_withdrawal": "litecoin"}'
Response (example):
{"discount": "10"}

OBTENER Solicitudes

Tanto REST como JSON-RPC son compatibles. Para usar JSON-RPC, agregue .json al final de la solicitud.

Cancelar orden

This method cancels the order.
URL: https://www.alfa.cash/api/cancel/[secret_key]
Method: GET

Data required:
[secret_key] is the secret key of the order, you can get one by creating an order.
Success Output example:
{
  secret_key: "[string] Example: 11fb9a42045b0bf35ef40b8e96e45ebe",
  canceled: "[bool] true/false"
}
Error Output example, can cancel only new and pending order:
{"error": "This operation is not available"}
cURL (example):
curl -X GET https://www.alfa.cash/api/cancel/11fb9a42045b0bf35ef40b8e96e45ebe \
     -H "Content-Type:application/json"
Response (example):
{
    "secret_key": "42e9a2f527e1b914c9448cd0f3901bc2",
    "canceled": true
}

Get Order Status

Esto muestra el estado del pedido y más información.
URL: https://www.alfa.cash/api/status/[secret_key]
Method: GET

Data required:
[secret_key] is the secret key of the order, you can get one by creating an order.
Success Output example:
{
  secret_key: "11fb9a42045b0bf35ef40b8e96e45ebe",
  pair: "BTC_LTC", // deprecated
  status: "completed", // status of the order, check here for possible order statuses
  gate_deposit: "bitcoin",
  gate_withdrawal: "litecoin",
  dest_tx: "914e6e78fd7d9babaf4e256d0f7a0b4c7ccd7ded1823e3a9f38d0dfce3c5d130",
  // withdrawal transaction hash, this field is only displayed for order with completed status
  deposit: "(JSON object) Deposit address or account, and tags",
  withdrawal: "(JSON object) Withdrawal address or account, and tags",
  received_amount: "[double]", // total received amount
  deposit_amount: "[double]", // amount received on deposit address, used for exchange
  withdrawal_amount: "[double]", // amount to sent
  time_created: "[datetime]",
  seconds_remaining: "[int]" // order time remaining before expire
}
Error Output example:
{"error": "Invalid transaction"}
cURL (example):
curl -X GET https://www.alfa.cash/api/status/11fb9a42045b0bf35ef40b8e96e45ebe \
     -H "Content-Type:application/json"
Response (example):
{
    "secret_key": "42e9a2f527e1b914c9448cd0f3901bc2",
    "pair": "BTC_LTC", // deprecated
    "gate_deposit": "bitcoin",
    "gate_withdrawal": "litecoin",
    "status": "new",
    "deposit": {
        "address": "3AtNVzD4Ys8SvyDcbP1HZCGDc7e9qqo2h8"
    },
    "withdrawal": {
        "address": "LYeSuaRrpospcfhDYJyUhwVica7NLNB2hi"
    },
    "received_amount": "0.00000000",
    "deposit_amount": "0.50000000",
    "withdrawal_amount": "74.18250786",
    "time_created": "2019-10-17 12:32:49",
    "seconds_remaining": 4207
}

Get Exchange Limits

Obtenga los límites actuales de depósito y retiro para la dirección de intercambio especificada.
URL: https://www.alfa.cash/api/limit/[gate_deposit]/[gate_withdrawal]
Deprecated URL: https://www.alfa.cash/api/limit/[pair]
Method: GET

Data required:
[gate_deposit] - Example: 'bitcoin'. Gate column from Direction of the exchange
[gate_withdrawal] - Example: 'litecoin'. Gate column from Direction of the exchange
[pair] - [DEPRECATED] Example: "BTC_LTC", direction of the exchange, defined in the form [source_currency_code]_[destination_currency_code].
Success Output example:
{
    "gate_deposit": "bitcoin",
    "gate_withdrawal": "litecoin",
    "pair": "BTC_LTC", // deprecated
    "deposit_min": 0.00251312,
    "deposit_max": 0.62774886,
    "withdrawal_min": 0.37316266,
    "withdrawal_max": 93.29066571,
    "deposit_day_limit": 0,
    "deposit_month_limit": 0,
    "withdrawal_day_limit": 0,
    "withdrawal_month_limit": 0
}
Error Output example:
{"error": "Invalid pair"}
cURL (example):
curl -X GET https://www.alfa.cash/api/limit/bitcoin/litecoin \
     -H "Content-Type:application/json"
Response (example):
{
  "gate_deposit": "bitcoin",
  "gate_withdrawal": "litecoin",
  "pair": "BTC_LTC",
  "deposit_min" : 0.0002764,
  "deposit_month_limit" : 0,
  "withdrawal_day_limit" : 15.503875944955,
  "deposit_day_limit" : 0,
  "withdrawal_min" : 0.01550388,
  "withdrawal_month_limit" : 46.511627834866,
  "withdrawal_max" : 0.98130298,
  "deposit_max" : 0.00901763
}

Supported Currencies List

La lista contiene el nombre, el código de la moneda y el estado de disponibilidad para el depósito y retiro de las monedas admitidas por API.
URL: https://www.alfa.cash/api/getcoins
Method: GET

Success Output example:
{
  "bitcoin":{ // gate
    "currency": "BTC", // currency code
    "title": "Bitcoin", // currency title
    "deposit": true, // is deposit enabled
    "withdrawal": true, // is withdrawal enabled
    "confirmations": 2, // number of confirmations required for a transaction to be accepted, for PoS based coins it will be number of blocks typically
    "decimals": 8, // currency precision, number of decimals
    "explorer_tx_link": "https://www.blockchain.com/btc/tx/%hash%", // link to transaction on block explorer
    "explorer_address_link": "https://www.blockchain.com/btc/address/%address%" // link to address on block explorer
  },
  "litecoin":{
    "currency": "LTC",
    "title": "Litecoin",
    "deposit": false,
    "withdrawal": false,
    "confirmations": 6,
    "decimals": 8,
    "explorer_tx_link": "https://insight.litecore.io/tx/%hash%",
    "explorer_address_link": "https://insight.litecore.io/address/%address%"
  }
}
cURL (example):
curl -X GET https://www.alfa.cash/api/getcoins \
     -H "Content-Type:application/json"
Response (example):
{
  "bitcoin": {
    "currency": "BTC",
    "title": "Bitcoin",
    "deposit": true,
    "withdrawal": true,
    "decimals": 8,
    "confirmations": 2,
    "network": "BTC",
    "explorer_tx_link": "https://blockchair.com/bitcoin/transaction/%hash%",
    "explorer_address_link": "https://blockchair.com/bitcoin/address/%address%"
  },
  "ethereum": {
    "currency": "ETH",
    "title": "Ethereum",
    "deposit": true,
    "withdrawal": true,
    "decimals": 8,
    "confirmations": 12,
    "network": "ETH",
    "explorer_tx_link": "https://etherscan.io/tx/%hash%",
    "explorer_address_link": "https://etherscan.io/address/%address%"
  },
  "smartchain": {
    "currency": "BNB",
    "title": "Binance Smart Chain",
    "deposit": true,
    "withdrawal": true,
    "decimals": 8,
    "confirmations": 15,
    "network": "BSC",
    "explorer_tx_link": "https://bscscan.com/tx/%hash%",
    "explorer_address_link": "https://bscscan.com/address/%address%"
  },
  "tethererc20": {
    "currency": "USDT",
    "title": "ERC-20 Tether",
    "deposit": true,
    "withdrawal": true,
    "decimals": 6,
    "confirmations": 12,
    "network": "ETH",
    "explorer_tx_link": "https://etherscan.io/tx/%hash%",
    "explorer_address_link": "https://etherscan.io/address/%address%"
  },
  "trc20usdt": {
    "currency": "USDT",
    "title": "TRC-20 Tether",
    "deposit": true,
    "withdrawal": true,
    "decimals": 6,
    "confirmations": 21,
    "network": "TRX",
    "explorer_tx_link": "https://tronscan.org/#/transaction/%hash%",
    "explorer_address_link": "https://tronscan.org/#/address/%address%"
  },
  "xrp": {
    "currency": "XRP",
    "title": "XRP",
    "deposit": true,
    "withdrawal": true,
    "decimals": 6,
    "confirmations": 6,
    "network": "XRP",
    "explorer_tx_link": "https://bithomp.com/explorer/%hash%",
    "explorer_address_link": "https://bithomp.com/explorer/%address%"
  },
  "cardano": {
    "currency": "ADA",
    "title": "Cardano",
    "deposit": true,
    "withdrawal": true,
    "decimals": 6,
    "confirmations": 15,
    "network": "ADA",
    "explorer_tx_link": "https://explorer.cardano.org/en/transaction?id=%hash%",
    "explorer_address_link": "https://explorer.cardano.org/en/address?address=%address%"
  },
  "polkadot": {
    "currency": "DOT",
    "title": "Polkadot",
    "deposit": true,
    "withdrawal": true,
    "decimals": 8,
    "confirmations": 15,
    "network": "DOT",
    "explorer_tx_link": "https://polkadot.subscan.io/extrinsic/%hash%",
    "explorer_address_link": "https://polkadot.subscan.io/account/%address%"
  },
  "monero": {
    "currency": "XMR",
    "title": "Monero",
    "deposit": true,
    "withdrawal": true,
    "decimals": 8,
    "confirmations": 10,
    "network": "XMR",
    "explorer_tx_link": "https://xmrchain.net/tx/%hash%",
    "explorer_address_link": "https://www.alfa.cash/#%address%"
  },
  "dogecoin": {
    "currency": "DOGE",
    "title": "Dogecoin",
    "deposit": true,
    "withdrawal": true,
    "decimals": 8,
    "confirmations": 6,
    "network": "DOGE",
    "explorer_tx_link": "https://blockchair.com/dogecoin/transaction/%hash%",
    "explorer_address_link": "https://blockchair.com/dogecoin/address/%address%"
  },
  "uniswap": {
    "currency": "UNI",
    "title": "Uniswap",
    "deposit": true,
    "withdrawal": true,
    "decimals": 8,
    "confirmations": 12,
    "network": "ETH",
    "explorer_tx_link": "https://etherscan.io/tx/%hash%",
    "explorer_address_link": "https://etherscan.io/address/%address%"
  },
  "wrappedbitcoin": {
    "currency": "WBTC",
    "title": "Wrapped Bitcoin",
    "deposit": true,
    "withdrawal": true,
    "decimals": 8,
    "confirmations": 12,
    "network": "ETH",
    "explorer_tx_link": "https://etherscan.io/tx/%hash%",
    "explorer_address_link": "https://etherscan.io/address/%address%"
  },
  "dai": {
    "currency": "DAI",
    "title": "Dai",
    "deposit": true,
    "withdrawal": true,
    "decimals": 8,
    "confirmations": 12,
    "network": "ETH",
    "explorer_tx_link": "https://etherscan.io/tx/%hash%",
    "explorer_address_link": "https://etherscan.io/address/%address%"
  },
  "usdcoin": {
    "currency": "USDC",
    "title": "ERC-20 USD Coin",
    "deposit": true,
    "withdrawal": true,
    "decimals": 6,
    "confirmations": 12,
    "network": "ETH",
    "explorer_tx_link": "https://etherscan.io/tx/%hash%",
    "explorer_address_link": "https://etherscan.io/address/%address%"
  },
  "tron": {
    "currency": "TRX",
    "title": "TRON",
    "deposit": true,
    "withdrawal": true,
    "decimals": 6,
    "confirmations": 21,
    "network": "TRX",
    "explorer_tx_link": "https://tronscan.org/#/transaction/%hash%",
    "explorer_address_link": "https://tronscan.org/#/address/%address%"
  },
  "bitcoincash": {
    "currency": "BCH",
    "title": "Bitcoin Cash",
    "deposit": true,
    "withdrawal": true,
    "decimals": 8,
    "confirmations": 2,
    "network": "BCH",
    "explorer_tx_link": "https://blockchair.com/bitcoin-cash/transaction/%hash%",
    "explorer_address_link": "https://blockchair.com/bitcoin-cash/address/%address%"
  },
  "litecoin": {
    "currency": "LTC",
    "title": "Litecoin",
    "deposit": true,
    "withdrawal": true,
    "decimals": 8,
    "confirmations": 6,
    "network": "LTC",
    "explorer_tx_link": "https://live.blockcypher.com/ltc/tx/%hash%",
    "explorer_address_link": "https://live.blockcypher.com/ltc/address/%address%"
  },
  "chainlink": {
    "currency": "LINK",
    "title": "Chainlink",
    "deposit": true,
    "withdrawal": true,
    "decimals": 8,
    "confirmations": 12,
    "network": "ETH",
    "explorer_tx_link": "https://etherscan.io/tx/%hash%",
    "explorer_address_link": "https://etherscan.io/address/%address%"
  },
  "stellar": {
    "currency": "XLM",
    "title": "Stellar",
    "deposit": true,
    "withdrawal": true,
    "decimals": 7,
    "confirmations": 1,
    "network": "XLM",
    "explorer_tx_link": "https://stellarchain.io/tx/%hash%",
    "explorer_address_link": "https://stellarchain.io/address/%address%"
  },
  "cosmos": {
    "currency": "ATOM",
    "title": "Cosmos",
    "deposit": true,
    "withdrawal": true,
    "decimals": 6,
    "confirmations": 15,
    "network": "ATOM",
    "explorer_tx_link": "https://www.mintscan.io/cosmos/txs/%hash%",
    "explorer_address_link": "https://www.mintscan.io/cosmos/account/%address%"
  },
  "maker": {
    "currency": "MKR",
    "title": "Maker",
    "deposit": true,
    "withdrawal": true,
    "decimals": 8,
    "confirmations": 12,
    "network": "ETH",
    "explorer_tx_link": "https://etherscan.io/tx/%hash%",
    "explorer_address_link": "https://etherscan.io/address/%address%"
  },
  "dash": {
    "currency": "DASH",
    "title": "Dash",
    "deposit": true,
    "withdrawal": true,
    "decimals": 8,
    "confirmations": 6,
    "network": "DASH",
    "explorer_tx_link": "https://chainz.cryptoid.info/dash/tx.dws?%hash%.htm",
    "explorer_address_link": "https://chainz.cryptoid.info/dash/address.dws?%address%.htm"
  },
  "nem": {
    "currency": "XEM",
    "title": "NEM",
    "deposit": true,
    "withdrawal": true,
    "decimals": 6,
    "confirmations": 60,
    "network": "XEM",
    "explorer_tx_link": "https://explorer.nemtool.com#s_tx?hash=%hash%",
    "explorer_address_link": "https://explorer.nemtool.com#/s_account?account=%address%"
  },
  "zcash": {
    "currency": "ZEC",
    "title": "Zcash",
    "deposit": true,
    "withdrawal": true,
    "decimals": 8,
    "confirmations": 6,
    "network": "ZEC",
    "explorer_tx_link": "https://explorer.zcha.in/transactions/%hash%",
    "explorer_address_link": "https://explorer.zcha.in/accounts/%address%"
  },
  "bat": {
    "currency": "BAT",
    "title": "Basic Attention Token",
    "deposit": true,
    "withdrawal": true,
    "decimals": 8,
    "confirmations": 12,
    "network": "ETH",
    "explorer_tx_link": "https://etherscan.io/tx/%hash%",
    "explorer_address_link": "https://etherscan.io/address/%address%"
  },
  "yearnfinance": {
    "currency": "YFI",
    "title": "yearn.finance",
    "deposit": true,
    "withdrawal": true,
    "decimals": 8,
    "confirmations": 12,
    "network": "ETH",
    "explorer_tx_link": "https://etherscan.io/tx/%hash%",
    "explorer_address_link": "https://etherscan.io/address/%address%"
  },
  "qtum": {
    "currency": "QTUM",
    "title": "Qtum",
    "deposit": true,
    "withdrawal": true,
    "decimals": 8,
    "confirmations": 2,
    "network": "QTUM",
    "explorer_tx_link": "https://qtum.info/tx/%hash%",
    "explorer_address_link": "https://qtum.info/address/%address%"
  },
  "zrx": {
    "currency": "ZRX",
    "title": "0x",
    "deposit": true,
    "withdrawal": true,
    "decimals": 8,
    "confirmations": 12,
    "network": "ETH",
    "explorer_tx_link": "https://etherscan.io/tx/%hash%",
    "explorer_address_link": "https://etherscan.io/address/%address%"
  },
  "trc20usdc": {
    "currency": "USDC",
    "title": "TRC-20 USD Coin",
    "deposit": false,
    "withdrawal": false,
    "decimals": 6,
    "confirmations": 21,
    "network": "TRX",
    "explorer_tx_link": "https://tronscan.org/#/transaction/%hash%",
    "explorer_address_link": "https://tronscan.org/#/address/%address%"
  }
}

Estructuras

Available currency codes


GateMonedaPayment MethodConfirmacionesNetwork
bitcoin BTC
Bitcoin
2 BTC
ethereum ETH
Ethereum
12 ETH
tethererc20 USDT
ERC-20 Tether
12 ETH
trc20usdt USDT
TRC-20 Tether
21 TRX
smartchain BNB
Binance Smart Chain
15 BSC
usdcoin USDC
ERC-20 USD Coin
12 ETH
xrp XRP
XRP
1 XRP
cardano ADA
Cardano
15 ADA
polkadot DOT
Polkadot
15 DOT
litecoin LTC
Litecoin
6 LTC
monero XMR
Monero
10 XMR
dogecoin DOGE
Dogecoin
6 DOGE
wrappedbitcoin WBTC
Wrapped Bitcoin
12 ETH
dai DAI
Dai
12 ETH
tron TRX
TRON
21 TRX
bitcoincash BCH
Bitcoin Cash
2 BCH
chainlink LINK
Chainlink
12 ETH
stellar XLM
Stellar
1 XLM
cosmos ATOM
Cosmos
15 ATOM
maker MKR
Maker
12 ETH
dash DASH
Dash
6 DASH
zcash ZEC
Zcash
6 ZEC
yearnfinance YFI
yearn.finance
12 ETH

Address parameters


GatePayment MethodEstructura
bitcoin
Bitcoin
{"address":"Bitcoin address"}
ethereum
Ethereum
{"address":"Ethereum address"}
tethererc20
ERC-20 Tether
{"address":"Tether USDT (ERC-20) address"}
trc20usdt
TRC-20 Tether
{"address":"Tether USDT (TRC20) address"}
smartchain
Binance Smart Chain
{"address":"Binance Smart Chain address"}
usdcoin
ERC-20 USD Coin
{"address":"USD Coin address"}
xrp
XRP
{"address":"XRP address","memo":"Destination Tag"}
cardano
Cardano
{"address":"Cardano address"}
polkadot
Polkadot
{"address":"Polkadot address"}
litecoin
Litecoin
{"address":"Litecoin address"}
monero
Monero
{"address":"Monero address"}
dogecoin
Dogecoin
{"address":"Dogecoin address"}
wrappedbitcoin
Wrapped Bitcoin
{"address":"Wrapped Bitcoin address"}
dai
Dai
{"address":"Dai address"}
tron
TRON
{"address":"TRON address"}
bitcoincash
Bitcoin Cash
{"address":"Bitcoin Cash address"}
chainlink
Chainlink
{"address":"Chainlink address"}
stellar
Stellar
{"address":"Stellar account","memo":"Memo"}
cosmos
Cosmos
{"address":"Cosmos address","memo":"Memo"}
maker
Maker
{"address":"Maker address"}
dash
Dash
{"address":"Dash address"}
zcash
Zcash
{"address":"ZCash address"}
yearnfinance
yearn.finance
{"address":"yearn.finance address"}

Estado de la orden


EstadoDescripción
new Every order has this status in the beginning.
confirming Order has received unconfirmed payment, once it gets required number of confirmations order status will be changed to paid.
paid Order has been paid. Funds will be transferred to you in a moment.
pending Order has been paid, but awaits to be processed manually, be patient, manual processing happens within the working hours.
canceled Order wasn't paid in the time specified (usually 2 hours) and automatically canceled.
incomplete Order has been paid, but something happened while transferring funds. Be patient order will be processed by our support team manually during the working hours.
refunded Order has been refunded.
hold There is a hold for certain exchange directions (up to 72 hours) for security reasons, exchange rate will be updated once the order's payment released.
completed Order has been completed successfully, this is the final order status.

API Libraries / Plugins

Alfacash API Libraries / CMS Plugins for various programming languages.

Control

Integrate cryptocurrency exchange on your website with Alfacash Widget
You can use additional parameters to configure Alfacash Widget

List of parameters:
from_currency = bitcoin // deposit currency, check Gate column for available values,

to_currency = xrp // withdrawal currency, check Gate column for available values,

source_amount = 123 // deposit amount,

dest_amount = 0.123 // withdrawal amount,

rid = 2f777791 // your affiliate ID,

account = rExFpwNwwrmFWbX81AqbHJYkq8W6ZoeWE6 // withdrawal account, check account / address parameters,
or
address = mnD8wHZKfdSwoKyW4H44spK2MqGAEXNbG9 // withdrawal address, check account / address parameters,

payment_id = dff605c73ebb9605 // special field (e.g. destination_tag, message, memo) to distinguish
payments coming to the same address for XRP, NEM, Stellar, etc,

no_payment_id // disable special field if you are using self-hosted wallet,

currencies = bitcoin,xrp,litecoin // limit widget to certain list of currencies,
check Gate column for available values,

promo_code = 6HNY2 // promo code if you have one for additional discount
Example:
https://widget.alfa.cash/?rid=2f777791&from_currency=bitcoin&to_currency=xrp&account=rExFpwNwwrmFWbX81AqbHJYkq8W6ZoeWE6&no_payment_id¤cies=bitcoin,xrp,ethereum&promo_code=TEST1&source_amount=0.005