alchemy

package
v0.162.13 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 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.CollectibleContractOwnershipProvider

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

func NewClient

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

func (*Client) FetchCollectibleOwnersByContractAddress added in v0.162.13

func (o *Client) FetchCollectibleOwnersByContractAddress(chainID walletCommon.ChainID, contractAddress common.Address) (*thirdparty.CollectibleContractOwnership, error)

func (*Client) IsChainSupported

func (o *Client) IsChainSupported(chainID walletCommon.ChainID) bool

type CollectibleContractOwnership added in v0.162.13

type CollectibleContractOwnership struct {
	Owners  []CollectibleOwner `json:"ownerAddresses"`
	PageKey string             `json:"pageKey"`
}

type CollectibleOwner added in v0.162.13

type CollectibleOwner 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