Documentation ¶
Index ¶
- func GenerateTransaction(from common.Address, to common.Address, value *big.Int, data []byte, ...) (*types.Transaction, error)
- func ProcessRequest(w *Wallet, request TransactionRequest) (reply string, err error)
- func TransactionHandler(w *Wallet, resp http.ResponseWriter, req *http.Request)
- type TransactionRequest
- type Wallet
- func (w *Wallet) Close()
- func (w *Wallet) Endpoint(chainID int64) string
- func (w *Wallet) FillTx(from ethcommon.Address, to ethcommon.Address, value *big.Int, data string, ...) (*types.Transaction, error)
- func (w *Wallet) SendTx(tx *types.Transaction) (string, error)
- func (w *Wallet) Ticker(chainID int64) string
- func (w *Wallet) UiSelectAccount() accounts.Account
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateTransaction ¶
func GenerateTransaction(from common.Address, to common.Address, value *big.Int, data []byte, chainID int64, rpcEndpoint string) (*types.Transaction, error)
GenerateTransaction queries RPC directly to get nonce, gasprice, gaslimit We recommend using (*Wallet).FillTx() instead for more privacy
func ProcessRequest ¶
func ProcessRequest(w *Wallet, request TransactionRequest) (reply string, err error)
func TransactionHandler ¶
func TransactionHandler(w *Wallet, resp http.ResponseWriter, req *http.Request)
Types ¶
type TransactionRequest ¶
Click to show internal directories.
Click to hide internal directories.