Documentation ¶
Index ¶
- type AdminInfo
- type AdminPeers
- type BlockDetailsResponse
- type CallPayload
- type Eth
- type EthClient
- func (ec *EthClient) AdminNodeInfo() AdminInfo
- func (ec *EthClient) AdminPeers() []AdminPeers
- func (ec *EthClient) BlockNumber() string
- func (ec *EthClient) Coinbase() string
- func (ec *EthClient) CreateAccount(password string) string
- func (ec *EthClient) DeployContracts(byteCode string, pubKeys []string, private bool) string
- func (ec *EthClient) EthCall(param contracthandler.ContractParam, encoder contracthandler.RequestHandler, ...)
- func (ec *EthClient) GetAccounts() []string
- func (ec *EthClient) GetBalance(account string) string
- func (ec *EthClient) GetBlockByNumber(blockNo string) BlockDetailsResponse
- func (ec *EthClient) GetCode(address string) string
- func (ec *EthClient) GetQuorumPayload(input string) string
- func (ec *EthClient) GetTransactionByHash(txNo string) TransactionDetailsResponse
- func (ec *EthClient) GetTransactionReceipt(txNo string) TransactionReceiptResponse
- func (ec *EthClient) NetListening() bool
- func (ec *EthClient) PendingTransactions() []TransactionDetailsResponse
- func (ec *EthClient) RaftAddPeer(request string) int
- func (ec *EthClient) RaftRole() string
- func (ec *EthClient) SendTransaction(param contracthandler.ContractParam, rh contracthandler.RequestHandler) string
- type Logs
- type Network
- type Payload
- type Ports
- type Protocols
- type TransactionDetailsResponse
- type TransactionReceiptResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdminPeers ¶
type BlockDetailsResponse ¶
type BlockDetailsResponse struct { Number string `json:"number"` Hash string `json:"hash"` ParentHash string `json:"parentHash"` Nonce string `json:"nonce"` Sha3Uncles string `json:"sha3Uncles"` LogsBloom string `json:"logsBloom"` TransactionsRoot string `json:"transactionsRoot"` StateRoot string `json:"stateRoot"` Miner string `json:"miner"` Difficulty string `json:"difficulty"` TotalDifficulty string `json:"totalDifficulty"` ExtraData string `json:"extraData"` Size string `json:"size"` GasLimit string `json:"gasLimit"` GasUsed string `json:"gasUsed"` Timestamp string `json:"timestamp"` Transactions []TransactionDetailsResponse `json:"transactions"` Uncles []string `json:"uncles"` }
type CallPayload ¶
type EthClient ¶
type EthClient struct {
Url string
}
func (*EthClient) AdminNodeInfo ¶
func (*EthClient) AdminPeers ¶
func (ec *EthClient) AdminPeers() []AdminPeers
func (*EthClient) BlockNumber ¶
func (*EthClient) CreateAccount ¶
func (*EthClient) DeployContracts ¶
func (*EthClient) EthCall ¶
func (ec *EthClient) EthCall(param contracthandler.ContractParam, encoder contracthandler.RequestHandler, decoder contracthandler.ResponseHandler)
func (*EthClient) GetAccounts ¶
func (*EthClient) GetBalance ¶
func (*EthClient) GetBlockByNumber ¶
func (ec *EthClient) GetBlockByNumber(blockNo string) BlockDetailsResponse
func (*EthClient) GetQuorumPayload ¶
func (*EthClient) GetTransactionByHash ¶
func (ec *EthClient) GetTransactionByHash(txNo string) TransactionDetailsResponse
func (*EthClient) GetTransactionReceipt ¶
func (ec *EthClient) GetTransactionReceipt(txNo string) TransactionReceiptResponse
func (*EthClient) NetListening ¶
func (*EthClient) PendingTransactions ¶
func (ec *EthClient) PendingTransactions() []TransactionDetailsResponse
func (*EthClient) RaftAddPeer ¶
func (*EthClient) SendTransaction ¶
func (ec *EthClient) SendTransaction(param contracthandler.ContractParam, rh contracthandler.RequestHandler) string
type Logs ¶
type Logs struct { Address string `json:"address"` BlockHash string `json:"blockHash"` BlockNumber string `json:"blockNumber"` Data string `json:"data"` LogIndex string `json:"logIndex"` Topics []string `json:"topics"` TransactionHash string `json:"transactionHash"` TransactionIndex string `json:"transactionIndex"` }
type TransactionDetailsResponse ¶
type TransactionDetailsResponse struct { BlockHash string `json:"blockHash"` BlockNumber string `json:"blockNumber"` From string `json:"from"` Gas string `json:"gas"` GasPrice string `json:"gasPrice"` Hash string `json:"hash"` Input string `json:"input"` Nonce string `json:"nonce"` To string `json:"to"` TransactionIndex string `json:"transactionIndex"` Value string `json:"value"` V string `json:"v"` R string `json:"r"` S string `json:"s"` }
type TransactionReceiptResponse ¶
type TransactionReceiptResponse struct { BlockHash string `json:"blockHash"` BlockNumber string `json:"blockNumber"` ContractAddress string `json:"contractAddress"` CumulativeGasUsed string `json:"cumulativeGasUsed"` From string `json:"from"` GasUsed string `json:"gasUsed"` Logs []Logs `json:"logs"` LogsBloom string `json:"logsBloom"` Root string `json:"root"` To string `json:"to"` TransactionHash string `json:"transactionHash"` TransactionIndex string `json:"transactionIndex"` }
Click to show internal directories.
Click to hide internal directories.