Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHDWallet ¶
Types ¶
type Signer ¶
type Signer interface { // The signer ether address Addresss() string // SignTypedData implement eip712 sign ... SignTypedData(typedData *TypedData) ([]byte, error) // SignTransaction sign ether transaction SignTransaction(tx *Transaction) error }
Signer the ethers signer ....
type Transaction ¶
type Transaction struct { AccountNonce uint64 `json:"nonce" gencodec:"required"` Price *big.Int `json:"gasPrice" gencodec:"required"` GasLimit *big.Int `json:"gas" gencodec:"required"` Recipient *[20]byte `json:"to" rlp:"nil"` // nil means contract creation Amount *big.Int `json:"value" gencodec:"required"` Payload []byte `json:"input" gencodec:"required"` V *big.Int `json:"v" gencodec:"required"` R *big.Int `json:"r" gencodec:"required"` S *big.Int `json:"s" gencodec:"required"` }
Transaction ether transaction object
func (*Transaction) Encode ¶
func (tx *Transaction) Encode() ([]byte, error)
Encode encode tx to raw transaction bytes
func (*Transaction) SignHash ¶
func (tx *Transaction) SignHash() []byte
Click to show internal directories.
Click to hide internal directories.