Documentation ¶
Index ¶
- func NewTx(nonce uint64, to *common.Address, amount *big.Int, gasLimit uint64, ...) *types.Transaction
- func NewTxWithClient(ctx context.Context, client *ethclient.Client, from common.Address, ...) (*types.Transaction, error)
- func SignTx(tx *types.Transaction, privateKey *ecdsa.PrivateKey) (*types.Transaction, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTx ¶
func NewTx(nonce uint64, to *common.Address, amount *big.Int, gasLimit uint64, gasPrice *big.Int, data []byte) *types.Transaction
NewTx creates a new legacy transaction
func NewTxWithClient ¶
func NewTxWithClient(ctx context.Context, client *ethclient.Client, from common.Address, to common.Address, amount *big.Int, data []byte) (*types.Transaction, error)
NewTxWithClient makes use of the ethereum client in order to build a new transaction. This method uses types.DynamicFeeTx and not types.LegacyTx
func SignTx ¶
func SignTx(tx *types.Transaction, privateKey *ecdsa.PrivateKey) (*types.Transaction, error)
SignTx signs a raw transaction
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.