Snip721Querier..::..GetImplementsTokenSubtype Method
ImplementsTokenSubtype is a SNIP-722 query which indicates whether the contract implements the token_subtype Extension field.
Because legacy SNIP-721 contracts do not implement this query and do not implement token subtypes, any use of this query should always check for an error response,
and if the response is an error, it can be considered that the contract does not implement subtypes.
Because message parsing ignores input fields that a contract does not expect, this query should be used before attempting a message that uses the token_subtype Extension field.
If the message is sent to a SNIP-721 contract that does not implement token_subtype, that field will just be ignored and the resulting NFT will still be created/updated,
but without a token_subtype.
Namespace:
SecretNET.NFTAssembly: SecretNET.NFT (in SecretNET.NFT.dll)
Syntax
public Task<SecretQueryContractResult<GetImplementsTokenSubtypeResponse>> GetImplementsTokenSubtype( string contractAddress, Nullable<string> codeHash )
Public Function GetImplementsTokenSubtype ( _ contractAddress As String, _ codeHash As Nullable(Of String) _ ) As Task(Of SecretQueryContractResult(Of GetImplementsTokenSubtypeResponse))
public: Task<SecretQueryContractResult<GetImplementsTokenSubtypeResponse^>^>^ GetImplementsTokenSubtype( String^ contractAddress, Nullable<String^> codeHash )
Parameters
- contractAddress
- Type: String
The contract address.