Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct {
// Address is the address of this Ethereum account, from which transactions
// will be sent when interacting with the Ethereum network.
// Example: "0x6ffba2d0f4c8fd7263f546afaaf25fe2d56f6044".
Address string
// Keyfile is a full path to a key file. Normally this file is one of the
// imported keys in your local Ethereum server. It can normally be found in
// a directory <some-path>/data/keystore/ and starts with its creation date
// "UTC--.*".
KeyFile string
// KeyFilePassword is the password used to unlock the account specified in
// KeyFile.
KeyFilePassword string
}
Account is a struct that contains the configuration for accessing an Ethereum network and a contract on the network.
type Config ¶
type Config struct {
// Example: "ws://192.168.0.157:8546".
URL string
// Example: "http://192.168.0.157:8545".
URLRPC string
// A map from contract names to contract addresses.
ContractAddresses map[string]string
Account Account
}
Config is a struct that contains the configuration needed to connect to an Ethereum node. This information will give access to an Ethereum network.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package ethutil provides utilities used for dealing with Ethereum concerns in the context of implementing cross-chain interfaces defined in pkg/chain.
|
Package ethutil provides utilities used for dealing with Ethereum concerns in the context of implementing cross-chain interfaces defined in pkg/chain. |
Click to show internal directories.
Click to hide internal directories.