flow_access_api 0.1.7

The Rust implementation of the Flow Access API through gRPC client.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#[derive(Clone)]
pub enum Network {
    Mainnet,
    Testnet,
    Custom { endpoint: String },
}

impl From<Network> for String {
    fn from(value: Network) -> Self {
        match value {
            Network::Mainnet => "access.mainnet.nodes.onflow.org:9000".into(),
            Network::Testnet => "access.devnet.nodes.onflow.org:9000".into(),
            Network::Custom { endpoint } => endpoint
        }
    }
}