Documentation
¶
Index ¶
- type GetBalanceReply
- type GetBlockReply
- type GetBlockReplyPart
- type GetPeerCountReply
- type JSONRpcResp
- type MVSSignRawTxReply
- type MVSTx
- type MVSTxOutput
- type RPCClient
- func (r *RPCClient) Check() bool
- func (r *RPCClient) GetBalance(address string) (*big.Int, error)
- func (r *RPCClient) GetBlockByHash(hash string) (*GetBlockReply, error)
- func (r *RPCClient) GetBlockByHeight(height int64) (*GetBlockReply, error)
- func (r *RPCClient) GetHeight() (int64, error)
- func (r *RPCClient) GetPeerCount() (int64, error)
- func (r *RPCClient) GetPendingBlock() (*GetBlockReplyPart, error)
- func (r *RPCClient) GetTxReceipt(hash string) (*TxReceipt, error)
- func (r *RPCClient) GetUncleByBlockNumberAndIndex(height int64, index int) (*GetBlockReply, error)
- func (r *RPCClient) GetWork() ([]string, error)
- func (r *RPCClient) SendMore(from string, receivers map[string]int64) (string, error)
- func (r *RPCClient) SendTransaction(from, to, value string) (string, error)
- func (r *RPCClient) SetAddress(address string) (string, error)
- func (r *RPCClient) Sick() bool
- func (r *RPCClient) Sign(from string, s string) (string, error)
- func (r *RPCClient) SubmitBlock(params []string) (bool, error)
- type TxReceipt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetBalanceReply ¶
type GetBlockReply ¶
type GetBlockReply struct { Difficulty string `json:"bits"` Hash string `json:"hash"` MerkleTreeHash string `json:"merkle_tree_hash"` Nonce string `json:"nonce"` PrevHash string `json:"previous_block_hash"` TimeStamp uint32 `json:"time_stamp"` Version int32 `json:"version"` Mixhash string `json:"mixhash"` Number int64 `json:"number"` TransactionCount int32 `json:"transaction_count"` Transactions []MVSTx `json:"transactions"` }
type GetBlockReplyPart ¶
type GetPeerCountReply ¶
type GetPeerCountReply struct {
Peers []string `json:"peers"`
}
type JSONRpcResp ¶
type JSONRpcResp struct { Id *json.RawMessage `json:"id"` Result *json.RawMessage `json:"result"` Error map[string]interface{} `json:"error"` }
type MVSSignRawTxReply ¶
type MVSTx ¶
type MVSTx struct { Hash string `json:"hash"` Locktime string `json:"lock_time"` Version string `json:"version"` Outputs []MVSTxOutput `json:"outputs"` }
type MVSTxOutput ¶
type RPCClient ¶
type RPCClient struct { sync.RWMutex Url string Name string Account string Password string // contains filtered or unexported fields }
func NewRPCClient ¶
func (*RPCClient) GetBlockByHash ¶
func (r *RPCClient) GetBlockByHash(hash string) (*GetBlockReply, error)
func (*RPCClient) GetBlockByHeight ¶
func (r *RPCClient) GetBlockByHeight(height int64) (*GetBlockReply, error)
func (*RPCClient) GetPeerCount ¶
func (*RPCClient) GetPendingBlock ¶
func (r *RPCClient) GetPendingBlock() (*GetBlockReplyPart, error)
func (*RPCClient) GetUncleByBlockNumberAndIndex ¶
func (r *RPCClient) GetUncleByBlockNumberAndIndex(height int64, index int) (*GetBlockReply, error)
func (*RPCClient) SendTransaction ¶
Click to show internal directories.
Click to hide internal directories.