Documentation ¶
Index ¶
- func NewKeyStore(keydir string) (*keystore.KeyStore, error)
- type EthConfig
- type EthSDK
- func (es *EthSDK) Deploy(acc *accounts.Account, chainId *big.Int, nonce uint64, amount *big.Int, ...) (string, error)
- func (es *EthSDK) EstimateGas(from, to ethcom.Address, data []byte, value, gasPrice *big.Int) (uint64, error)
- func (es *EthSDK) EthCall(blockNumber uint64, to ethcom.Address, data []byte, abi_instance abi.ABI, ...) (interface{}, error)
- func (es *EthSDK) FormSignedTransaction(acc *accounts.Account, chainId *big.Int, nonce uint64, to ethcom.Address, ...) ([]byte, error)
- func (es *EthSDK) GetAccounts() []accounts.Account
- func (es *EthSDK) GetBalanceByHex(hex string) (*big.Int, error)
- func (es *EthSDK) GetBlockByNumber(blockNumber uint64) (string, error)
- func (es *EthSDK) GetBlockNumber() (*big.Int, error)
- func (es *EthSDK) GetLogs(fromBlock string, toBlock string, address []ethcom.Address, ...) ([]types.Log, error)
- func (es *EthSDK) GetNonce(address ethcom.Address) (uint64, error)
- func (es *EthSDK) GetTransactionByHash(data ethcom.Hash) (interface{}, error)
- func (es *EthSDK) GetTransactionCount(account ethcom.Address) (uint64, error)
- func (es *EthSDK) GetTransactionReceipt(data ethcom.Hash) (map[string]interface{}, error)
- func (es *EthSDK) ListenAndPreProcessEvent(abiPath string, events []string, to []ethcom.Address, ...)
- func (es *EthSDK) ListenWsEvent(arg map[string]interface{}, result chan types.Log)
- func (es *EthSDK) NewAccount(pass string) (string, error)
- func (es *EthSDK) RetraceLog(config common.RetraceConf, log chan types.Log)
- func (es *EthSDK) SendRawTransaction(data []byte, isWait bool) (ethcom.Hash, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EthSDK ¶
type EthSDK struct { HttpClient *rpc.Client Keystore *keystore.KeyStore IpcClient *rpc.Client WsClient *rpc.Client }
func (*EthSDK) EstimateGas ¶
func (*EthSDK) FormSignedTransaction ¶
func (*EthSDK) GetAccounts ¶
func (*EthSDK) GetBlockByNumber ¶
func (*EthSDK) GetTransactionByHash ¶
func (*EthSDK) GetTransactionCount ¶
func (*EthSDK) GetTransactionReceipt ¶
func (*EthSDK) ListenAndPreProcessEvent ¶
func (*EthSDK) ListenWsEvent ¶
func (*EthSDK) RetraceLog ¶
func (es *EthSDK) RetraceLog(config common.RetraceConf, log chan types.Log)
Click to show internal directories.
Click to hide internal directories.