or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Do you want to remove this version name and description?
Syncing
xxxxxxxxxx
census3
An EVM snark friendly census builder based on strategies.
API endpoints
GET
/tokens
(SDK OK, API OK*)List of already added tokens.
-
error getting tokens information
error encoding tokens
GET
/tokens/types
(SDK OK, API OK)List the supported token types.
error encoding supported tokens types
POST
/tokens
(API OK)Triggers a new scan for the provided token, starting from the defined block.
malformed token information
the token cannot be created
error getting token information
error initialising web3 client
GET
/tokens/{tokenID}
(SDK OK, API OK*)Returns the information about the token referenced by the provided ID.
no token found
error getting token information
error encoding tokens
MVP Warn: If
defaultStrategy
is0
, no strategy (neither the dummy strategy) is associated to the given token.POST
/strategies
Stores a new strategy based on the defined combination of tokens provided, these tokens must be registered previously.
GET
/strategies
(SDK OK, API OK)Returns the ID's list of the strategies registered.
-
error getting strategies information
error encoding strategies
GET
/strategies/{strategyId}
(SDK OK, API OK*)Returns the information of the strategy related to the provided ID.
-
no strategy found with the ID provided
error getting tokens information
error getting strategy information
error encoding strategy
GET
/strategies/token/{tokenID}
(SDK OK, API OK)Returns ID's of the already created strategies including the
tokenAddress
provided.-
error getting strategies information
error encoding strategies
POST
/census
(API OK)Request the creation of a new census with the strategy provided for the
blockNumber
provided and returns the census ID.malformed strategy ID, it must be a integer
no strategy found with the ID provided
error creating the census tree on the census database
error encoding strategy holders
GET
/census/strategy/{strategyId}
(API OK)Returns a list of censusID for the strategy provided.
-
census not found
error getting census information
error encoding cenuses
GET
/census/{censusId}
(API OK)Returns the information of the snapshots related to the provided ID.
-
malformed census ID, it must be a integer
census not found
error getting census information
error encoding census