SecretNET.Token Namespace

Snip20TxSimulate..::..SetViewingKey Method (String, String, Nullable<(Of <(<'String>)>)>, Nullable<(Of <(<'TxOptions>)>)>)

Simulates "SetViewingKey".

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

Syntax


public Task<SimulateResponse> SetViewingKey(
	string contractAddress,
	string viewingKey,
	Nullable<string> codeHash,
	Nullable<TxOptions> txOptions
)
Public Function SetViewingKey ( _
	contractAddress As String, _
	viewingKey As String, _
	codeHash As Nullable(Of String), _
	txOptions As Nullable(Of TxOptions) _
) As Task(Of SimulateResponse)
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.

Return Value

SimulateResponse.