Versions in this module Expand all Collapse all v0 v0.1.1 Oct 24, 2023 v0.1.0 Oct 7, 2023 Changes in this version + type BlockHeader struct + BlockSize int + Depth int + Difficulty int64 + Hash string + Height int + MajorVersion int + MinorVersion int + Nonce uint32 + NumTxes int + OrphanStatus bool + PrevHash string + Reward int64 + Timestamp uint32 + type GetBlockCountReply struct + Count int64 + Status string + type GetBlockHeaderReply struct + BlockHeader BlockHeader + Status string + Untrusted bool + type GetBlockTemplateReply struct + Blob string + Difficulty int64 + ExpectedReward int64 + Height int64 + NextSeedHash string + PrevHash string + ReservedOffset int + SeedHash string + type GetInfoReply struct + Height int64 + IncomingConnections int64 + OutgoingConnections int64 + Status string + TxPoolSize int64 + type JSONRpcResp struct + Error map[string]interface{} + Id *json.RawMessage + Result *json.RawMessage + type RPCClient struct + Accepts int64 + FailsCount int64 + LastSubmissionAt int64 + Name string + Rejects int64 + Url *url.URL + func NewRPCClient(cfg *pool.Upstream) (*RPCClient, error) + func (r *RPCClient) Check(reserveSize int, address string) (bool, error) + func (r *RPCClient) GetBlockCount() (*GetBlockCountReply, error) + func (r *RPCClient) GetBlockHeaderByHeight(height int64) (*GetBlockHeaderReply, error) + func (r *RPCClient) GetBlockTemplate(reserveSize int, address string) (*GetBlockTemplateReply, error) + func (r *RPCClient) GetInfo() (*GetInfoReply, error) + func (r *RPCClient) Info() *GetInfoReply + func (r *RPCClient) SetClient(client *http.Client) + func (r *RPCClient) Sick() bool + func (r *RPCClient) SubmitBlock(hash string) (*JSONRpcResp, error) + func (r *RPCClient) UpdateInfo() (*GetInfoReply, error)