Skip to main content

Token URI Resource Object

Resource object and functionalities are subject to change

Attributes#

name string#

Name attribute of the Unit Card object

image multi type#

First occurrence in imageUrls or videoUrls from Unit Card object it is highly recommended using a permanent file storage system, (i.e. IPFS).

description string#

This field is extracted from a metadata field where the key is description, and the creator is the same as the one that initiated the unit card resource.

note

In order to detect this field the following parameters need to be detected in the metadata resource.

  • key: description
  • value: {string format}
  • createdBy: {same ORG than unit card}
  • metaType: NO_TYPE
  • visibility: PUBLIC

For example,

{
"key": "description",
"value": "This asset was build by artisans from Japan, in the Edo Era, the ceramic used was recollected from the Mogami River",
"createdBy": "ORG1",
"metaType": "NO_TYPE",
"visibility": "PUBLIC"
}

If the metadata resource does not exists, or it's not properly defined. Description field will be filled with the following paragraph.

"Olyn Unit cards represent a digitized version of the real asset that can act as a Proof-of-Ownership of such asset."

externalUrl string#

This is the URL that will be attached in the token of the unit card.

If the parameter is not defined, the following URL will act a placeholder. "https://rolywallet.com"

attributes hash#

Array of objects which defines certain descriptors of the unit card in the token.

By default, the following attributes are defined. In the future, all metadata resources with visibility.PUBLIC will be included in this set.

[
{
"display_type": "CREATOR",
"value": "OKEY"
},
{
"display_type": "data",
"trait_type": "REGISTRY DATA",
"value": 1635600793.718
},
{
"display_type": "OLYN ID",
"value": "617d65b93d30a7b2263fc50f"
},
{
"display_type": "number",
"trait_type": "GENERATION",
"value": 1
}
]

Token Object#

{
"name": "PRO TOUR 4000",
"image": "https://d1udle4ydufmy1.cloudfront.net/60a4befe2026330e72ecdb0b/original-60a4beff2026330e72ecdb0c.jpg",
"description": "Olyn Unit cards represent a digitized version of the real asset that can act as a Proof-of-Ownership of such asset.",
"externalUrl": "https://www.rolywallet.com",
"attributes": [
{
"display_type": "CREATOR",
"value": "OKEY"
},
{
"display_type": "data",
"trait_type": "REGISTRY DATA",
"value": 1635600793.718
},
{
"display_type": "OLYN ID",
"value": "617d65b93d30a7b2263fc50f"
},
{
"display_type": "number",
"trait_type": "GENERATION",
"value": 1
}
]
}