Documentation ¶
Index ¶
- Variables
- func ETHInit()
- func GetLastBlock() *big.Int
- type ETHHandler
- func (h *ETHHandler) BuildUnsignedTransaction(fromAddress, fromPublicKey, toAddress string, amount *big.Int, ...) (transaction interface{}, digests []string, err error)
- func (h *ETHHandler) GetAddressBalance(address string, jsonstring string) (balance ctypes.Balance, err error)
- func (h *ETHHandler) GetDefaultFee() ctypes.Value
- func (h *ETHHandler) GetTransactionInfo(txhash string) (fromAddress string, txOutputs []ctypes.TxOutput, jsonstring string, ...)
- func (h *ETHHandler) IsToken() bool
- func (h *ETHHandler) MakeSignedTransaction(rsv []string, transaction interface{}) (signedTransaction interface{}, err error)
- func (h *ETHHandler) PublicKeyToAddress(pubKeyHex string) (address string, err error)
- func (h *ETHHandler) SignTransaction(hash []string, privateKey interface{}) (rsv []string, err error)
- func (h *ETHHandler) SubmitTransaction(signedTransaction interface{}) (txhash string, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ETH_DEFAULT_FEE, _ = new(big.Int).SetString("10000000000000000", 10)
Functions ¶
func GetLastBlock ¶
Types ¶
type ETHHandler ¶
type ETHHandler struct { }
func NewETHHandler ¶
func NewETHHandler() *ETHHandler
func (*ETHHandler) BuildUnsignedTransaction ¶
func (h *ETHHandler) BuildUnsignedTransaction(fromAddress, fromPublicKey, toAddress string, amount *big.Int, jsonstring string) (transaction interface{}, digests []string, err error)
jsonstring '{"gasPrice":8000000000,"gasLimit":50000}'
func (*ETHHandler) GetAddressBalance ¶
func (*ETHHandler) GetDefaultFee ¶
func (h *ETHHandler) GetDefaultFee() ctypes.Value
func (*ETHHandler) GetTransactionInfo ¶
func (*ETHHandler) IsToken ¶
func (h *ETHHandler) IsToken() bool
func (*ETHHandler) MakeSignedTransaction ¶
func (h *ETHHandler) MakeSignedTransaction(rsv []string, transaction interface{}) (signedTransaction interface{}, err error)
func (*ETHHandler) PublicKeyToAddress ¶
func (h *ETHHandler) PublicKeyToAddress(pubKeyHex string) (address string, err error)
func (*ETHHandler) SignTransaction ¶
func (h *ETHHandler) SignTransaction(hash []string, privateKey interface{}) (rsv []string, err error)
func (*ETHHandler) SubmitTransaction ¶
func (h *ETHHandler) SubmitTransaction(signedTransaction interface{}) (txhash string, err error)
Directories ¶
Path | Synopsis |
---|---|
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.