Documentation
¶
Index ¶
- func Fatalf(format string, args ...interface{})
- func GetAccountNonde(account, endpoint string) (uint64, error)
- func GetContractAddress(txHash, endpoint string) (string, error)
- func GetPassPhrase(prompt string, confirmation bool) string
- func SendRawTX(rawTx []byte, endpoint string) (string, error)
- type RPCError
- type RPCResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Fatalf ¶
func Fatalf(format string, args ...interface{})
Fatalf formats a message to standard error and exits the program. The message is also printed to standard output if standard error is redirected to a different file.
func GetAccountNonde ¶
GetAccountNonde get account nonce
func GetContractAddress ¶
GetContractAddress get contract address by tx hash.
func GetPassPhrase ¶
GetPassPhrase retrieves the password associated with an account, either fetched from a list of preloaded passphrases, or requested interactively from the user.
Types ¶
type RPCResponse ¶
type RPCResponse struct { JSONRPC string `json:"jsonrpc"` ID interface{} `json:"id"` Result json.RawMessage `json:"result,omitempty"` Error *RPCError `json:"error,omitempty"` }
Click to show internal directories.
Click to hide internal directories.