Skip to contents

Retrieves the artist's OpenSea NFT marketplace account information. Use this to display NFT links, verify wallet addresses, or check if an artist has connected their OpenSea account.

Returns NULL fields if the artist hasn't linked an OpenSea account. Check wallet_address to determine if NFT features should be enabled.

Usage

get_artist_opensea(artist, cn = NULL)

Arguments

artist

Character. Artist UUID (format: "746bxxxx-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 OpenSea account fields including wallet_address, url_os (OpenSea profile URL), and account metadata.