SecretNET.NFT Namespace

Snip721Querier..::..GetApprovedForAll Method

ApprovedForAll displays all the addresses that have approval to transfer all of the specified owner's tokens. This is provided to comply with CW-721 specification, but because approvals are private on Secret Network, if the owner's viewing key is not provided, no approvals will be displayed. For a more complete list of inventory-wide approvals, the owner should use InventoryApprovals which also includes view_owner and view_private_metadata approvals.

Namespace:  SecretNET.NFT
Assembly:  SecretNET.NFT (in SecretNET.NFT.dll)

Syntax


public Task<SecretQueryContractResult<GetApprovedForAllResponse>> GetApprovedForAll(
	string contractAddress,
	string tokenId,
	string viewingKey,
	Nullable<Permit> permit,
	Nullable<bool> includeExpired,
	Nullable<string> codeHash
)
Public Function GetApprovedForAll ( _
	contractAddress As String, _
	tokenId As String, _
	viewingKey As String, _
	permit As Nullable(Of Permit), _
	includeExpired As Nullable(Of Boolean), _
	codeHash As Nullable(Of String) _
) As Task(Of SecretQueryContractResult(Of GetApprovedForAllResponse))
public:
Task<SecretQueryContractResult<GetApprovedForAllResponse^>^>^ GetApprovedForAll(
	String^ contractAddress, 
	String^ tokenId, 
	String^ viewingKey, 
	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.
viewingKey
Type: String
The token owner's viewing key.
permit
Type: Nullable<(Of <(<'Permit>)>)>
Authenticate with permit.
includeExpired
Type: Nullable<(Of <(<'Boolean>)>)>
True if expired transfer approvals should be included in the response.
codeHash
Type: Nullable<(Of <(<'String>)>)>
CodeHash is (not really) optional and makes a call way faster.

Return Value

SecretQueryContractResult<GetApprovedForAllResponse>.