Documentation ¶
Index ¶
- func DecodeTx(data []byte) (*types.Transaction, error)
- func EncodeTx(tx *types.Transaction) ([]byte, error)
- func HexToPrivKey(key string) (*ecdsa.PrivateKey, []byte, error)
- func NewTx(nonce uint64, to *common.Address, amount *big.Int, gasLimit uint64, ...) *types.Transaction
- func PrivKeyToAddr(key *ecdsa.PrivateKey) common.Address
- func SignTx(tx *types.Transaction, chainID *big.Int, key *ecdsa.PrivateKey) (*types.Transaction, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HexToPrivKey ¶
func HexToPrivKey(key string) (*ecdsa.PrivateKey, []byte, error)
func PrivKeyToAddr ¶
func PrivKeyToAddr(key *ecdsa.PrivateKey) common.Address
func SignTx ¶
func SignTx(tx *types.Transaction, chainID *big.Int, key *ecdsa.PrivateKey) (*types.Transaction, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.