Publication
Content
Publish content
The prepared tokenId and the transaction hash on Arweave for the content to be published will be used to generate a SBT, with the actual content stored on Arweave. The transaction hash on Arweave is stored on the bloclchain as the content.
Parameters:
content: The transaction hash on Arweave relating to the content. One can access the original content via this hash.
The content uploaded to Arweave is structured as follows:
Lookup published content
Lookup published content using tokenId:
Parameters:
tokenId
Return value:
content: The transaction hash on Arweave relating to the content. One can access the original content via this hash.
PrivacyContent
Prepare a tokenId
The user is preparing a tokenId.
Return value:
tokenId: The prepared tokenId
Lookup the tokenId prepared.
Parameters:
owner: The address to be looked up
Return value:
tokenId: The prepared tokenId
Publish privacy content
The prepared tokenId and the transaction hash on Arweave for the content to be published will be used to generate a SBT, with the actual privacy content and its permissions stored on Arweave. The transaction hash on Arweave is stored on the blockchain as the content.
Parameters:
tokenId: The tokenId prepared.
content: The transaction hash on Arweave relating to the privacy content and its permissions. The hash can be used to access the original content.
The content uploaded to Arweave is structured as follows:
Viewer permission
To check if a given address has access to the privacy content related to a tokenId.
Parameters:
viewer: The view's address
tokenId
Return value:
isViewer: true--has viewer permission; false--do not have viewer permission
Lookup published content
Lookup published content according to tokenId.
parameters:
tokenId
Return value:
content: The Arweave transaction value related to the published content. One can access the original content using this hash.
Last updated