rrelayer_core 0.7.0

Core types and functionality for rrelayer - a powerful blockchain transaction relay service
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::sync::Arc;

use axum::{routing::get, Router};

use crate::app_state::AppState;

mod get_gas_price;
mod network;
mod networks;

pub fn create_network_routes() -> Router<Arc<AppState>> {
    Router::new()
        .route("/", get(networks::networks))
        .route("/:chain_id", get(network::network))
        .route("/gas/price/:chain_id", get(get_gas_price::get_gas_price))
}