Snip721Querier..::..GetOwnerOf Method
OwnerOf returns the owner of the specified token if the querier is the owner or has been granted permission to view the owner.
If the querier is the owner, OwnerOf will also display all the addresses that have been given transfer permission.
The transfer approval list is provided as part of CW-721 compliance; however, the token owner is advised to use NftDossier for a more
complete list that includes view_owner and view_private_metadata approvals (which CW-721 is not capable of keeping private).
If no viewer is provided, OwnerOf will only display the owner if ownership is public for this token.
Namespace:
SecretNET.NFTAssembly: SecretNET.NFT (in SecretNET.NFT.dll)
Syntax
public Task<SecretQueryContractResult<GetOwnerOfResponse>> GetOwnerOf( string contractAddress, string tokenId, ViewerInfo viewerInfo, Nullable<Permit> permit, Nullable<bool> includeExpired, Nullable<string> codeHash )
Public Function GetOwnerOf ( _ contractAddress As String, _ tokenId As String, _ viewerInfo As ViewerInfo, _ permit As Nullable(Of Permit), _ includeExpired As Nullable(Of Boolean), _ codeHash As Nullable(Of String) _ ) As Task(Of SecretQueryContractResult(Of GetOwnerOfResponse))
public: Task<SecretQueryContractResult<GetOwnerOfResponse^>^>^ GetOwnerOf( String^ contractAddress, String^ tokenId, ViewerInfo^ viewerInfo, Nullable<Permit^> permit, Nullable<bool^> includeExpired, Nullable<String^> codeHash )
Parameters
- contractAddress
- Type: String
The contract address.
- tokenId
- Type: String
ID of the token being queried.
- viewerInfo
- Type: SecretNET.NFT..::..ViewerInfo
The address and viewing key performing this query.
- permit
- Type: Nullable<(Of <(<'Permit>)>)>
Authenticate with permit.