You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
735 B
22 lines
735 B
5 years ago
|
package apiv1
|
||
6 years ago
|
|
||
|
import (
|
||
|
"github.com/ethereum/go-ethereum/common"
|
||
|
"github.com/ethereum/go-ethereum/common/hexutil"
|
||
|
)
|
||
|
|
||
|
// SendTxArgs represents the arguments to sumbit a new transaction into the transaction pool.
|
||
|
type SendTxArgs struct {
|
||
|
From common.Address `json:"from"`
|
||
|
To *common.Address `json:"to"`
|
||
5 years ago
|
ShardID uint32 `json:"shardID"`
|
||
5 years ago
|
Gas *hexutil.Uint64 `json:"gas"`
|
||
|
GasPrice *hexutil.Big `json:"gasPrice"`
|
||
|
Value *hexutil.Big `json:"value"`
|
||
|
Nonce *hexutil.Uint64 `json:"nonce"`
|
||
6 years ago
|
// 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"`
|
||
|
}
|