From b31097655fa46ff72aedd9d4d3e8bf8faab220bb Mon Sep 17 00:00:00 2001 From: freehere107 Date: Fri, 25 Jun 2021 16:56:12 +0800 Subject: [PATCH 1/3] Add staking/unbonding docs --- source/includes/_staking.md | 44 +++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) 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 + } + ] + } +} + +``` From 25a58a749b17d869e15bc0725084b4af6ac46f44 Mon Sep 17 00:00:00 2001 From: freehere107 Date: Wed, 30 Jun 2021 15:06:26 +0800 Subject: [PATCH 2/3] Add parachain/fundStat docs --- source/includes/_para.md | 46 ++++++++++++++++++++++++++++++++++++++-- 1 file changed, 44 insertions(+), 2 deletions(-) diff --git a/source/includes/_para.md b/source/includes/_para.md index 51164c2..aebef4a 100644 --- a/source/includes/_para.md +++ b/source/includes/_para.md @@ -811,9 +811,51 @@ 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" + } + ] + } +} +``` From 94d2f03925539bdb38d1f1663848006f430e0b1b Mon Sep 17 00:00:00 2001 From: freehere107 Date: Tue, 6 Jul 2021 10:03:41 +0800 Subject: [PATCH 3/3] Add parachain/bestBid docs --- source/includes/_para.md | 47 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/source/includes/_para.md b/source/includes/_para.md index aebef4a..4f40781 100644 --- a/source/includes/_para.md +++ b/source/includes/_para.md @@ -859,3 +859,50 @@ curl -X POST 'https://kusama.api.subscan.io/api/scan/parachain/fundStat' \ } } ``` + + +## 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" + } +} +```