Crate graph_networks_registry

Source
Expand description

Networks Registry for managing blockchain network configurations

§Main Types

§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
GraphNode
Graph Node specific configuration information
Icon
Icons for the network
IndexerDocsUrl
Network
NetworksRegistry
Relation
Services
Services available for the network in the ecosystem
Web3Icons
Web3Icons icon - see https://github.com/0xa3k5/web3icons

Enums§

ApiUrlKind
Kind of API
BytesEncoding
Bytes encoding, e.g. hex, 0xhex, base58
Error
NetworkType
Whether the network is a mainnet/testnet/devnet
Protocol
[optional] Protocol name in graph-node, e.g. ethereum, near, arweave
RelationKind
Kind of relation