infura

package
v0.159.3 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: MPL-2.0 Imports: 10 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(apiKey string, apiKeySecret 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:"owners"`
	Network string     `json:"network"`
	Cursor  string     `json:"cursor"`
}

type NFTOwner

type NFTOwner struct {
	ContractAddress common.Address `json:"tokenAddress"`
	TokenID         *bigint.BigInt `json:"tokenId"`
	Amount          *bigint.BigInt `json:"amount"`
	OwnerAddress    common.Address `json:"ownerOf"`
}

Jump to

Keyboard shortcuts

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