SecretNET.NFT Namespace

Snip721Querier..::..GetRoyaltyInfo Method

If a token_id is provided in the request, RoyaltyInfo returns the royalty information for that token. This implementation will only display a token's royalty recipient addresses if the querier has permission to transfer the token. If no token_id is requested, RoyaltyInfo displays the default royalty information for the contract. This implementation will only display the contract's default royalty recipient addresses if the querier is an authorized minter.

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

Syntax


public Task<SecretQueryContractResult<GetRoyaltyInfoResponse>> GetRoyaltyInfo(
	string contractAddress,
	string tokenId,
	ViewerInfo viewerInfo,
	Nullable<Permit> permit,
	Nullable<string> codeHash
)
Public Function GetRoyaltyInfo ( _
	contractAddress As String, _
	tokenId As String, _
	viewerInfo As ViewerInfo, _
	permit As Nullable(Of Permit), _
	codeHash As Nullable(Of String) _
) As Task(Of SecretQueryContractResult(Of GetRoyaltyInfoResponse))
public:
Task<SecretQueryContractResult<GetRoyaltyInfoResponse^>^>^ GetRoyaltyInfo(
	String^ contractAddress, 
	String^ tokenId, 
	ViewerInfo^ viewerInfo, 
	Nullable<Permit^> permit, 
	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.
codeHash
Type: Nullable<(Of <(<'String>)>)>
CodeHash is (not really) optional and makes a call way faster.

Return Value

SecretQueryContractResult<GetRoyaltyInfoResponse>.