Snip721Querier..::..GetImplementsNonTransferableTokens Method
ImplementsNonTransferableTokens is a SNIP-722 query which indicates whether the contract implements non-transferable tokens.
Because legacy SNIP-721 contracts do not implement this query and do not implement non-transferable tokens, 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 non-transferable tokens.
Because message parsing ignores input fields that a contract does not expect, this query should be used before attempting to mint a non-transferable token.
If the message is sent to a SNIP-721 contract that does not implement non-transferable tokens,
the transferable field will just be ignored and the resulting NFT will still be created, but will always be transferable.
Namespace:
SecretNET.NFTAssembly: SecretNET.NFT (in SecretNET.NFT.dll)
Syntax
public Task<SecretQueryContractResult<GetImplementsNonTransferableTokensResponse>> GetImplementsNonTransferableTokens( string contractAddress, Nullable<string> codeHash )
Public Function GetImplementsNonTransferableTokens ( _ contractAddress As String, _ codeHash As Nullable(Of String) _ ) As Task(Of SecretQueryContractResult(Of GetImplementsNonTransferableTokensResponse))
public: Task<SecretQueryContractResult<GetImplementsNonTransferableTokensResponse^>^>^ GetImplementsNonTransferableTokens( String^ contractAddress, Nullable<String^> codeHash )
Parameters
- contractAddress
- Type: String
The contract address.