diff --git a/source/includes/_para.md b/source/includes/_para.md index 51164c2..4f40781 100644 --- a/source/includes/_para.md +++ b/source/includes/_para.md @@ -811,9 +811,98 @@ curl -X POST 'https://rococo.api.subscan.io/api/scan/parachain/auctionCompetitor "block_timestamp": 1619058966, "extrinsic_index": "150-0", "event_index": "150-4" - }, - ... + } ] } } ``` + + +## para fund Stat + +```shell +curl -X POST 'https://kusama.api.subscan.io/api/scan/parachain/fundStat' \ + --header 'Content-Type: application/json' \ + --header 'X-API-Key: YOUR_KEY' + --data-raw '{"start":"2021-06-10","end":"2021-06-30","format":"hour","fund_id":"2004-6"}' +``` + +### Request URL + +`POST /api/scan/parachain/fundStat` + +### Payload + +| Parameter | Type | Require | Default | Description | +| --------- | ---- | ------- | ------- | --------------------------- | +| start | bool | Yes | | start time(eq:2021-06-10) | +| end | string | Yes | | end time(eq:2021-06-30) | +| format | bool | No | day | hour,day,6hour | +| fund_id | bool | Yes | | fund id(eq:2004-6 ) | + +> Example Response + +```json +{ + "code": 0, + "message": "Success", + "ttl": 1, + "data": { + "list": [ + { + "time_utc": "2021-06-10T00:00:00Z", + "time_hour_utc": "2021-06-10T00:00:00Z", + "time_six_hour_utc": "2021-06-10T00:00:00Z", + "total": "0" + } + ] + } +} +``` + + +## best bid + +```shell +curl -X POST 'https://kusama.api.subscan.io/api/scan/parachain/bestBid' \ + --header 'Content-Type: application/json' \ + --header 'X-API-Key: YOUR_KEY' + --data-raw '{"bid_id":"1-13-20"}' +``` + +### Request URL + +`POST /api/scan/parachain/bestBid` + +### Payload + +| Parameter | Type | Require | Default | Description | +| --------- | ---- | ------- | ------- | --------------------------- | +| bid_id | string | Yes | no | bid id | + + +> Example Response + +```json +{ + "code": 0, + "message": "Success", + "ttl": 1, + "data": { + "bid_id": "1-13-20", + "fund_id": "2000-1", + "auction_index": 1, + "first_period": 13, + "last_period": 20, + "para_id": 2000, + "bidder_account": "6d6f646c70792f6366756e64d007000000000000000000000000000000000000", + "amount": "491752906100722948", + "source": 2, + "status": 3, + "block_num": 8004479, + "block_timestamp": 1624237734, + "extrinsic_index": "8004479-0", + "event_index": "8004479-2" + } +} +``` diff --git a/source/includes/_staking.md b/source/includes/_staking.md index 7751210..80e3d34 100644 --- a/source/includes/_staking.md +++ b/source/includes/_staking.md @@ -445,3 +445,47 @@ curl -X POST 'https://polkadot.api.subscan.io/api/scan/account/reward_slash' \ } } ``` + + +## unbonding + +```shell +curl -X POST 'https://polkadot.api.subscan.io/api/scan/staking/unbonding' \ + --header 'Content-Type: application/json' \ + --header 'X-API-Key: YOUR_KEY' \ + --data-raw '{ + "row": 20, + "page": 0, + "address": "YOUR_STASH_ADDRESS" + }' +``` + +### Request URL + +`POST /api/scan/staking/unbonding` + +### Payload + +| Name | Type | Require | +| ------- | ------ | ------- | +| address | string | yes | + + +> Example Response + +```json +{ + "code": 0, + "message": "Success", + "ttl": 1, + "data": { + "native": [ + { + "amount": "20000000000", + "until": 5849004 + } + ] + } +} + +```