balance

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EVMFetcher

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

func NewEVMFetcher

func NewEVMFetcher(nodeURL string) *EVMFetcher

func (*EVMFetcher) FetchBalance

func (e *EVMFetcher) FetchBalance(ctx context.Context, tokenAddress string, walletAddress string) (*big.Int, error)

type Fetcher

type Fetcher interface {
	// FetchBalance gets the balance of the given token for the given wallet address.
	FetchBalance(ctx context.Context, tokenAddress string, walletAddress string) (*big.Int, error)
}

Fetcher defines a way to fetch balance information.

Jump to

Keyboard shortcuts

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