opensea

package
v0.0.0-...-f501dc8 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssetsPath

func AssetsPath(args client.EndpointArgs) (p string)

Get alll assets

func DefaultClient

func DefaultClient() (client.C, error)

Types

type C

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

C is the opensea client

func (*C) Connect

func (opensea *C) Connect() error

Connect creats a new client instance

func (*C) Do

func (opensea *C) Do(creq client.Request) (*http.Response, error)

func (*C) Identifier

func (opensea *C) Identifier() string

Identifier identifies requests

type Endpoint

type Endpoint int

* This is a generated file, do not edit

const (
	AssetsEndpoint Endpoint
)

func (Endpoint) Path

func (endpoint Endpoint) Path(args client.EndpointArgs) string

Get takes an endpoint const and endpoint arguments to parse the URL endpoint path.

type NFT

type NFT struct {
	client.Parent
	// contains filtered or unexported fields
}

NFT is the api set for Non-Fungile Token (NFT) data

* source: https://docs.opensea.io/reference/api-overview

func NewNFT

func NewNFT(conn client.Connector) *NFT

NewNFT will return an object to query opensea NFT data

func (*NFT) Assets

func (nft *NFT) Assets(opts *model.OpenseaAssetsOptions) (m *model.OpenseaAssets, err error)

Assets retrieves assets from the NFT API, call the /assets endpoint with the desired filter parameters.

* source: https://docs.opensea.io/reference/getting-assets

Jump to

Keyboard shortcuts

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