Snip20TxSimulate..::..SetViewingKey Method (String, String, Nullable<(Of <(<'String>)>)>, Nullable<(Of <(<'TxOptions>)>)>)
Simulates "SetViewingKey".
Namespace:
SecretNET.TokenAssembly: SecretNET.Token (in SecretNET.Token.dll)
Syntax
public Task<SimulateResponse> SetViewingKey( string contractAddress, string viewingKey, Nullable<string> codeHash, Nullable<TxOptions> txOptions )
Parameters
- contractAddress
- Type: String
The contract address.
- viewingKey
- Type: String
The viewing key.
- codeHash
- Type: Nullable<(Of <(<'String>)>)>
CodeHash is (not really) optional and makes a call way faster.
- txOptions
- Type: Nullable<(Of <(<'TxOptions>)>)>
The tx options.