study

package
v0.6.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 27, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Record a few snippets of code

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateSelector added in v0.6.2

func CalculateSelector(signature string) string

CalculateSelector calculates the Solidity function selector.

func ExtractCalldataChunks added in v0.6.2

func ExtractCalldataChunks(ctx context.Context, client *ethclient.Client, txHash common.Hash)

ExtractCalldataChunks extracts and formats the calldata (input data) of an Ethereum transaction. It retrieves the transaction by its hash, extracts the calldata, and then splits it into 32-byte (64 hexadecimal characters) chunks.

func GenRandomETHKey

func GenRandomETHKey() (privateKey *ecdsa.PrivateKey, err error)

func StrLen

func StrLen(str string) int

StrLen统计字符串长度

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL