iCryptoNow

Networks

GET/v1/networks

Lists the networks enabled for your account, how players pay on each and your prices. Use it to show players the right networks and minimums on your own site, then send them to the payment page with the amount and network they chose.

Example

const { body } = await icn("GET", "/v1/networks");
200 OK
{
  "networks": [
    {
      "asset": "tron:USDT",
      "chain": "tron",
      "token": "USDT",
      "decimals": 6,
      "mode": "standard",
      "payment_page": true,
      "fee_formula": "sum",
      "deposit": { "fee_bps": 100, "min_fee": "0", "min_amount": "10000000" },
      "payout": { "fee_bps": 50, "min_fee": "1500000", "min_amount": "20000000", "fee_mode": "on_top" }
    },
    {
      "asset": "bsc:USDT",
      "chain": "bsc",
      "token": "USDT",
      "decimals": 18,
      "mode": "pro",
      "payment_page": true,
      "fee_formula": "sum",
      "deposit": { "fee_bps": 100, "min_fee": "1000000000000000000", "min_amount": "10000000000000000000" },
      "payout": { "fee_bps": 50, "min_fee": "1000000000000000000", "min_amount": "10000000000000000000", "fee_mode": "on_top" }
    }
  ]
}

Fields

FieldTypeDescription
assetstring · requiredNetwork and token, for example tron:USDT. Use it in assets when you create a checkout session.
modestring · requiredstandard: players pay an exact amount through the payment page. pro: every player has their own deposit address. See Standard and Pro.
payment_pageboolean · requiredWhether the network is offered on the payment page.
fee_formulastring · requiredsum: your rate plus the network fee. max: the higher of the two (older agreements).
depositobject · requiredfee_bps (your rate, 100 = 1%), min_fee (network fee) and min_amount, for deposits made the network's current way.
payoutobject · requiredfee_bps, min_fee, min_amount and fee_mode (on_top or deducted) for payouts.
  • Amounts are integers in the token's smallest unit (USDT on TRON and Ethereum has 6 decimals, on BSC 18).
  • Changes in the console (switching a network to Standard or Pro, enabling a new network) show here right away, so read it rather than hard-coding networks.
  • For the exact fee on one amount, use Quote.

Typical flow (Standard)

  1. Show the networks with payment_page: true and their deposit.min_amount on your site.
  2. The player picks a network, enters the amount and confirms.
  3. Create a checkout session with that amount and assets: ["tron:USDT"] and redirect the player to its url. The page goes straight to the exact amount and address to send.
Apply now