Documentation ¶
Index ¶
- type Balance
- type GTx
- type GenTxArgs
- type GetBlockReply
- type GetBlockReplyPart
- type JSONRpcResp
- type RPCClient
- func (r *RPCClient) AddressUnlocked(from string) (bool, error)
- func (r *RPCClient) Check() bool
- func (r *RPCClient) ClearExchange(addres string) error
- func (r *RPCClient) CommitTx(data *json.RawMessage, txhash string) error
- func (r *RPCClient) GenTxWithSign(from string, gas uint64, gasPrice uint64, pays map[string]*big.Int) (*json.RawMessage, string, error)
- 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) GetBlockNumber() (int64, error)
- func (r *RPCClient) GetMaxAvailable(address string) (*big.Int, error)
- func (r *RPCClient) GetPeerCount() (int64, error)
- func (r *RPCClient) GetPendingBlock() (*GetBlockReplyPart, error)
- func (r *RPCClient) GetPkSynced(from string) (uint64, uint64, uint64, uint64, 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) SendExchangeTransactions(from string, gas uint64, gasPrice uint64, pays map[string]*big.Int) (string, error)
- func (r *RPCClient) SendTransaction(from, to, gas, gasPrice, value string, autoGas bool) (string, error)
- func (r *RPCClient) Sick() bool
- func (r *RPCClient) SubmitBlock(params []string) (bool, error)
- type ReceptionArgs
- type Tx
- type TxReceipt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetBlockReply ¶
type GetBlockReply struct { Number string `json:"number"` Hash string `json:"hash"` Nonce string `json:"nonce"` Miner string `json:"miner"` Difficulty string `json:"difficulty"` GasLimit string `json:"gasLimit"` GasUsed string `json:"gasUsed"` Transactions []Tx `json:"transactions"` Uncles []string `json:"uncles"` // https://github.com/ethereum/EIPs/issues/95 SealFields []string `json:"sealFields"` }
type GetBlockReplyPart ¶
type JSONRpcResp ¶
type JSONRpcResp struct { Id *json.RawMessage `json:"id"` Result *json.RawMessage `json:"result"` Error map[string]interface{} `json:"error"` }
type RPCClient ¶
type RPCClient struct { sync.RWMutex Url string Name string // contains filtered or unexported fields }
func NewRPCClient ¶
func (*RPCClient) ClearExchange ¶ added in v0.1.3
func (*RPCClient) CommitTx ¶ added in v0.1.3
func (r *RPCClient) CommitTx(data *json.RawMessage, txhash string) error
func (*RPCClient) GenTxWithSign ¶ added in v0.1.3
func (*RPCClient) GetBlockByHash ¶
func (r *RPCClient) GetBlockByHash(hash string) (*GetBlockReply, error)
func (*RPCClient) GetBlockByHeight ¶
func (r *RPCClient) GetBlockByHeight(height int64) (*GetBlockReply, error)
func (*RPCClient) GetBlockNumber ¶ added in v0.1.3
func (*RPCClient) GetMaxAvailable ¶ added in v0.1.3
func (*RPCClient) GetPeerCount ¶
func (*RPCClient) GetPendingBlock ¶
func (r *RPCClient) GetPendingBlock() (*GetBlockReplyPart, error)
func (*RPCClient) GetPkSynced ¶ added in v0.1.3
func (*RPCClient) GetUncleByBlockNumberAndIndex ¶
func (r *RPCClient) GetUncleByBlockNumberAndIndex(height int64, index int) (*GetBlockReply, error)
func (*RPCClient) SendExchangeTransactions ¶ added in v0.1.3
func (*RPCClient) SendTransaction ¶
type ReceptionArgs ¶ added in v0.1.3
Click to show internal directories.
Click to hide internal directories.