# Staking

## Finance & Mining Pool - Participation record - Pledge currency query

<mark style="color:green;">`POST`</mark> `https://service.xxx.com/platformapi/chainup/open/staking/findBaseCoinByGroup`

Query participation record

#### Headers

| Name         | Type   | Description      |
| ------------ | ------ | ---------------- |
| Content-Type | String | application/json |

#### Request Body

| Name                                     | Type    | Description                                                                               |
| ---------------------------------------- | ------- | ----------------------------------------------------------------------------------------- |
| appKey<mark style="color:red;">\*</mark> | String  | appKey                                                                                    |
| sign<mark style="color:red;">\*</mark>   | String  |                                                                                           |
| userId                                   | integer | 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                                     | integer | page                                                                                      |
| pageSize                                 | integer | pageSize                                                                                  |
| status                                   | String  | status                                                                                    |
| itemDate                                 | Long    | Lock up time                                                                              |

{% tabs %}
{% tab title="200: OK " %}

```javascript
{
	"code": "",
	"msg": "",
	"data": [
		"BTC",
		"USDT"
	]
}
```

{% endtab %}
{% endtabs %}

#### Return value declaration

<table><thead><tr><th>Name</th><th>Type</th><th>Necessary</th><th>Example</th><th>Description</th></tr></thead><tbody><tr><td>data</td><td>List</td><td>YES</td><td><p></p><pre class="language-json"><code class="lang-json">[
    "BTC",
    "EUSDT"
]
</code></pre></td><td>Collection of pledged currencies</td></tr></tbody></table>

## Finance & Mining Pools - Participation records - Participation records inquiry

<mark style="color:green;">`POST`</mark> `https://service.xxx.com/platformapi/chainup/open/staking/getApplyRecord`

Query participation record

#### Headers

| Name         | Type   | Description      |
| ------------ | ------ | ---------------- |
| Content-Type | String | application/json |

#### Request Body

| Name                                     | Type    | Description                                                                               |
| ---------------------------------------- | ------- | ----------------------------------------------------------------------------------------- |
| appKey<mark style="color:red;">\*</mark> | String  | appKey                                                                                    |
| sign<mark style="color:red;">\*</mark>   | String  |                                                                                           |
| userId                                   | integer | 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                                     | integer | page                                                                                      |
| pageSize                                 | integer | pageSize                                                                                  |
| status                                   | String  | status                                                                                    |
| itemDate                                 | Long    | Lock up time                                                                              |

{% tabs %}
{% tab title="200: OK " %}

```javascript
{
	"code": "",
	"msg": "",
	"data": {
		"current": 1,
		"size": 10,
		"total": 6,
		"pages": 1,
		"records": [
			{
				"uid": 10002186,
				"amount": "10",
				"isAuth": 1,
				"pawnCoin": "BTC",
				"etime": "1608719975000",
				"ctime": "1616342400000",
				"earlyQuitRate": "0",
				"id": 284,
				"projectName": "余币宝-测试B2",
				"projectId": 144,
				"applyStatus": 2,
				"lockDay": 7
			}
		]
	}
}
```

{% endtab %}
{% endtabs %}

#### 状态说明

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

#### 返回值说明

<table><thead><tr><th>Name</th><th>Type</th><th>Necessary</th><th>Example</th><th>Description</th></tr></thead><tbody><tr><td><p></p><pre class="language-json"><code class="lang-json">records
</code></pre></td><td>List</td><td>YES</td><td><pre class="language-json"><code class="lang-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
}
</code></pre></td><td>Tabular data</td></tr><tr><td><p></p><pre class="language-json"><code class="lang-json">current
</code></pre></td><td>int</td><td>YES</td><td>1</td><td>Current page</td></tr><tr><td><p></p><pre class="language-json"><code class="lang-json">size
</code></pre></td><td>int</td><td>YES</td><td>10</td><td> Page size</td></tr><tr><td><p></p><pre class="language-json"><code class="lang-json">total
</code></pre></td><td>int</td><td>YES</td><td>6</td><td>Total data</td></tr><tr><td><p></p><pre class="language-json"><code class="lang-json">pages
</code></pre></td><td>int</td><td>YES</td><td>1</td><td>Total pages</td></tr></tbody></table>

<table><thead><tr><th width="236">Name</th><th>Type</th><th>Necessary</th><th>Example</th><th>Description</th></tr></thead><tbody><tr><td><p></p><pre class="language-json"><code class="lang-json">uid
</code></pre></td><td>int</td><td>YES</td><td>10012312</td><td>User id</td></tr><tr><td><p></p><pre class="language-json"><code class="lang-json">amount
</code></pre></td><td>String</td><td>YES</td><td>19</td><td>Pledge deposit amount</td></tr><tr><td><p></p><pre class="language-json"><code class="lang-json">isAuth
</code></pre></td><td>int</td><td>YES</td><td>1</td><td>Is the real name (0/1)</td></tr><tr><td><p></p><pre class="language-json"><code class="lang-json">pawnCoin
</code></pre></td><td>String</td><td>YES</td><td>BTC</td><td>CoinSymbol</td></tr><tr><td><p></p><pre class="language-json"><code class="lang-json">etime
</code></pre></td><td>int</td><td>YES</td><td>1616342400000</td><td>Unlock time</td></tr><tr><td><p></p><pre class="language-json"><code class="lang-json">ctime
</code></pre></td><td>int</td><td>YES</td><td>1616342400000</td><td>Participation time</td></tr><tr><td><p></p><pre class="language-json"><code class="lang-json">earlyQuitRate
</code></pre></td><td>int</td><td>YES</td><td>0</td><td>Proportion of liquidated damages</td></tr><tr><td><p></p><pre class="language-json"><code class="lang-json">id
</code></pre></td><td>int</td><td>YES</td><td>286</td><td>Record id</td></tr><tr><td><p></p><pre class="language-json"><code class="lang-json">projectName
</code></pre></td><td>String</td><td>YES</td><td>xxx</td><td>Project name</td></tr><tr><td><p></p><pre class="language-json"><code class="lang-json">projectId
</code></pre></td><td>int</td><td>YES</td><td>144</td><td>Item id</td></tr><tr><td><p></p><pre class="language-json"><code class="lang-json">applyStatus
</code></pre></td><td>int</td><td>YES</td><td>2</td><td>Status (reference enumeration)</td></tr><tr><td><p></p><pre class="language-json"><code class="lang-json">lockDay
</code></pre></td><td>int</td><td>YES</td><td>7</td><td>Pledge cycle</td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://platformv2docs.chainup.com/english-3/staking.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
