Register Asset with Schema πŸ”’

An asset must be registered to a schema in order to generate the Asset Tree.

Register On-Chain collection with schema

Currently, anyone can make the call to register a collection with a schema. Eventually, this will be locked down to the owner of the on-chain collection based on the owner of the NFT contract.

GraphQL Mutation

mutation RegisterCollection($input: CollectionInput!) {
  registerCollection(input: $input) {
    ... on SchemaCollectionSuccess {
      collectionId
      schemaIdentifier
      version
    }
    ... on SchemaCollectionFailure {
      errors {
        message
      }
    }
  }
}
{
  "input": {
    "collectionId": "1:evm:0x6bca6de2dbdc4e0d41f7273011785ea16ba47182",
    "schemaIdentifier": "http://schema.futureverse.dev/fv#TNLBoxer"
  }
}

Register Off-Chain Asset with schema πŸ”’

Only the off-chain asset creator can register a schema to the asset.

Same as Registering an on-chain asset with a schema.

Β© 2023 -> ♾️