Create SRR
To know the methods calling to Startrail API from Startrail-Sdk-Js
Last updated
Was this helpful?
To know the methods calling to Startrail API from Startrail-Sdk-Js
Last updated
Was this helpful?
createSRR()
Issue a new SRR on Startrail. Sends a transaction to Startrail smart contract via Startrail-API.
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
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.
txReceiptId
string
ID to identify transaction details in Startrail-API DB.
tx
TxDetails
Transaction details
metadataCID
string
A calculated metadataCID
tokenId
string
A calculated tokenId
Refer to the for all possible data
Custom Error
objects. Refer to the for possible data.