Skip to content
This repository has been archived by the owner on Sep 28, 2023. It is now read-only.

Commit

Permalink
Add parachain/bestBid docs
Browse files Browse the repository at this point in the history
  • Loading branch information
freehere107 committed Jul 6, 2021
1 parent 25a58a7 commit 94d2f03
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions source/includes/_para.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
```

0 comments on commit 94d2f03

Please sign in to comment.