Create Request Ownership Link
Allow your users to generate a claiming link.
Before you begin
As a brand, you wish to allow your users to generate a link to make their digital passport claimable for another user.
The user must be the digital passport owner.
Let's start ๐
To trigger a transfer, use the /wallet/createCertificateRequestOwnershipLink
.
Input | Mandatory | Type | Description |
---|---|---|---|
tokenId | โ | Number | Digital passport identification number. |
passphrase | โ | String | Digital passport passphrase. |
curl -X POST "https://custodial.arianee.com/testnet/wallet/createCertificateRequestOwnershipLink" -H "accept: application/json" -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9..." -H "Content-Type: application/json" -d "[983002786,\"qoy7bdpri6me5\"]"
Result:
httpCode | Description |
---|---|
200 | Link returned. |
500 | The user is not the digital passport owner. |
{
"certificateId": 983002786,
"passphrase": "qoy7bdpri6me5",
"link": "https://test.arian.ee/983002786,qoy7bdpri6me5"
}
{
"receipt": {
"transactionHash": "0xe40160673691364d3b67a11a8536d0591262c9445dbd59833260e6f22b7b907c",
"transactionIndex": 1,
"blockHash": "0xef7ac8862725c48161f84df81627f1d0f024c2cb51bf22777febb3751931d37e",
"blockNumber": 26834339,
"cumulativeGasUsed": 143703,
"gasUsed": 28269,
"effectiveGasPrice": "0x59682f000",
"from": "0xe522d3218602e6a783dabfd77993d4bf3e9af339",
"to": "0x512c1fcf401133680f373a386f3f752b98070bc5",
"contractAddress": null,
"logs": [],
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"status": false,
"error": "Reverted 0x303037303034",
"type": "0x0"
},
"error": {
"receipt": {
"transactionHash": "0xe40160673691364d3b67a11a8536d0591262c9445dbd59833260e6f22b7b907c",
"transactionIndex": 1,
"blockHash": "0xef7ac8862725c48161f84df81627f1d0f024c2cb51bf22777febb3751931d37e",
"blockNumber": 26834339,
"cumulativeGasUsed": 143703,
"gasUsed": 28269,
"effectiveGasPrice": "0x59682f000",
"from": "0xe522d3218602e6a783dabfd77993d4bf3e9af339",
"to": "0x512c1fcf401133680f373a386f3f752b98070bc5",
"contractAddress": null,
"logs": [],
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"status": false,
"error": "Reverted 0x303037303034",
"type": "0x0"
}
}
}
Updated about 1 year ago