solana_gateway/solana_gateway.rs
1//! Standalone local relay using the public gateway API and transaction settings.
2use arete_server::{Server, TransactionConfig};
3
4#[tokio::main]
5async fn main() -> anyhow::Result<()> {
6 tracing_subscriber::fmt().with_env_filter("info").init();
7 Server::solana_gateway("local-solana-gateway")
8 .bind("127.0.0.1:8081".parse::<std::net::SocketAddr>()?)
9 .transactions_config(TransactionConfig::from_env()?)
10 .start()
11 .await
12}