Documentation ¶
Index ¶
- func NewService(log logging.Logger, version version.Version, nodeID ids.ShortID, ...) (*common.HTTPHandler, error)
- type GetBlockchainIDArgs
- type GetBlockchainIDReply
- type GetNetworkIDReply
- type GetNetworkNameReply
- type GetNodeIDReply
- type GetNodeVersionReply
- type Info
- func (service *Info) GetBlockchainID(_ *http.Request, args *GetBlockchainIDArgs, reply *GetBlockchainIDReply) error
- func (service *Info) GetNetworkID(_ *http.Request, _ *struct{}, reply *GetNetworkIDReply) error
- func (service *Info) GetNetworkName(_ *http.Request, _ *struct{}, reply *GetNetworkNameReply) error
- func (service *Info) GetNodeID(_ *http.Request, _ *struct{}, reply *GetNodeIDReply) error
- func (service *Info) GetNodeVersion(_ *http.Request, _ *struct{}, reply *GetNodeVersionReply) error
- func (service *Info) GetTxFee(_ *http.Request, args *struct{}, reply ...) error
- func (service *Info) IsBootstrapped(_ *http.Request, args *IsBootstrappedArgs, reply *IsBootstrappedResponse) error
- func (service *Info) Peers(_ *http.Request, _ *struct{}, reply *PeersReply) error
- type IsBootstrappedArgs
- type IsBootstrappedResponse
- type PeersReply
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GetBlockchainIDArgs ¶
type GetBlockchainIDArgs struct {
Alias string `json:"alias"`
}
GetBlockchainIDArgs are the arguments for calling GetBlockchainID
type GetBlockchainIDReply ¶
type GetBlockchainIDReply struct {
BlockchainID string `json:"blockchainID"`
}
GetBlockchainIDReply are the results from calling GetBlockchainID
type GetNetworkIDReply ¶
GetNetworkIDReply are the results from calling GetNetworkID
type GetNetworkNameReply ¶
type GetNetworkNameReply struct {
NetworkName string `json:"networkName"`
}
GetNetworkNameReply is the result from calling GetNetworkName
type GetNodeIDReply ¶
type GetNodeIDReply struct {
NodeID string `json:"nodeID"`
}
GetNodeIDReply are the results from calling GetNodeID
type GetNodeVersionReply ¶
type GetNodeVersionReply struct {
Version string `json:"version"`
}
GetNodeVersionReply are the results from calling GetNodeVersion
type Info ¶
type Info struct {
// contains filtered or unexported fields
}
Info is the API service for unprivileged info on a node
func (*Info) GetBlockchainID ¶
func (service *Info) GetBlockchainID(_ *http.Request, args *GetBlockchainIDArgs, reply *GetBlockchainIDReply) error
GetBlockchainID returns the blockchain ID that resolves the alias that was supplied
func (*Info) GetNetworkID ¶
func (service *Info) GetNetworkID(_ *http.Request, _ *struct{}, reply *GetNetworkIDReply) error
GetNetworkID returns the network ID this node is running on
func (*Info) GetNetworkName ¶
func (service *Info) GetNetworkName(_ *http.Request, _ *struct{}, reply *GetNetworkNameReply) error
GetNetworkName returns the network name this node is running on
func (*Info) GetNodeID ¶
func (service *Info) GetNodeID(_ *http.Request, _ *struct{}, reply *GetNodeIDReply) error
GetNodeID returns the node ID of this node
func (*Info) GetNodeVersion ¶
func (service *Info) GetNodeVersion(_ *http.Request, _ *struct{}, reply *GetNodeVersionReply) error
GetNodeVersion returns the version this node is running
func (*Info) GetTxFee ¶ added in v0.6.1
func (service *Info) GetTxFee(_ *http.Request, args *struct{}, reply *struct { Fee json.Uint64 `json:"txFee"` }) error
GetTxFee returns the transaction fee in nAVAX. Note that the transaction fee is a command line argument and this node's view of the transaction fee may be different than another node's.
func (*Info) IsBootstrapped ¶ added in v0.6.1
func (service *Info) IsBootstrapped(_ *http.Request, args *IsBootstrappedArgs, reply *IsBootstrappedResponse) error
IsBootstrapped returns nil and sets [reply.IsBootstrapped] == true iff [args.Chain] exists and is done bootstrapping Returns an error if the chain doesn't exist
type IsBootstrappedArgs ¶ added in v0.6.1
type IsBootstrappedArgs struct { // Alias of the chain // Can also be the string representation of the chain's ID Chain string `json:"chain"` }
IsBootstrappedArgs are the arguments for calling IsBootstrapped
type IsBootstrappedResponse ¶ added in v0.6.1
type IsBootstrappedResponse struct { // True iff the chain exists and is done bootstrapping IsBootstrapped bool `json:"isBootstrapped"` }
IsBootstrappedResponse are the results from calling IsBootstrapped
type PeersReply ¶
PeersReply are the results from calling Peers