Block Height Information Retrieval API

Merchants use this API to receive the block height to confirm the transaction and the current block height from different networks.

Get Block Height Information

POST https://admin.ccpayment.com/ccpayment/v1/get/network/height/info

Headers

Name
Type
Description

Sign*

string

SHA-256 (APPID + APP Secret +timestamp+body (json string)). Signature guide.

Timestamp*

string

Timestamp in seconds (10-digit). The request is valid for two minutes.

Appid*

string

Merchant's unique credential. Find it on the Developer pagearrow-up-right

Content-Type*

String

application/json; charset=utf-8

Response (Success 200)

Header

Body

{
  "code": 10000,
  "msg": "success",
  "data": [
    {
      "chain": "BCH",
      "current_chain_height": 803435,
      "tx_confirm_block_num": 2,
      "block_rate": 0
    },
    {
      "chain": "BSC",
      "current_chain_height": 30297917,
      "tx_confirm_block_num": 15
    }
    ...
  ]
}

Parameters

Last updated