Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetBech32HRP ¶
func SetBech32HRP(networkID uint32)
SetBech32HRP sets the package-wide beck32HRP to use for Address marshaling
Types ¶
type Address ¶
type Address StringShortID
func (Address) MarshalJSON ¶
type ChainInfo ¶
type ChainInfo struct { ID StringID `json:"chainID"` Alias string `json:"chainAlias"` VM string `json:"vm"` AVAXAssetID StringID `json:"avaxAssetID"` NetworkID uint32 `json:"networkID"` }
ChainInfo represents an overview of data about a given chain
type StringShortID ¶
type StringShortID string
StringShortID represents a 160bit hash encoded as a base58 string
func ToShortStringID ¶
func ToShortStringID(id ids.ShortID) StringShortID
ToShortStringID converts an ids.ShortID into a StringShortID
func (StringShortID) Equals ¶
func (rid StringShortID) Equals(oRID StringShortID) bool
Equals returns true if and only if the two stringShortIDs represent the same ID
Click to show internal directories.
Click to hide internal directories.