Documentation ¶
Index ¶
- Variables
- func FormatEther(wei *big.Int) string
- func FormatGwei(wei *big.Int) string
- func GeneratePrivateKey() (string, error)
- func NewPublicClient(params types.NewPublicClientParams) *publicclient.PublicClient
- func NewWalletClient(params types.NewWalletClientParams) *walletclient.WalletClient
- func ParseEther(etherStr string) (*big.Int, error)
- func ParseGwei(gweiStr string) (*big.Int, error)
- func PrivateKeyToAccount(privateKeyHex string) (*types.Account, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var Chains = map[string]types.Chain{
"Base": {
Id: 8453,
Name: "Base Mainnet",
RpcUrl: "https://base.llamarpc.com",
},
"Ethereum": {
Id: 1,
Name: "Ethereum Mainnet",
RpcUrl: "https://eth.llamarpc.com",
},
"Polygon": {
Id: 137,
Name: "Polygon Mainnet",
RpcUrl: "https://polygon.llamarpc.com",
},
}
Functions ¶
func FormatEther ¶
func FormatGwei ¶
func GeneratePrivateKey ¶
func NewPublicClient ¶
func NewPublicClient(params types.NewPublicClientParams) *publicclient.PublicClient
func NewWalletClient ¶
func NewWalletClient(params types.NewWalletClientParams) *walletclient.WalletClient
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.