Get Digital Passport Ownership Information
Let's start π
Use the /wallet/ownerOf
.
Input | Mandatory | Type | Description |
---|---|---|---|
tokenId | β | Number | Digital 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
}
isOwner
- The wallet is the current owner of the NFT.
{
"address": "0x5f4b4438efd0eae1f24db7067b624b0e030e99906e9178ff4abaacd2285e89ca",
"hasOwner": true,
"isOwner": true
}
Updated 9 months ago