Skip to contents

Checks if an artwork has been minted as an NFT on OpenSea. Use this to conditionally display NFT badges or enable marketplace features.

This is a lightweight check that only queries for existence of an OpenSea URL. For full NFT metadata, use get_artwork_opensea().

Usage

art_has_nft(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

TRUE if artwork has OpenSea listing, FALSE otherwise