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
startrailLUWContractAddress
string
The address of LicensedUserWallet(LUW) contract.
contractAddress
string
The address of collection contract. Sets it when you want to associate collection contract address with the SRR.
isPrimaryIssuer
boolean
If you are the primary issuer of this NFT, set this to true
artistAddress
string
The ethereum address of the artist of the artwork.
metadata
object
lockExternalTransfer
boolean
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
txReceiptId
string
ID to identify transaction details in Startrail-API DB.
tx
TxDetails
Transaction details
TxDetails
metadataCID
string
A calculated metadataCID
tokenId
string
A calculated tokenId
Error
Custom Error
objects. Refer to the Error Catalogue for possible data.
Response Example
Last updated