Versions in this module Expand all Collapse all v0 v0.1.0 Oct 7, 2023 Changes in this version + type BlockTplTransaction struct + Data string + Fee int64 + Hash string + type CoinBaseAux struct + Flags string + type GetBlockReply struct + Difficulty float64 + Hash string + Height uint32 + Nonce uint32 + Transactions []Tx + type GetBlockTemplateReplyPart struct + Bits string + CoinBaseAux CoinBaseAux + CoinBaseValue int64 + CoinbasePayload string + CurTime uint32 + Height uint32 + MasterNodes []MasterNode + PreviousBlockHash string + Target string + Transactions []BlockTplTransaction + Version uint32 + type JSONRpcResp struct + Error map[string]interface{} + Id *json.RawMessage + Result *json.RawMessage + type MasterNode struct + Amount int64 + Payee string + Script string + type RPCClient struct + Name string + Url string + func NewRPCClient(name, url, timeout string) *RPCClient + func (r *RPCClient) Check() bool + func (r *RPCClient) GetBlockByHash(hash string) (*GetBlockReply, error) + func (r *RPCClient) GetBlockHashByHeight(height int64) (string, error) + func (r *RPCClient) GetPendingBlock() (*GetBlockTemplateReplyPart, error) + func (r *RPCClient) GetPrevBlockHash() (string, error) + func (r *RPCClient) Sick() bool + func (r *RPCClient) SubmitBlock(params []interface{}) error + type Tx struct + TxId string + Vin []Vin + Vout []Vout + type TxReceipt struct + BlockHash string + GasUsed string + Status string + TxHash string + func (r *TxReceipt) Confirmed() bool + func (r *TxReceipt) Successful() bool + type Vin struct + PrevOutHash string + PrevOutN uint32 + type Vout struct + N uint32 + Value float64 + ValueSat int64