Skip to contents

Retrieves NFT listing information for an artwork on OpenSea. Use this to display NFT badges, link to marketplace listings, or verify minting status.

Returns NULL/empty if the artwork hasn't been minted as an NFT. Check the is_nft flag from get_artwork_index() first to avoid unnecessary queries.

Usage

get_artwork_opensea(artist, artwork, cn = NULL)

Arguments

artist

Character. Artist UUID (format: "746bxxxx-xxxx-xxxx-xxxxxxxxxxxx"). Validated with artcore::validate_uuid() where applicable.

artwork

Character. Artwork UUID (format: "99xxxxxx-xxxx-xxxx-xxxxxxxxxxxx"). Validated with artcore::validate_uuid() where applicable.

cn

Database connection. If NULL, creates a connection via artcore::dbc() and closes it on exit. Pass an existing connection to batch multiple queries efficiently.

Value

List with: url_os (OpenSea listing URL), contract_address, token_id, and minting metadata