Documentation ¶
Index ¶
- func DecodeTx(data []byte) (*types.Transaction, error)
- func DecodeVRS(bs [65]byte) (v, r, s *big.Int)
- func EncodeTx(tx *types.Transaction) ([]byte, error)
- func EncodeVRS(tx *types.Transaction) [65]byte
- func HexToPrivKey(key string) (*ecdsa.PrivateKey, []byte, error)
- func HexToPubKey(key string) (ed25519.PubKey, []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)
- type ABIWrapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodeVRS ¶
func EncodeVRS(tx *types.Transaction) [65]byte
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 ¶
type ABIWrapper ¶
type ABIWrapper struct {
// contains filtered or unexported fields
}
func MustParseABI ¶
func MustParseABI(abiJSON string) ABIWrapper
func (ABIWrapper) GetABI ¶
func (a ABIWrapper) GetABI() abi.ABI
func (ABIWrapper) MustPack ¶
func (a ABIWrapper) MustPack(name string, args ...interface{}) []byte
func (ABIWrapper) MustUnpack ¶
func (a ABIWrapper) MustUnpack(name string, data []byte) []interface{}
Click to show internal directories.
Click to hide internal directories.