Documentation ¶
Index ¶
- type AvmBalance
- type AvmClient
- type Balance
- type Blockchain
- type BlockchainsResponse
- type Client
- type Delegator
- type GetAllBalancesResponse
- type InfoClient
- func (c InfoClient) BlockchainID(alias string) (string, error)
- func (c InfoClient) NetworkID() (string, error)
- func (c InfoClient) NetworkName() (string, error)
- func (c InfoClient) NodeID() (string, error)
- func (c InfoClient) NodeVersion() (string, error)
- func (c InfoClient) Peers() ([]Peer, error)
- func (c InfoClient) TxFee() (*TxFeeResponse, error)
- type IpcClient
- type MinStakeResponse
- type Peer
- type PlatformClient
- func (c PlatformClient) GetBalance(address string) (resp *Balance, err error)
- func (c PlatformClient) GetBlockchains() (resp *BlockchainsResponse, err error)
- func (c PlatformClient) GetCurrentHeight() (int64, error)
- func (c PlatformClient) GetCurrentValidators() (resp *ValidatorsResponse, err error)
- func (c PlatformClient) GetMinStake() (resp *MinStakeResponse, err error)
- func (c PlatformClient) GetPendingValidators() (resp *ValidatorsResponse, err error)
- type RewardOwner
- type TxFeeResponse
- type Validator
- type ValidatorsResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AvmBalance ¶ added in v0.2.0
type AvmClient ¶
type AvmClient struct {
// contains filtered or unexported fields
}
AvmClient talks to the X chain
func NewAvmClient ¶
func (AvmClient) GetAllBalances ¶ added in v0.2.0
func (c AvmClient) GetAllBalances(address string) (result GetAllBalancesResponse, err error)
GetAllBalances returns all assets balances for a given address
type Blockchain ¶
type BlockchainsResponse ¶
type BlockchainsResponse struct {
Blockchains []Blockchain `json:"blockchains"`
}
type Client ¶
type Client struct { Avm AvmClient Platform PlatformClient Info InfoClient Ipc IpcClient }
type Delegator ¶
type Delegator struct { StartTime string `json:"startTime"` EndTime string `json:"endTime"` StakeAmount string `json:"stakeAmount"` NodeID string `json:"nodeID"` RewardOwner RewardOwner `json:"rewardOwner"` PotentialReward string `json:"potentialReward"` DelegationFee string `json:"delegationFee"` Uptime string `json:"uptime"` Connected bool `json:"connected"` }
type GetAllBalancesResponse ¶ added in v0.2.0
type GetAllBalancesResponse struct {
Balances []AvmBalance `json:"balances"`
}
type InfoClient ¶
type InfoClient struct {
// contains filtered or unexported fields
}
func NewInfoClient ¶
func NewInfoClient(endpoint string) InfoClient
func (InfoClient) BlockchainID ¶
func (c InfoClient) BlockchainID(alias string) (string, error)
func (InfoClient) NetworkID ¶
func (c InfoClient) NetworkID() (string, error)
func (InfoClient) NetworkName ¶
func (c InfoClient) NetworkName() (string, error)
func (InfoClient) NodeID ¶
func (c InfoClient) NodeID() (string, error)
func (InfoClient) NodeVersion ¶
func (c InfoClient) NodeVersion() (string, error)
func (InfoClient) Peers ¶
func (c InfoClient) Peers() ([]Peer, error)
func (InfoClient) TxFee ¶
func (c InfoClient) TxFee() (*TxFeeResponse, error)
type IpcClient ¶
type IpcClient struct {
// contains filtered or unexported fields
}
func NewIpcClient ¶
type MinStakeResponse ¶
type Peer ¶
type PlatformClient ¶
type PlatformClient struct {
// contains filtered or unexported fields
}
PlatformClient talks to the P chain
func NewPlatformClient ¶
func NewPlatformClient(endpoint string) PlatformClient
func (PlatformClient) GetBalance ¶
func (c PlatformClient) GetBalance(address string) (resp *Balance, err error)
func (PlatformClient) GetBlockchains ¶
func (c PlatformClient) GetBlockchains() (resp *BlockchainsResponse, err error)
func (PlatformClient) GetCurrentHeight ¶
func (c PlatformClient) GetCurrentHeight() (int64, error)
func (PlatformClient) GetCurrentValidators ¶
func (c PlatformClient) GetCurrentValidators() (resp *ValidatorsResponse, err error)
func (PlatformClient) GetMinStake ¶
func (c PlatformClient) GetMinStake() (resp *MinStakeResponse, err error)
func (PlatformClient) GetPendingValidators ¶
func (c PlatformClient) GetPendingValidators() (resp *ValidatorsResponse, err error)
type RewardOwner ¶
type TxFeeResponse ¶
type Validator ¶
type Validator struct { StartTime string `json:"startTime"` EndTime string `json:"endTime"` StakeAmount string `json:"stakeAmount"` NodeID string `json:"nodeID"` RewardOwner RewardOwner `json:"rewardOwner"` PotentialReward string `json:"potentialReward"` DelegationFee string `json:"delegationFee"` Uptime string `json:"uptime"` Connected bool `json:"connected"` Delegators []Delegator `json:"delegators"` }
type ValidatorsResponse ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.