2019-09-20 13:30:20 +00:00
|
|
|
package args
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/ethereum/go-ethereum/common"
|
|
|
|
"github.com/ethereum/go-ethereum/common/hexutil"
|
|
|
|
)
|
|
|
|
|
2020-04-16 14:53:14 +00:00
|
|
|
// SendTxArgs represents the arguments to submit a new transaction into the transaction pool.
|
2019-09-20 13:30:20 +00:00
|
|
|
// Duplicate struct definition since geth struct is in internal package
|
|
|
|
// Ref: https://github.com/ethereum/go-ethereum/blob/release/1.9/internal/ethapi/api.go#L1346
|
|
|
|
type SendTxArgs struct {
|
|
|
|
From common.Address `json:"from"`
|
|
|
|
To *common.Address `json:"to"`
|
|
|
|
Gas *hexutil.Uint64 `json:"gas"`
|
|
|
|
GasPrice *hexutil.Big `json:"gasPrice"`
|
|
|
|
Value *hexutil.Big `json:"value"`
|
|
|
|
Nonce *hexutil.Uint64 `json:"nonce"`
|
|
|
|
// We accept "data" and "input" for backwards-compatibility reasons. "input" is the
|
|
|
|
// newer name and should be preferred by clients.
|
|
|
|
Data *hexutil.Bytes `json:"data"`
|
|
|
|
Input *hexutil.Bytes `json:"input"`
|
2019-09-27 14:08:45 +00:00
|
|
|
}
|