Update Metadata
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.
updateMetadata()
Update the metadata in the SRR.
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>
The use of "txReceiptId" will soon be deprecated and removed.
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.
contractAddress
string
The address of collection contract. Sets it when you want to associate collection contract address with the SRR.
tokenId
string
Startrail Registry Record Token ID
metadata
object
Refer to the Startrail Registry (SRR) data schema for all possible data
txReceiptId
string
ID to identify transaction details in Startrail-API DB.
tx
TxDetails
Transaction details
contractAddress
string
The address of collection contract associated to the SRR
metadataCID
string
A calculated metadataCID
tokenId
string
A calculated tokenId