Snip20Tx..::..SetViewingKey Method (MsgSetViewingKey, Nullable<(Of <(<'TxOptions>)>)>)
Set a viewing key with a predefined value for Cosmos message sender, without creating it. This is useful to manage multiple SNIP-20 tokens using the same viewing key.
If a viewing key is already set, the contract MUST replace the current key.If a viewing key is not set, the contract MUST set the provided key as the viewing key.
It is NOT RECOMMENDED to use this function to create easy to remember passwords for users, but this is left up to implementors to enforce.
Namespace:
SecretNET.TokenAssembly: SecretNET.Token (in SecretNET.Token.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
- txOptions
- Type: Nullable<(Of <(<'TxOptions>)>)>