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
startrailLUWContractAddress
string
The address of LicensedUserWallet(LUW) contract.
isCompressEnabled
boolean
Sets true if you want to compress a chunk of data with Gzip for HTTP call to Startrail-API.
txs
TxDetails
See TxDetails below.
TxDetails
functionType
'approveSRRByCommitment' | 'createSRR' | 'transferFromWithProvenance'
Functoin type you want to execute
data
approveSRRByCommitment | createSRR | transferFromWithProvenance
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
batchId
string
ID to identify transaction details in Startrail-API DB.
txs
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