Create Transactions
Prerequisites
Step1
tx := types.NewTx(&types.LegacyTx{
Nonce: nonce,
To: to,
Value: amount,
Gas: gasLimit,
GasPrice: gasPrice,
Data: txdata,
})
signedTx, err := types.SignTx(tx, types.NewEIP155Signer(chainID), privateKey)
vmData := signedTx.MarshalJSON()Step2
Type
Description
Step3
Last updated