Create SRR
To know the methods calling to Startrail API from Startrail-Sdk-Js
createSRR()
createSRR()
Issue a new SRR on Startrail. Sends a transaction to Startrail smart contract via Startrail-API.
Please call convertMetadata() in prior and replace with the converted metadata in order to keep the metadata always up to date convertMetadata()
Method parameters
Variable | Type | Description |
---|---|---|
|
| The address of LicensedUserWallet(LUW) contract. |
|
| The address of collection contract. Sets it when you want to associate collection contract address with the SRR. |
|
| If you are the primary issuer of this NFT, set this to true |
|
| The ethereum address of the artist of the artwork. |
|
| Refer to the Startrail Registry (SRR) data schema for all possible data |
|
| If you want to prevent your NFTs to be transferred on decentralized marketplaces, sets this to true |
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>
Note: txReceiptId returns currently 0 in order to avoid slow response due to the congestion for blockchin mining.
Response
Variable | Type | Description |
---|---|---|
|
| ID to identify transaction details in Startrail-API DB. |
|
| Transaction details |
TxDetails
Variable | Type | Description |
---|---|---|
|
| A calculated metadataCID |
|
| A calculated tokenId |
Error
Custom Error
objects. Refer to the Error Catalogue for possible data.
Response Example
Last updated