Skip to contents

Creates database records linking platform artworks to their OpenSea NFT listings. This enables displaying NFT purchase links on artwork pages and tracking which pieces have been minted.

Usage

create_artwork_opensea(artist, artwork, nft_url, new_utc = NULL)

create_artist_opensea(artist, username, account, new_utc = NULL)

Arguments

artist

Character. Artist UUID. Must have OpenSea account registered in app.artist_opensea table.

artwork

Character. Artwork UUID to link to the NFT.

nft_url

Character. Full OpenSea URL to the NFT listing (e.g., "https://opensea.io/assets/ethereum/0x.../123").

new_utc

POSIXct. Timestamp for audit trail. Defaults to now.

username

Character. OpenSea username for artist account creation.

account

Character. Ethereum wallet address (0x...) for artist account creation.

Details

OpenSea integration requires artists to first register their OpenSea account via create_artist_opensea(). The artwork linking then parses the NFT URL to extract contract address, chain, and token ID.

Functions

  • create_artwork_opensea(): Build artwork_opensea record linking artwork to NFT

  • create_artist_opensea(): create table