bounce

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2021 License: MIT Imports: 9 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 {
	client.Request
}

func InitClient

func InitClient(url string) *Client

func (*Client) GetCollectibles

func (c *Client) GetCollectibles(owner, collectionID string, coinIndex uint) (types.CollectiblePage, error)

func (*Client) GetCollections

func (c *Client) GetCollections(owner string, coinIndex uint) (types.CollectionPage, error)

type Collectible

type Collectible struct {
	ContractAddr string `json:"contract_addr"`
	ContractName string `json:"contract_name,omitempty"`
	TokenID      string `json:"token_id"`
	OwnerAddr    string `json:"owner_addr"`
	TokenURI     string `json:"token_uri"`
}

type CollectibleList

type CollectibleList struct {
	Collectibles []Collectible `json:"tokens"`
}

type CollectibleResponse

type CollectibleResponse struct {
	Response
	Data CollectibleList `json:"data"`
}

type Collection

type Collection struct {
	ContractAddr string `json:"contract_addr"`
	ContractName string `json:"contract_name,omitempty"`
	TokenType    string `json:"token_type"`
	TokenID      string `json:"token_id"`
	OwnerAddr    string `json:"owner_addr"`
	Balance      string `json:"balance"`
	TokenURI     string `json:"token_uri"`
}

type CollectionInfo

type CollectionInfo struct {
	Name        string `json:"name"`
	Description string `json:"description"`
	Image       string `json:"image"`
}

type CollectionList

type CollectionList struct {
	Collections []Collection `json:"nfts721"`
}

type CollectionResponse

type CollectionResponse struct {
	Response
	Data CollectionList `json:"data"`
}

type Response

type Response struct {
	Code int    `json:"code"`
	Msg  string `json:"msg"`
}

Jump to

Keyboard shortcuts

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