Expand description
Networks Registry for managing blockchain network configurations
§Main Types
NetworksRegistry
- The main struct for managing network configurations
§Example
use graph_networks_registry::NetworksRegistry;
// Load the latest registry from online source
let registry = NetworksRegistry::from_latest_version().await?;
// Look up a network by ID
let mainnet = registry.get_network_by_id("mainnet");
§Additional Types
Network
- Individual network configuration
Structs§
- ApiUrl
- Firehose
- Firehose block information
- Genesis
- Genesis block information
- Graph
Node - Graph Node specific configuration information
- Icon
- Icons for the network
- Indexer
Docs Url - Network
- Networks
Registry - Relation
- Services
- Services available for the network in the ecosystem
- Web3
Icons - Web3Icons icon - see https://github.com/0xa3k5/web3icons
Enums§
- ApiUrl
Kind - Kind of API
- Bytes
Encoding - Bytes encoding, e.g. hex, 0xhex, base58
- Error
- Network
Type - Whether the network is a mainnet/testnet/devnet
- Protocol
- [optional] Protocol name in graph-node, e.g. ethereum, near, arweave
- Relation
Kind - Kind of relation