Create Collection
To know the methods calling to Startrail API from Startrail-Sdk-Js
createCollection()
createCollection()
Create a new SRR to a collection
Method parameters
Variable | Type | Description |
---|---|---|
|
| The address of LicensedUserWallet(LUW) contract. Sets it when you want to execute transaction by the LUW contract address |
|
| Collection name |
|
| Collection symbol |
|
| The salt used in collection creation can also serve as an identifier for querying your collection data. |
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>
The use of "txReceiptId" will soon be deprecated and removed.
Response
Variable | Type | Description |
---|---|---|
|
| ID to identify transaction details in Startrail-API DB. |
|
| Refer TX for all possible data |
TxDetails
Variable | Type | Description |
---|---|---|
|
| The address of collection contract |
|
| The salt used in collection creation can also serve as an identifier for querying your collection data. |
Error
ErrorCustom Error
objects. Refer to the Error Catalogue for possible data.
Response Example
Last updated