NFT Portal Reference

NFT Portal technical reference

URL Portal

Allows inputting https URL or ISCN ID to prepare minting of Writing NFT

Base URL

Testnet: https://app.testnet.like.co/nft/url

Production: https://app.like.co/nft/url

Input Params

Query StringDescription

url

(optional) Prefill target URL

iscn_id

(optional) Prefill target ISCN ID

liker_id

(optional) Enforce Liker ID checking on user, an error would be prompted if target Liker ID is not used

Other query strings are passed below to the ISCN page.

ISCN Page

Mints an ISCN into Writing NFT

Base URL

Testnet: https://app.testnet.like.co/nft/iscn/${uri_encoded_iscn_id}/

Production: https://app.like.co/nft/iscn/${uri_encoded_iscn_id}/

Input Params

nft_prefix

(optional) Override NFT name prefix, default is Writing NFT

class_id

(optional) Existing NFT Class ID to resume minting process from

redirect_uri

(optional) Act as a whitelist host for postMessage, actual redirect is not implemented, please use with opener below

opener

(optional) default false. If set, would fire a postMessage back to window.opener with redirect_uri host as target, then close current window

PostMessage Event Format

window.opener.postMessage(JSON.stringify({
  action: 'NFT_MINT_DATA',
  data: {
    iscnId,
    classId,
    nftCount,
    sellerWallet,
  },
}), this.redirectOrigin)

Last updated