Since postMessage() would be needed for operating this widget, caller is expected to use window.open on the above urls.
Input Params
Query strings are also passed into NFT Portal if user choose to mint NFT after ISCN is registered. Please refer to NFT Portal Reference for the supported query string.
PostMessage input format
Mark widget as ready
Send this action to switch widget to ready to accept mode.
File data should be encoded in base64, with proper mimeType defined. filename can either be the actual filename, or include a directory path as prefix.
If multiple files are to be uploaded, an index.html must be included which would be shown as the default page when the files are accessed through Arweave or IPFS.
Act as a whitelist host for postMessage, actual redirect is not implemented, please use with opener below
opener
default 0. If set, would fire a postMessage back to window.opener with redirect_uri host as target, then close current window
mint
set to 1 to skip the success window after ISCN registration and skip to Writing NFT minting screen directly
iscn_id
(optional) For updating existing ISCN record, the encoded ISCN ID for update. Note that the record would be completely overwritten with the new metadata
action
INIT_WIDGET
action
SUBMIT_ISCN_DATA
data
ISCN Data for submission
data.files
Array of files to be uploaded to Arweave, must contain an index.html if more than one file. Please refer to the tables below for file formats
data.metadata
ISCN metadata. Please refer to the tables below for metadata formats
name
Required
Name for the ISCN content
"Computing recursive function with matrix multiplication"
description
Recommended
Description for the ISCN content
"An article on computing recursive function with matrix multiplication."
Stakeholder list as defined in ISCN specification. If author or publisher is defined, they will be automatically appended into stakeholders by the widget
{ "rewardProportion": 5, "contributionType": "http://schema.org/citation", "footprint": "https://en.wikipedia.org/wiki/Fibonacci_number", "description": "The blog post referred the matrix form of computing Fibonacci numbers." }
fingerprints
Optional
Fingerprint of the content, e.g. SHA hash, IPFS hash and Arweave ID. If files are defined, resulting Arweave ID and IPFS hash will be automatically appended into fingerprints
One of matters, depub , an arbitrary string representing ID of a publisher, or a stakeholder object . Publisher object allow platforms to add itself into stakeholders and define rewardProportion
{"entity":{"description":"Matters is a decentralized, cryptocurrency driven content creation and discussion platform.","@id":"https://matters.news/","name":"Matters"},"rewardProportion":0}