alchemy

package
v0.161.6 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2023 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	thirdparty.NFTContractOwnershipProvider

	IsConnected     bool
	IsConnectedLock sync.RWMutex
	// contains filtered or unexported fields
}

func NewClient

func NewClient(apiKeys map[uint64]string) *Client

func (*Client) FetchNFTOwnersByContractAddress

func (o *Client) FetchNFTOwnersByContractAddress(chainID uint64, contractAddress common.Address) (*thirdparty.NFTContractOwnership, error)

func (*Client) IsChainSupported

func (o *Client) IsChainSupported(chainID uint64) bool

type NFTContractOwnership

type NFTContractOwnership struct {
	Owners  []NFTOwner `json:"ownerAddresses"`
	PageKey string     `json:"pageKey"`
}

type NFTOwner

type NFTOwner struct {
	OwnerAddress  common.Address `json:"ownerAddress"`
	TokenBalances []TokenBalance `json:"tokenBalances"`
}

type TokenBalance

type TokenBalance struct {
	TokenID *bigint.HexBigInt `json:"tokenId"`
	Balance *bigint.BigInt    `json:"balance"`
}

Jump to

Keyboard shortcuts

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