Documentation ¶
Index ¶
- type BlockTplTransaction
- type CoinBaseAux
- type GetBlockReply
- type GetBlockTemplateReplyPart
- type JSONRpcResp
- type MasterNode
- type 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
- type TxReceipt
- type Vin
- type Vout
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockTplTransaction ¶
type CoinBaseAux ¶
type CoinBaseAux struct {
Flags string `json:"flags"`
}
type GetBlockReply ¶
type GetBlockTemplateReplyPart ¶
type GetBlockTemplateReplyPart struct { Version uint32 `json:"version"` PreviousBlockHash string `json:"previousblockhash"` Transactions []BlockTplTransaction `json:"transactions"` CoinBaseAux CoinBaseAux `json:"coinbaseaux"` CoinBaseValue int64 `json:"coinbasevalue"` CurTime uint32 `json:"curtime"` Bits string `json:"bits"` Target string `json:"target"` Height uint32 `json:"height"` DefaultWitnessCommitment string `json:"default_witness_commitment"` }
type JSONRpcResp ¶
type JSONRpcResp struct { Id *json.RawMessage `json:"id"` Result *json.RawMessage `json:"result"` Error map[string]interface{} `json:"error"` }
type MasterNode ¶
type RPCClient ¶
type RPCClient struct { sync.RWMutex Url string Name string // contains filtered or unexported fields }
func NewRPCClient ¶
func (*RPCClient) GetBlockByHash ¶
func (r *RPCClient) GetBlockByHash(hash string) (*GetBlockReply, error)
func (*RPCClient) GetBlockHashByHeight ¶
func (*RPCClient) GetPendingBlock ¶
func (r *RPCClient) GetPendingBlock() (*GetBlockTemplateReplyPart, error)
func (*RPCClient) GetPrevBlockHash ¶
func (*RPCClient) SubmitBlock ¶
Click to show internal directories.
Click to hide internal directories.