Skip to main content

Module rest

Module rest 

Source
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.