Blockchain Endpoints

List all token

GET /api/list-all-token

Response

{
  "status": 200,
  "tokens": [
    {
      "id": 1,
      "name": "Bitcoin",
      "symbol": "BTC",
      "volume": 0,
      "volume24h": 0,
      "createdAt": 1533530259,
      "updatedAt": 1563121678,
      "coinBase": true,
      "withdrawFee": 0.0005,
      "withdrawFeePercent": null,
      "withdrawFeeMax": null,
      "minimumWithdraw": 0.005,
      "thresholdApproved": 0.2,
      "estimateBtc": 1,
      "priceUsd": 10459.73,
      "maxSupply": 21000000,
      "circulateSupply": 0,
      "totalSupply": 0,
      "typeValue": null,
      "change24h": 0,
      "marketCap": 0,
      "cmcRank": 1,
      "defaultTradingPair": "USDT_BTC",
      "coinInfoUrl": null,
      "isBanner": 1,
      "status": true,
      "statusDeposit": true,
      "statusWithdraw": true
    },
  ]
}

List token blockchain

GET /api/token-blockchain/list-token-blockchain

Body:

Key Mandatory Data type Description Example
symbol option string Coin symbol BTC, USDT, …
blockchain_id option string Blockchain ID (Support multi-chain) OMNI, ETH
status option 1/0 Enable/Disable (1/0) 1

Response

{
  "status": 200,
  "data": [
      {
          "id": 3,
          "symbol": "MAS",
          "blockchainId": "ETH",
          "blockchainName": "Ethereum",
          "isDefault": true,
          "status": true,
          "statusDeposit": true,
          "statusWithdraw": true,
          "confirmation": 30,
          "urlCheckAddress": "https://etherscan.io/address/",
          "urlCheckTxid": "https://etherscan.io/tx/",
          "typeDeposit": 1,
          "created_at": 1533530259,
          "updated_at": 1552501346
      }
  ]
}

Get deposit address

GET /api/balance/get-address-by-symbol

Parameters

Key Mandatory Data type Description Example
symbol required string Coin symbol MAS
blockchain_id option string Blockchain ID (Support multi-chain) OMNI, ETH

Headers

Key Mandatory Data type Description Example
api-key required string get api-key from profile page 78HUdkjile0_kds045-dftk5mefjid3g

Example:

https://api.vinex.network/api/balance/get-address-by-symbol?symbol=MAS

Response

{
    "status": 200,
    "data": {
        "tokenId": 3000006,
        "address": "6nrxbwKAwnhhV+xRjO+SL+wFKfBphQGg",
        "metadata": {
            "messageId": "11710438eb494dfaa4a428942daef851",
            "decimals": "92638865",
            "type": "decimals"
        }
    }
}

Response Description:

Key Mandatory Data type Description
address required string Deposit address
metadata required object This would be describe deposit type and its attribute

Deposit types:

  1. Normal as default
metadata.type = 'normal' (or NULL)
  1. Message Id (Same address for all users. Must be include messageId on deposit request)
metadata.type = 'message'
metadata.messageId = 'unique string'
  1. Decimals type (Same address for all users, Deposit request will be identified by decimals)
metadata.type = 'decimals'
metadata.decimals = 'unique decimals string'
  1. File Deposit (Deposit address is in a file)
metadata.type = 'file'
metadata.file = 'file content'
  1. Share Transaction Id (Same address for all user. Must submit shared transactionID back)
metadata.type = 'transaction'

Create withdrawal

POST /api/v2/create-withdrawal

Body:

Key Mandatory Data type Description Example
symbol required string Coin symbol BTC, USDT, …
blockchain_id option string Blockchain ID (Support multi-chain) OMNI, ETH
amount required double Withdrawal amount 10
address required string Withdrawal address 0x4fed1fc4144c223ae3c1553be203cdfcbd38c581
time_stamp required long Time stamp to synchronize with server time (second) 1539703961
recv_window option int Delta delay time with server. Default 5 seconds. 5

Headers

Key Description Example
api-key Get api-key from profile page 78HUdkjile0_kds045-dftk5mefjid3g
signature signature = hmac256(secret_key, <address>_<amount>_<blockchain_id>_<recv_window>_<symbol>_<time_stamp>) 9759cf926a0f65e59da604d9ea0537ca94d0084cbd741aeba5d9a5cedee7ab6d

Response

{
    "status": 200,
    "data": "Success, please wait process!"
}