Bulk
To know the methods calling to Startrail API from Startrail-Sdk-Js
Last updated
To know the methods calling to Startrail API from Startrail-Sdk-Js
Last updated
©2023 Startbahn, Inc.
bulk()
Bundling bulk transactions into a single Startrail-API call.
createSRR()
approveSRRByCommitment()
transferFromWithProvenance()
Variable | Type | Description |
---|---|---|
Variable | Type | Description |
---|---|---|
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>
Custom Error
objects. Refer to the Error Catalogue for possible data.
Variable | Type | Description |
---|---|---|
Variable | Type | Description |
---|---|---|
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.
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.
batchId
string
ID to identify transaction details in Startrail-API DB.
txs
TxDetails
Transaction details
metadataCID
string
A calculated metadataCID
tokenId
string
A calculated tokenId