Skip to main content

List an item

Updating an item will upload the new metadata file to IPFS, and update item attributes Royalties are listed in basis points (BPS). 100 BPS is equal to 1%. Royalties will be paid as soon as an item has been shipped.
import { mkt } from './config'

const listing = await mkt.update({
  id: '<ITEM_MARKETPLACE_ID>',

  name: 'My Item',
  description: 'This is my item',
  category: 'Clothing',
  color: 'blue',
  tags: ['sale']
  brand: 'brand',
  nftType: 'physical'
  status: 'listed',

  royalty: { 
    royaltyAmount: 300, // 3% royalty
    receiver: '0x123' 
  },
  price: 100, // $1
  quantityDiff: 1,

  images: ['image_url', File],
  primaryImageIndex: 0,
})
I