web3

package
v0.0.0-...-ea289b0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Ethereum          int64 = 1
	Optimism          int64 = 10
	BinanceSmartChain int64 = 56
	Polygon           int64 = 137
	Fantom            int64 = 250
	Base              int64 = 8453
	Arbitrum          int64 = 42161
	Avalanche         int64 = 43114
)

Variables

Functions

func Checksum

func Checksum(address string) string

func Endpoint

func Endpoint(chainId int64) (string, error)

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New(chainId int64) (*Client, error)

func (*Client) Call

func (client *Client) Call(msg ethereum.CallMsg, blockNumber *big.Int) ([]byte, error)

func (*Client) GetAllowance

func (client *Client) GetAllowance(contract, owner, spender string) (*big.Int, error)

func (*Client) GetDecimals

func (client *Client) GetDecimals(contract string) (int, error)

func (*Client) GetSymbol

func (client *Client) GetSymbol(contract string) (string, error)

Jump to

Keyboard shortcuts

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