DTOs are described in api.ts.
Warning
Most DTOs may contain
BigInt
s. If there are numbers greater than JavaScript nativenumber
can fit (f64
), then nativeJSON
decoder throws an error.You should decode DTOs with a special JSON-decoder that works with
BigInt
s, e.g. json-bigint.
- Endpoints
- Id Transformation
- Pagination Query Params
- Description: web server health check
- Response: 200 OK
- Query: Pagination
- Response:
Paginated<BlockShallow>
-
Description: get the block at the given height or hash
-
Params: either
height
orhash
Param Type Description height
int
non-zero number indicating the height of the block hash
string
32-byte hash hex of the block -
Response:
Block
or404
- Query: Pagination
- Response:
Paginated<Transaction>
-
Params:
Param Type Description hash
string
32-byte hash hex of the transaction -
Response:
Transaction
or404
- Query: Pagination
- Response:
Paginated<Account>
-
Params:
Param Type Description id
string
The id of the account -
Response:
Account
or404
See also: Id Transformation
- Query: Pagination
- Response:
Paginated<Asset>
-
Params:
Param Type Description definition_id
string
The id of the asset definition account_id
string
The id of the account the asset belongs to -
Response:
Asset
or404
See also: Id Transformation
- Query:Pagination
- Response:
Paginated<AssetDefinition>
-
Params:
Param Type Description id
string
The id of the asset definition -
Response:
AssetDefinitionWithAccounts
or 404
See also: Id Transformation
- Query: Pagination
- Response:
Paginated<Domain>
-
Params:
Param Type Description id
string
The id of the domain -
Response:
Domain
or404
- Response:
Peer[]
- Response:
Status
- Response:
Role[]
IDs in path should be HTML-escaped:
In DTO | In path | |
---|---|---|
Domain Id | wonderland |
wonderland |
Account Id | alice@wonderland |
alice@wonderland |
Asset Definition Id | rose#wonderland |
rose%23wonderland |
Param | Type | Default | Description |
---|---|---|---|
page |
number |
1 | Page number |
page_size |
number |
15 | Page size limit |