1.3 KiB
1.3 KiB
Indexation
Stored content types
local/content_bin– binary content stored only locally (or indexer no found it on chain)onchain/content- content stored onchainonchain/content_unknown- content stored onchain, but we don't have a private key to decrypt it
Content item may have multiple types, for example, local/content_bin and onchain/content.
But content cover, content metadata and decrypted content always stored locally.
Content Ownership Proof NFT Values Cell Deserialization
values:^[
content_hash:uint256
metadata:^[
offchain?:int1 = always 1
https://my-public-node-1.projscale.dev/*:bytes
]
content:^[
content_cid:^Cell = b58encoded CID
cover_cid:^Cell = b58encoded CID
metadata_cid:^Cell = b58encoded CID
]
]
Available content statuses
UPLOAD_TO_BTFS– content is stored locally, upload all content parts to BTFS. This status means that payment is received yet.
Upload content flow
- User uploads content to server (/api/v1/storage)
- User uploads content cover to server (/api/v1/storage)
- User send /api/v1/blockchain.sendNewContentMessage to server and accept the transaction in wallet
- Indexer receives the transaction and indexes the content. And send telegram notification to user.