Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssetContract ¶
type Client ¶
type Client struct {
blockatlas.Request
}
func (Client) GetCollectibles ¶
func (c Client) GetCollectibles(owner string, collectibleID string) ([]Collectible, error)
func (Client) GetCollectiblesV3 ¶
func (c Client) GetCollectiblesV3(owner string, collectibleID string) (*Collection, []Collectible, error)
func (Client) GetCollections ¶
func (c Client) GetCollections(owner string) (page []Collection, err error)
type Collectible ¶
type Collectible struct { TokenId string `json:"token_id"` AssetContract AssetContract `json:"asset_contract"` ImageUrl string `json:"image_url"` ImagePreviewUrl string `json:"image_preview_url"` Name string `json:"name"` ExternalLink string `json:"external_link"` Permalink string `json:"permalink"` Description string `json:"description"` Collection CollectibleCollections `json:"collection"` }
type CollectibleCollections ¶
type CollectiblePage ¶
type CollectiblePage struct {
Collectibles []Collectible `json:"assets"`
}
type Collection ¶
type Collection struct { Name string `json:"name"` ImageUrl string `json:"image_url"` Description string `json:"description"` ExternalUrl string `json:"external_url"` Slug string `json:"slug"` Total *big.Int `json:"owned_asset_count"` Contracts []PrimaryAssetContract `json:"primary_asset_contracts"` }
func SearchCollection ¶
func SearchCollection(collections []Collection, collectibleID string) *Collection
type DisplayData ¶
type DisplayData struct {
Images []string `json:"images"`
}
type PrimaryAssetContract ¶
type PrimaryAssetContract struct { Name string `json:"name"` Address string `json:"address"` NftVersion string `json:"nft_version"` Symbol string `json:"symbol"` Description string `json:"description"` Type string `json:"schema_name"` Data DisplayData `json:"display_data"` Url string `json:"external_link"` }
Click to show internal directories.
Click to hide internal directories.