Bulk
To know the methods calling to Startrail API from Startrail-Sdk-Js
bulk()
bulk()
Bundling bulk transactions into a single Startrail-API call.
createSRR()
approveSRRByCommitment()
transferFromWithProvenance()
Method parameters
Variable | Type | Description |
---|---|---|
|
| The address of LicensedUserWallet(LUW) contract. |
|
| Sets true if you want to compress a chunk of data with Gzip for HTTP call to Startrail-API. |
|
| See TxDetails below. |
TxDetails
Variable | Type | Description |
---|---|---|
|
| Functoin type you want to execute |
|
| Refer to the Method parameters respectively from createSRR approveSRRByCommitment transferFromWithProvenance Please don't forget to extract 'startrailLUWContractAddress' from the parameters. |
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 |
---|---|---|
|
| 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