Upload Reputation Score

Create your customized reputation score first before uploading the data.

The minimum granularity of reputation score data is day-level. You may upload at daily basis.

Pre-requisite

Make sure the ReputationScore Grant Scope is included when requesting authorization. You cannot share or retrieve reputation scores without approval from the user.

API

Post /api/account/party/dataReport

Header

NameValue

Content-Type

application/json

Authorization

Bearer <access token>

Parameters

Compose all parameters below as a JSON. Check the request example for details.

NameMandatory?Description

time

Y

The timestamp of the UTC day that indicates the data belongs to. The timestamp should be in seconds. The data that happened within 7 days will be accepted, otherwise rejected.

network

Y

Network ID, AKA blockchain ID. Ethereum: 1 BSC: 56 Polygon: 137 Solana: -1

data

Y

All reputation scores

Request Example

curl --location 'https://$API_BASE_URL/api/account/party/dataReport' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer access_token'
--data '{
    "time": 1722355400,
    "network": 1,
    "data": {
        "Trade Volume": 1000000,
        "Active": 1,
        "Your Defined Score": 100,
        "note": "Your comment"
    }
}'

Response

{
    "code": 10001,
    "message": "Incorrect timestamp"
}
/*
10001: Incorrect timestamp
203000: Incorrect parameters 
208004: Invalid access token
301002: User doesn't exist
208403: No user grant or revoked
*/

Last updated