Documentation ¶
Index ¶
- Variables
- type BooleanResultEthereumNetworkResponse
- type EthAPI
- func (e *EthAPI) Accounts() ([]string, error)
- func (e *EthAPI) GasPrice() (int64, error)
- func (e *EthAPI) GetCode(address string) (string, error)
- func (e *EthAPI) GetFilterChanges(filterId string) ([]LogEntry, error)
- func (e *EthAPI) GetTransactionByHash(transactionHash string) (Transaction, error)
- func (e *EthAPI) GetTransactionMonitor(txhash string) (chan TransactionReceipt, error)
- func (e *EthAPI) GetTransactionReceipt(transactionHash string) (TransactionReceipt, error)
- func (e *EthAPI) NewFilter(options FilterOptions) (string, error)
- func (e *EthAPI) ProtocolVersion() (int64, error)
- func (e *EthAPI) SendTransaction(instructions TransactionInstructions, transactionArguments ...interface{}) (string, error)
- func (e *EthAPI) Syncing() (isSyncing bool, startingBlock string, currentBlock string, highestBlock string, ...)
- type EthereumFilterNetworkRequest
- type EthereumNetworkError
- type EthereumNetworkRequest
- type EthylClient
- func (client *EthylClient) Call(methodName string, args []string, replyValue interface{}) error
- func (client *EthylClient) CallWithFilterOptions(methodName string, filterOptions FilterOptions, replyValue interface{}) error
- func (client *EthylClient) CallWithTransaction(methodName string, instructions TransactionInstructions, args []string, ...) error
- type FilterLogObject
- type FilterLogObjectResultEthereumNetworkResponse
- type FilterOptions
- type GenericSliceResultEthereumNetworkResponse
- type LogEntry
- type NetAPI
- type StringResultEthereumNetworkResponse
- type Transaction
- type TransactionInstructions
- type TransactionObject
- type TransactionObjectResultEthereumNetworkResponse
- type TransactionReceipt
- type TransactionReceiptObject
- type TransactionReceiptObjectResultEthereumNetworkResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var LOGGER = logging.MustGetLogger("ethyl")
Functions ¶
This section is empty.
Types ¶
type BooleanResultEthereumNetworkResponse ¶
type BooleanResultEthereumNetworkResponse struct { Id string `json:"id"` JsonRpcVersion string `json:"jsonrpc"` Result bool `json:"result"` Error EthereumNetworkError `json:"error"` }
type EthAPI ¶
type EthAPI struct {
Client *EthylClient
}
func CreateEthAPI ¶
func CreateEthAPI(client *EthylClient) EthAPI
func (*EthAPI) GetFilterChanges ¶
func (*EthAPI) GetTransactionByHash ¶
func (e *EthAPI) GetTransactionByHash(transactionHash string) (Transaction, error)
func (*EthAPI) GetTransactionMonitor ¶
func (e *EthAPI) GetTransactionMonitor(txhash string) (chan TransactionReceipt, error)
func (*EthAPI) GetTransactionReceipt ¶
func (e *EthAPI) GetTransactionReceipt(transactionHash string) (TransactionReceipt, error)
func (*EthAPI) ProtocolVersion ¶
func (*EthAPI) SendTransaction ¶
func (e *EthAPI) SendTransaction(instructions TransactionInstructions, transactionArguments ...interface{}) (string, error)
type EthereumFilterNetworkRequest ¶
type EthereumFilterNetworkRequest struct { JsonRpcVersion string `json:"jsonrpc"` Method string `json:"method"` Params []FilterOptions `json:"params"` Id string `json:"id"` }
type EthereumNetworkError ¶
type EthereumNetworkRequest ¶
type EthylClient ¶
func CreateClient ¶
func CreateClient(url string) (EthylClient, error)
func (*EthylClient) Call ¶
func (client *EthylClient) Call(methodName string, args []string, replyValue interface{}) error
func (*EthylClient) CallWithFilterOptions ¶
func (client *EthylClient) CallWithFilterOptions(methodName string, filterOptions FilterOptions, replyValue interface{}) error
func (*EthylClient) CallWithTransaction ¶
func (client *EthylClient) CallWithTransaction(methodName string, instructions TransactionInstructions, args []string, replyValue interface{}) error
type FilterLogObject ¶
type FilterLogObject struct { Type string `json:"type"` LogIndex string `json:"logIndex"` TransactionIndex string `json:"transactionIndex"` TransactionHash string `json:"transactionHash"` BlockHash string `json:"blockHash"` BlockNumber string `json:"blockNumber"` Address string `json:"address"` Data string `json:"data"` Topics []string `json:"topics"` }
type FilterLogObjectResultEthereumNetworkResponse ¶
type FilterLogObjectResultEthereumNetworkResponse struct { Id string `json:"id"` JsonRpcVersion string `json:"jsonrpc"` Result []FilterLogObject `json:"result"` }
type FilterOptions ¶
type GenericSliceResultEthereumNetworkResponse ¶
type GenericSliceResultEthereumNetworkResponse struct { Id string `json:"is"` JsonRpcVersion string `json:"jsonepc"` Result []interface{} `json:"result"` Error EthereumNetworkError `json:"error"` }
type LogEntry ¶
type LogEntry struct { Type string `json:"type"` LogIndex int64 `json:"logIndex"` TransactionIndex int64 `json:"transactionIndex"` TransactionHash string `json:"transactionHash"` BlockHash string `json:"blockHash"` BlockNumber int64 `json:"blockNumber"` Address string `json:"address"` Data string `json:"data"` Topics []string `json:"topics"` }
type NetAPI ¶
type NetAPI struct {
Client *EthylClient
}
func CreateNetAPI ¶
func CreateNetAPI(client *EthylClient) NetAPI
func (*NetAPI) IsListening ¶
type StringResultEthereumNetworkResponse ¶
type StringResultEthereumNetworkResponse struct { Id string `json:"id"` JsonRpcVersion string `json:"jsonrpc"` Result string `json:"result"` Error EthereumNetworkError `json:"error"` }
type Transaction ¶
type TransactionInstructions ¶
type TransactionObject ¶
type TransactionObject struct { Hash string `json:"hash"` Nonce string `json:"nonce"` BlockHash string `json:"blockHash"` BlockNumber string `json:"blockNumber"` TransactionIndex string `json:"transactionIndex"` From string `json:"from"` To string `json:"to"` Value string `json:"value"` Gas string `json:"gas"` GasPrice string `json:"gasPrice"` Input string `json:"input"` }
for transactions
type TransactionObjectResultEthereumNetworkResponse ¶
type TransactionObjectResultEthereumNetworkResponse struct { Id string `json:"id"` JsonRpcVersion string `json:"jsonrpc"` Result TransactionObject `json:"result"` }
type TransactionReceipt ¶
type TransactionReceipt struct { TransactionHash string `json:"transactionHash"` TransactionIndex int64 `json:"transactionIndex"` BlockHash string `json:"blockHash"` BlockNumber int64 `json:"blockNumber"` CumulativeGasUsed int64 `json:"cumulativeGasUsed"` GasUsed int64 `json:"gasUsed"` ContractAddress string `json:"contractAddress"` Error string }
type TransactionReceiptObject ¶
type TransactionReceiptObject struct { TransactionHash string `json:"transactionHash"` TransactionIndex string `json:"transactionIndex"` BlockHash string `json:"blockHash"` BlockNumber string `json:"blockNumber"` CumulativeGasUsed string `json:"cumulativeGasUsed"` GasUsed string `json:"gasUsed"` ContractAddress string `json:"contractAddress"` }
type TransactionReceiptObjectResultEthereumNetworkResponse ¶
type TransactionReceiptObjectResultEthereumNetworkResponse struct { Id string `json:"id"` JsonRpcVersion string `json:"jsonrpc"` Result TransactionReceiptObject `json:"result"` }
Directories ¶
Path | Synopsis |
---|---|
crypto
|
|
sha3
Package sha3 implements the SHA-3 fixed-output-length hash functions and the SHAKE variable-output-length hash functions defined by FIPS-202.
|
Package sha3 implements the SHA-3 fixed-output-length hash functions and the SHAKE variable-output-length hash functions defined by FIPS-202. |
Click to show internal directories.
Click to hide internal directories.