Documentation
¶
Index ¶
- func BuildErc20Data(toAddress common.Address, amount *big.Int) []byte
- func BuildErc721Data(fromAddress, toAddress common.Address, tokenId *big.Int) []byte
- func CreateAddressFromPrivateKey(priKey *ecdsa.PrivateKey) (string, string, error)
- func OfflineSignTx(txData *types.DynamicFeeTx, privateKey string, chainId *big.Int) (string, string, error)
- func PublicKeyToAddress(publicKey string) (string, error)
- type EthAddress
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildErc721Data ¶
func CreateAddressFromPrivateKey ¶
func CreateAddressFromPrivateKey(priKey *ecdsa.PrivateKey) (string, string, error)
func OfflineSignTx ¶
func PublicKeyToAddress ¶
Types ¶
type EthAddress ¶
type EthAddress struct { PrivateKey string `json:"private_key"` PublicKey string `json:"public_key"` Address string `json:"address"` }
func CreateAddressByKeyPairs ¶
func CreateAddressByKeyPairs() (*EthAddress, error)
Click to show internal directories.
Click to hide internal directories.