These docs are for v1.7. Click to read the latest docs for v2.1.

Get Digital Passport Ownership Information

Let's start πŸš€

Use the /wallet/ownerOf.

InputMandatoryTypeDescription
tokenIdβœ…NumberDigital passport identification number.
curl -X POST "https://custodial.arianee.com/testnet/wallet/ownerOf" -H "accept: application/json" -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJJRCI6IjBkMzg3OTJlLTVmZTYtNGZhMC04YmVmLWYwNzJhZDVkNWU4YyIsImlhdCI6MTY2MjYzMDI4NiwiZXhwIjozNzY2MjYyNjY4Nn0.Ve6ITcEdLSf5P8faQdlIpuP-FbD3i-...Q" -H "Content-Type: application/json" -d "[tokenId]"

Result: The ownership information of the tokenId is returned.

  • address - Address of the wallet.
  • hasOwner - The wallet has already owned the digital passport.
  • isOwner - The wallet is the current owner of the digital passport.
{
  "address": "0x5f4b4438efd0eae1f24db7067b624b0e030e99906e9178ff4abaacd2285e89ca",
  "hasOwner": true,
  "isOwner": true
}