Expand description
Axum REST handlers derived from the google.api.http annotations, transcoding
HTTP/JSON onto the tonic service traits.
Constantsยง
- PUBLIC_
REST_ PATHS - REST paths that are marked as public (no authentication required).
Functionsยง
- all_
rest_ routes - Build a combined Axum router with REST routes for all proto services.
- rest_
status_ ๐service_ get_ block_ height GetBlockHeight- JSON endpoint.- rest_
status_ ๐service_ get_ node_ keys GetNodeKeys- JSON endpoint.- rest_
status_ ๐service_ get_ success_ rate GetSuccessRate- JSON endpoint.- rest_
status_ ๐service_ get_ time_ since_ last_ decide GetTimeSinceLastDecide- JSON endpoint.- rest_
token_ ๐service_ get_ circulating_ supply GetCirculatingSupply- JSON endpoint.- rest_
token_ ๐service_ get_ circulating_ supply_ ethereum GetCirculatingSupplyEthereum- JSON endpoint.- rest_
token_ ๐service_ get_ total_ issued_ supply GetTotalIssuedSupply- JSON endpoint.- rest_
token_ ๐service_ get_ total_ minted_ supply GetTotalMintedSupply- JSON endpoint.- rest_
token_ ๐service_ get_ total_ reward_ distributed GetTotalRewardDistributed- JSON endpoint.- status_
service_ rest_ router - Build Axum REST routes for
StatusService. - token_
service_ rest_ router - Build Axum REST routes for
TokenService.