nfts

package
v3.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithOrder

func WithOrder(order string) listOption

WithOrder specifies the ordering of results. Valid values: h24_volume_native_asc, h24_volume_native_desc, floor_price_native_asc, floor_price_native_desc, market_cap_native_asc, market_cap_native_desc, market_cap_usd_asc, market_cap_usd_desc, etc.

func WithPage

func WithPage(page int64) listOption

WithPage specifies which page of results to return.

func WithPerPage

func WithPerPage(perPage int64) listOption

WithPerPage specifies the number of results per page. Valid values: 1..250

Types

type NftsClient

type NftsClient struct {
	*internal.Client
}

func NewClient

func NewClient(c geckohttp.HttpClient, url string) *NftsClient

func (*NftsClient) NftsContract

func (c *NftsClient) NftsContract(ctx context.Context, assetPlatform, contract string) (*types.NftId, error)

NftsContract allows you to query all the NFT data (name, floor price, 24 hr volume....) based on the nft collection contract address and respective asset platform.

👍 Tips

    You may also obtain the asset platform id and contract address through /nfts/list endpoint

📘 Notes

    Solana NFT & Art Blocks are not supported for this endpoint, please use /nfts/{id} endpoint instead
    Cache / Update Frequency: every 60 seconds for all the API plans

func (*NftsClient) NftsId

func (c *NftsClient) NftsId(ctx context.Context, id string) (*types.NftId, error)

NftsId allows you to query all the NFT data (name, floor price, 24 hr volume....) based on the nft collection id.

📘 Notes

    Cache / Update Frequency: every 60 seconds for all the API plans

func (*NftsClient) NftsList

func (c *NftsClient) NftsList(ctx context.Context, options ...listOption) ([]types.Nft, error)

NftsList allows you to query all supported NFTs with id, contract address, name, asset platform id and symbol on CoinGecko.

👍 Tips

    You may use this endpoint to query the list of nfts for other endpoints that contain params like id (nft collection’s id) as well as asset_platform_id and contract_address
    You may include values such as per_page and page to specify how many results you would like to show in the responses per page and which page of responses you would like to show

📘 Notes

    The responses are paginated to 100 items
    Cache / Update Frequency: every 5 minutes for all the API plans

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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