Network Fee Interface

Return network fee of target token

POST https://admin.ccpayment.com/ccpayment/v1/network/fee

Headers

Name
Type
Description

Appid*

string

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

Timestamp*

string

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

Sign*

string

SHA-256 (APPID + APP Secret +timestamp+body (json string)). Signature guidearrow-up-right.

Content-Type

String

application/json; charset=utf-8

Request Body

Name
Type
Description

token_id*

string

Token ID for the target token. Get token id by calling interface or checking it on the sheetarrow-up-right

address

string

If this parameter is passed, CCPayment will tell whether it is an internal or external address. The network fee for an internal address is 0.

Response

Body

{
	"code": 10000,
	"msg": "success",
	"data": {
		"token_id": "f137d42c-f3a6-4f23-9402-76f0395d0cfe",
		"crypto": "USDT",
		"fee":"0.0344"
	}
}

Parameters

Name
Value
Required
Type
Description

code

10000

Integer

msg

Success

String

data

Object

data.token_id

f137d42c-f3a6-4f23-9402-76f0395d0cfe

String

Token ID for the target token. Get token id by calling interface or checking it on the sheetarrow-up-right

data.crypto

USDT

String

data.fee

0.0344

string

Network fee

Name
Value
Required
Type
Description

Appid

202302010636261620672405236006912

Y

string

Merchant's unique credential. Find it on the Developer page.

Timestamp

1677152490

Y

string

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

Sign

871f0223c66ea72435208d03603a0cb00b90f6ac4a4ba725d00164d967e291f6

Y

string

SHA-256 (appId + appSecret + timestamp+body (json string))

Request Body Example

Last updated