nftport

package
v0.0.0-...-febeaf7 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Chain    = "rinkeby"
	StatusOK = "OK"
	URL      = "https://api.nftport.xyz"
)

Variables

View Source
var (
	ErrUnknown = errors.New("unknown error")
)

Functions

This section is empty.

Types

type Client

type Client interface {
	GetNFT(ctx context.Context, contractAddress string, tokenID string) (model.NFT, error)
	ListAccountNFTs(
		ctx context.Context,
		address string,
		pageSize int,
		pageToken string,
	) ([]model.NFT, string, error)
	ListContractNFTs(
		ctx context.Context,
		address string,
		pageSize int,
		pageToken string,
	) ([]model.NFT, string, error)
}

func NewClient

func NewClient(config *Config) Client

type Config

type Config struct {
	APIKey string `yaml:"apiKey"`
}

func NewConfig

func NewConfig(cfg *config.YAML) (*Config, error)

Jump to

Keyboard shortcuts

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