Convert Metadata
To know the methods calling to Startrail API from Startrail-Sdk-Js
convertMetadata()
convertMetadata()
Metadata JSON is converted to the latest version according to the version schema
Method parameters
Variable | Type | Description |
---|---|---|
|
| Refer MetadataBatch for all possible data |
MetadataBatch
Variable | Type | Description |
---|---|---|
|
| Refer to the Startrail Registry (SRR) data schema for all possible data |
|
| Startrail Registry Record Token ID |
|
| External reference URL used in the metadata externalUrl field. Refer to the Startrail Registry (SRR) data schema for details. |
|
| The artist's name used in the metadata description field. If the SRR already exists, we use the registered artist name instead. Refer to the Startrail Registry (SRR) data schema for details. |
|
| The user's name used in the metadata description field. If the SRR already exists, we use the registered user name instead. Refer to the Startrail Registry (SRR) data schema for details. |
|
| The address of collection contract associated to the SRR |
Parameters Example
Returns
Promise
will be returned which resolves with a Response
object upon a successful confirmation. false
will be returned when user flow is cancelled in such a case that a user closes the popup modal.
If the confirmation fails, the Promise
will resolve with an {error} object that describes the failure.
Promise<Response[] | false>
Response
Variable | Type | Description |
---|---|---|
|
| Converted metadata. Refer to the Startrail Registry (SRR) data schema for all possible data |
|
| True is returned if metadata is converted |
|
| Error message is returned if any. |
Error
Custom Error
objects. Refer to the Error Catalogue for possible data.
Response Example
Last updated