Getting Started
MYTY Avatar Registry provide a REST API.
We're thrilled to announce the release of our new API, version 1. This api has enhanced features for application builder, to leverage our ecosystem. Please read this article, regarding the updates.
Getting started
First of all, you need to request an API key. Please visit Auth & Rate Limit
We have built the playground, you can easily play with our APIs.
Basics Flow
Please use following path: https://api.myty.space/v1
In order to load specific avatars into your applications, please follow the steps.
/nfts
Get supported NFT Collections to knowcollectionAddress
/assets/collections
Get theavatarColectionId
andmetadataAssetUri
of specific collection/assets/
Get the avatarassetUri
Prerequisites
Do not forget to get your API Key by contacting us
MYTY Rest API utilizes Pageable, please read this doc to have comprehensive understanding.
Please refer entity pages for further information of domains and entities.
Supported NFT Collections
Various types of avatar are provided in Avatar Registry. Request following API to get the complete list of supported NFT Collections, which is connected to the avatars. (Contact us at Auth & Rate Limit to get your API Key
)
req.
res.
With the above API call, you will be able to identify:
NFT Collection supported in MYTY Avatar Registry
collectionAddress
from.content[.address]
Get the information of avatar collection from specific NFT collection
NFT(nftCollectionAddress)
and Avatar Collection
is 1:n
relationship. For example, if you hold a cryptopunk, you may access to different shape, version of avatars.
You need to identify the number of avatar assets connected to the specific NFT Collection
req.
res. (example)
In this example, you can check that
ID of avatar collection :
.content[.id]
The
version
of avatar assets (auto incremental)MYTY Kit version
and,
MetaDataAssetUri
fromassetUri
Get the asset to render
Now it's time to download asset to render and show to your user. I assume that you have
nftCollectionAddress
is connected(1:N) to the avatar assetavatarCollectionId
isID of avatar collection
version
: specific version of your avatar assetimportantly,
tokenIds
: you want to render or load
req.
res.
Ta-da!
Now, combine metadata
and assetUri
for specific token, then your avatar will be rendered.
Last updated