SecretNET.NFT Namespace

Snip721Tx..::..SetViewingKey Method

SetViewingKey is used to set the viewing key to a predefined string. It will replace any key that currently exists. It would be best for users to call CreateViewingKey to ensure a strong key, but this function is provided so that contracts can also utilize viewing keys.

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

Syntax


public Task<SingleSecretTx<SetViewingKeyResponse>> SetViewingKey(
	MsgSetViewingKey msg,
	Nullable<TxOptions> txOptions
)
Public Function SetViewingKey ( _
	msg As MsgSetViewingKey, _
	txOptions As Nullable(Of TxOptions) _
) As Task(Of SingleSecretTx(Of SetViewingKeyResponse))
public:
Task<SingleSecretTx<SetViewingKeyResponse^>^>^ SetViewingKey(
	MsgSetViewingKey^ msg, 
	Nullable<TxOptions^> txOptions
)

Parameters

msg
Type: SecretNET.NFT..::..MsgSetViewingKey
The MSG.
txOptions
Type: Nullable<(Of <(<'TxOptions>)>)>
The tx options.

Return Value

SingleSecretTx<SetViewingKeyResponse>.