Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultConfigPath = "./test_config.json"
View Source
const DefaultKeystorePath = "./keys"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chain ¶
type Chain struct { Config ChainConfig // The config of this chain Streamer Streamer // The streamer of this chain Router Router // The router of the chain }
Chain is a connection to a blockchain network
type ChainConfig ¶
type ChainConfig struct { Type string `toml:"type" json:"type"` ID string `toml:"id" json:"id"` // Chain ID Endpoint string `toml:"endpoint" json:"endpoint"` // url for rpc endpoint Operator string `toml:"operator" json:"operator"` // operator's address PrivateKey string `toml:"private_key" json:"private_key"` // operator's private key }
ChainConfig is parsed directly from the config file and is used to construct the Chain
Click to show internal directories.
Click to hide internal directories.