SecretNET.Token Namespace

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

Simulates "CreateViewingKey".

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

Syntax


public Task<SimulateResponse> CreateViewingKey(
	string contractAddress,
	string entropy,
	Nullable<string> padding,
	Nullable<string> codeHash,
	Nullable<TxOptions> txOptions
)
Public Function CreateViewingKey ( _
	contractAddress As String, _
	entropy As String, _
	padding As Nullable(Of String), _
	codeHash As Nullable(Of String), _
	txOptions As Nullable(Of TxOptions) _
) As Task(Of SimulateResponse)
public:
Task<SimulateResponse^>^ CreateViewingKey(
	String^ contractAddress, 
	String^ entropy, 
	Nullable<String^> padding, 
	Nullable<String^> codeHash, 
	Nullable<TxOptions^> txOptions
)

Parameters

contractAddress
Type: String
The contract address.
entropy
Type: String
String used as part of the entropy supplied to the rng that generates the random viewing key.
padding
Type: Nullable<(Of <(<'String>)>)>
An ignored string that can be used to maintain constant message length.
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.