eccfaucet/pkg/rpc/type.go

23 lines
663 B
Go

package rpc
// GetBlockInfo is the important getblockinfo response data
type GetBlockInfo struct {
Version int
}
type GetBlockchainInfo struct {
Chain string `json:"chain"`
Blocks int `json:"blocks"`
Headers int `json:"headers"`
BestBlockhash string `json:"bestblockhash"`
Difficulty float64 `json:"difficulty"`
VerificationProgress float64 `json:"verificationprogress"`
SizeOnDisk float64 `json:"size_on_disk"`
SoftForks []SoftFork `json:"softforks"`
}
type SoftFork struct {
ID string `json:"id"`
Version int `json:"version"`
}