Staking

Finance & Mining Pool - Participation record - Pledge currency query

POST https://service.xxx.com/platformapi/chainup/open/staking/findBaseCoinByGroup

Query participation record

Headers

NameTypeDescription

Content-Type

String

application/json


{
    "code": "0",
    "msg": "suc",
    "data": {
        "uid": 2000000,//用户id
        "inviteCode": "AAAAAA"//邀请码
    }
}

Parameter description

None

Return value declaration

NameTypeNecessaryExampleDescription

data

List

YES

[
        "BTC",
        "EUSDT"
    ]

Collection of pledged currencies

Finance & Mining Pools - Participation records - Participation records inquiry

POST https://service.xxx.com/platformapi/chainup/open/staking/getApplyRecord

Query participation record

Headers

NameTypeDescription

Content-Type

String

application/json

Request Body

NameTypeDescription

appKey*

String

appKey

sign*

String

userId

User ID

baseCoin

String

baseCoin(/platformapi/chainup/open/staking/findBaseCoinByGroup Get a list of currencies)

minAmount

String

min pledge Amount

maxAmount

String

max pledge Amount

projectId

String

projectId

startTime

number

Participation start time

endTime

number

Participation end time

page

page

pageSize

pageSize

status

String

status


{
    "code": "0",
    "msg": "suc",
    "data": {
        "uid": 2000000,//用户id
        "inviteCode": "AAAAAA"//邀请码
    }
}

状态说明

1 -> In income
2 -> Normal unlock
3 -> Unlock in advance
5 -> Apply to Quit

参数说明

NameTypeNecessaryExampleDescription

appKey

String

YES

xxx_xxx

Merchant unique appKey

sign

String

YES

2ae04ed9165624419bad68e9e0f3f2sa9fbd2ae04ed916511624419bad68e9e20f3f29fbd

sign (MD5(Sort(Param) + secret))

page

String

NO

1

The default page number is 1

pageSize

String

NO

20

Number of items per page, default 10

userId

String

NO

123123

userId

返回值说明

NameTypeNecessaryExampleDescription

records

List

YES

```json
            {
                "uid": 10002186,
                "amount": "10",
                "isAuth": 1,
                "pawnCoin": "BTC",
                "etime": "1608719975000",
                "ctime": "1616342400000",
                "earlyQuitRate": "0",
                "id": 284,
                "projectName": "余币宝-测试B2",
                "projectId": 144,
                "applyStatus": 2,
                "lockDay": 7
            }
```

Tabular data

current

int

YES

1

Current page

size

int

YES

10

Page size

total

int

YES

6

Total data

pages

int

YES

1

Total pages

NameTypeNecessaryExampleDescription

uid

int

YES

10012312

User id

amount

String

YES

19

Pledge deposit amount

isAuth

int

YES

1

Is the real name (0/1)

pawnCoin

String

YES

BTC

CoinSymbol

etime

int

YES

1616342400000

Unlock time

ctime

int

YES

1616342400000

Participation time

earlyQuitRate

int

YES

0

Proportion of liquidated damages

id

int

YES

286

Record id

projectName

String

YES

xxx

Project name

projectId

int

YES

144

Item id

applyStatus

int

YES

2

Status (reference enumeration)

lockDay

int

YES

7

Pledge cycle

Last updated