Declare as Missing or Stolen
The digital passport issuer can declare a product as missing or stolen.
- If you set a digital passport as stolen, the missing status is automatically set as
true
.- If you unset a digital passport stolen status, the missing status is not automatically set as
false
.
Check if digital passport status is set as missing
Method.
creator.protocolV1.arianeeLost.isMissing(smartAssetId)
Parameter | Type | Required | Description |
---|---|---|---|
smartAssetId | String | ✅ | Digital passport identification number. |
Return Payload
promise
returns the digital passport missing status with boolean
:
true
: the digital passport status is set as missing.false
: the digital passport status is not set as missing.
Check if digital passport status is set as stolen
Method
creator.protocolV1.arianeeLost.isStolen(smartAssetId)
Parameter | Type | Required | Description |
---|---|---|---|
smartAssetId | String | ✅ | Digital passport identification number. |
Return Payload
promise
returns the digital passport missing status with boolean
:
true
: the digital passport status is set as stolen.false
: the digital passport status is not set as stolen.
Set or unset missing status
Method
creator.protocolV1.arianeeLost.setMissingStatus(smartAssetId,isMissing,overrides)
Parameter | Type | Required | Description |
---|---|---|---|
smartAssetId | String | ✅ | Target digital passport identification number. |
isMissing | Boolean | ✅ | true : Set the status as missing.false : Unset the missing status. |
overrides | gasPrice , gasLimit , maxFeePerGas , maxPriorityPerGas | ❌ | Allows you to override the gas/gasprice part to be able to move transactions through more quickly if needed. |
Return Payload
promise
returns the smartAssetId
and the new missing status of the digital passport.
Set or unset stolen status
Method
creator.protocolV1.arianeeLost.setStolenStatus(smartAssetId,isMissing,overrides)
Parameter | Type | Required | Description |
---|---|---|---|
smartAssetId | String | ✅ | Target digital passport identification number. |
isStolen | Boolean | ✅ | true : Set the status as stolen.false : Unset the stolen status. |
overrides | gasPrice , gasLimit , maxFeePerGas , maxPriorityPerGas | ❌ | Allows you to override the gas/gasprice part to be able to move transactions through more quickly if needed. |
Return Payload
promise
returns the smartAssetId
and the new stolen status of the digital passport.
Updated 29 days ago