Documentation
¶
Index ¶
- func BigIntFromHex(h string) *big.Int
- func EstimateGas(ctx context.Context, client *ethclient.Client, from common.Address, ...) (fee *big.Int, limit uint64, err error)
- func HexFormat(s string) string
- func HexToUint64(hex string) (uint64, error)
- func NewTransaction(ctx context.Context, client *ethclient.Client, rpcAddr, private, to string, ...) (trx *types.Transaction, err error)
- func PendingNonceAt(rpc, address string) (uint64, error)
- func SignByPrivateKey(hexKey, msg string) ([]byte, error)
- func VerifySign(hexAddr, msg string, sig []byte) (bool, error)
- type BaseResp
- type Error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BigIntFromHex ¶
func EstimateGas ¶
func EstimateGas(ctx context.Context, client *ethclient.Client, from common.Address, to *common.Address, value *big.Int, input []byte) (fee *big.Int, limit uint64, err error)
获取 fee ,limit
func HexToUint64 ¶
func NewTransaction ¶
func SignByPrivateKey ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.