(Core) Pairs Info API

GET Pairs Info #

GET /v2/newbridge/pairs

Returns a JSON structure with details of the NewBridge supported blockchain network and assets info.

API parameters #

curl -v https://replace-api-domain.ext/newbridge/pairs

Response 200 #

{
  "pairs": [
    {
      "bridge_pair": "newchain-ethereum",
      "eth2new_fee_min_amount": "10000",
      "eth2new_fee_percent": "0.000000",
      "eth2new_min_deposit_amount": "100000",
      "ethereum_asset": {
        "address": "0xa6075A8929F53e2dCc2A578d117f3Fb234a01F15",
        "raw_address": "0xa6075A8929F53e2dCc2A578d117f3Fb234a01F15",
        "name": "Newton",
        "symbol": "NEW",
        "decimals": 18,
        "asset_type": "ERC20",
        "chain_id": 4,
        "sub_network": "Rinkeby",
        "network_name": "Ethereum",
        "network_prefix": "eth"
      },
      "new2eth_fee_min_amount": "20000",
      "new2eth_fee_percent": "0.000000",
      "new2eth_min_deposit_amount": "50000",
      "newchain_asset": {
        "address": "",
        "raw_address": "",
        "name": "Newton",
        "symbol": "NEW",
        "decimals": 18,
        "asset_type": "Coin",
        "chain_id": 1007,
        "sub_network": "Testnet",
        "network_name": "NewChain",
        "network_prefix": "new"
      }
    },
    {
      "bridge_pair": "newchain-hecochain",
      "heco2new_fee_min_amount": "100",
      "heco2new_fee_percent": "0.000000",
      "heco2new_min_deposit_amount": "10000",
      "hecochain_asset": {
        "address": "0x0C1e6DFD61aA2a82A5A8bB6A6b4b378F95624c4B",
        "raw_address": "0x0C1e6DFD61aA2a82A5A8bB6A6b4b378F95624c4B",
        "name": "Newton",
        "symbol": "NEW",
        "decimals": 18,
        "asset_type": "HRC20",
        "chain_id": 256,
        "sub_network": "HecoTestnet",
        "network_name": "HecoChain",
        "network_prefix": "heco"
      },
      "new2heco_fee_min_amount": "100",
      "new2heco_fee_percent": "0.000000",
      "new2heco_min_deposit_amount": "10000",
      "newchain_asset": {
        "address": "",
        "raw_address": "",
        "name": "Newton",
        "symbol": "NEW",
        "decimals": 18,
        "asset_type": "Coin",
        "chain_id": 1007,
        "sub_network": "Testnet",
        "network_name": "NewChain",
        "network_prefix": "new"
      }
    }
  ]
}
NameTypeDescription
newchain_assetTokenAssets on NewChain
ethereum_assetTokenAssets on Ethereum family, the name can be changed to ethereum_asset , hecochain_asset or bschain_asset.
_min_deposit_amountstringMinium deposit amount for <A2B> direction. <A2B> can be new2eth, new2heco or new2bsc.
min_deposit_amountstringMinium deposit amount for <B2A> direction. <B2A> can be eth2new, heco2new or bsc2new.
_fee_percentstringFee percentage for <A2B> direction. <A2B> can be new2eth, new2heco or new2bsc.
_fee_percentstringFee percentage for eth2new direction. <B2A> can be eth2new, heco2new or bsc2new.
_fee_min_amountstringMinium fee for <A2B> direction. <A2B> can be new2eth, new2heco or new2bsc.
_fee_min_amountstringMinium fee for eth2new direction. <B2A> can be eth2new, heco2new or bsc2new.
bridge_pairstringbridage pair blockchain name, merge of NewChain family and Ethtereum family, such as newchain-ethereum, newchain-hecochain, newchain-bschain.

Fee #

The actual amount of fee will use the larger one in fee_percent and fee_min_amount after calculation.

Token type definition #

NameTypeDescription
addressstringContract address. 0x format for ethereum, NEW address for newchain. null for chain coin like ETH or NEW
raw_addressstringContract address in 0x format.
namestringAsset Name
symbolstringAsset Symbol
decimalsuint8Asset Presision.
asset_typestringAsset Type. Coin or NRC6 for NewChain. Coin or ERC20 for Ethereum.
chain_idintChainID
sub_networkstringSub Network Name. Mainnet or Testnet for NewChain, Mainnet or Rinkeby for Ethereum.
network_namestringThe network name, such as NewChain, Ethereum, HecoChain, BSChain.
network_prefixstringThe prefix of network, such as new, eth, heco, bsc.

Network #

NamePrefix
NewChainnew
Ethereumeth
HecoChainheco
BSChainbsc
(Core) Pairs Info API was last edited on 2021-05-18 @4a1fa99 : add newtwork name and prefix