Registry Contract
Registry smart contract
API
Method that registers a metadata (JSON object) with the given media id.
Metadata object structure:
[media_id: string]: {
imageUrl: string
postedAt: string
copyrightAttribution: string
hash: string
}
areRegistered(ids string) string
Method that checks whether the list of passed media ids are already registered.
Due to limitations of smart contracts API, arguments and response are in the following string format.
E.g.
areRegistered("id1,id2,id3")
// "101"
1
means that id corresponding to a position of 1
is registered,0
- id is not registered.