Documentation ¶
Index ¶
- Variables
- type CommunityFund
- type Info
- type PoolAddress
- type PoolApi
- func (e *PoolApi) GetInfo() (info Info, err error)
- func (e *PoolApi) GetPoolAddress(spendingAddress string, signature string) (address PoolAddress, err error)
- func (e *PoolApi) GetStakingInfo() (stakingInfo StakingInfo, err error)
- func (e *PoolApi) PaymentRequestVote(spendingAddress string, hash string, vote string) (err error)
- func (e *PoolApi) ProposalVote(spendingAddress string, hash string, vote string) (err error)
- type PoolClient
- type StakingInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrorPoolConnectionError = errors.New("Could not connect to the NavPool API")
)
Functions ¶
This section is empty.
Types ¶
type CommunityFund ¶
type Info ¶
type Info struct { Version int `json:"version"` ProtocolVersion int `json:"protocolversion"` WalletVersion int `json:"walletversion"` Balance float64 `json:"balance"` ColdStakingBalance float64 `json:"coldstaking_balance"` NewMint float64 `json:"newmint"` Stake float64 `json:"stake"` Blocks int `json:"blocks"` CommunityFund CommunityFund `json:"communityfund"` TimeOffset int `json:"timeoffset"` NtpTimeOffset int `json:"ntptimeoffset"` Connections int `json:"connections"` Proxy string `json:"proxy"` TestNet bool `json:"testnet"` KeyPoolOldest int `json:"keypoololdest"` KeyPoolSize int `json:"keypoolsize"` UnlockedUntil int `json:"unlocked_until"` PayTxFee float64 `json:"paytxfee"` RelayFee float64 `json:"relayfee"` Errors string `json:"errors"` }
type PoolAddress ¶
type PoolApi ¶
type PoolApi struct {
// contains filtered or unexported fields
}
func (*PoolApi) GetPoolAddress ¶
func (e *PoolApi) GetPoolAddress(spendingAddress string, signature string) (address PoolAddress, err error)
func (*PoolApi) GetStakingInfo ¶
func (e *PoolApi) GetStakingInfo() (stakingInfo StakingInfo, err error)
func (*PoolApi) PaymentRequestVote ¶
type PoolClient ¶
type PoolClient struct {
// contains filtered or unexported fields
}
type StakingInfo ¶
type StakingInfo struct { Enabled bool `json:"enabled"` Staking bool `json:"staking"` Errors string `json:"errors"` CurrentBlockSize int `json:"currentblocksize"` CurrentBlockTx int `json:"currentblocktx"` Difficulty float64 `json:"difficulty"` SearchInterval int `json:"search-interval"` Weight int `json:"weight"` NetStakeWeight int `json:"netstakeweight"` ExpectedTime int `json:"expectedtime"` }
Click to show internal directories.
Click to hide internal directories.