Publication
Last updated
function prepareToken() external returns (uint256); function ownedPrepareToken(address owner) external view returns (uint256); function post(uint256 tokenId, string memory content) external;{
"encryptionBy": "lit-protocol",
"accessCondition": [
{
"contractAddress": "${The contract address of Semantic SBT}",
"standardContractType": "ERC721",
"chain": "polygon",
"method": "isViewerOf",
"parameters": [
":userAddress",
"${The tokenId}"
],
"returnValueTest": {
"comparator": "=",
"value": true
}
}
],
"encryptedSymmetricKey": "${A hex string that LIT will use to decrypt your content as long as you satisfy the conditions}",
// encrypted content
"encryptedObject": "${The encrypted content}"
}
function isViewerOf(address viewer, uint256 tokenId) external view returns (bool); function contentOf(uint256 tokenId) external view returns (string memory content);