SecretNET.Token Namespace

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

Simulates "Send".

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

Syntax


public Task<SimulateResponse> Send(
	string contractAddress,
	string recipient,
	string amount,
	Nullable<string> message,
	Nullable<string> padding,
	Nullable<string> codeHash,
	Nullable<TxOptions> txOptions
)
Public Function Send ( _
	contractAddress As String, _
	recipient As String, _
	amount As String, _
	message As Nullable(Of String), _
	padding As Nullable(Of String), _
	codeHash As Nullable(Of String), _
	txOptions As Nullable(Of TxOptions) _
) As Task(Of SimulateResponse)
public:
Task<SimulateResponse^>^ Send(
	String^ contractAddress, 
	String^ recipient, 
	String^ amount, 
	Nullable<String^> message, 
	Nullable<String^> padding, 
	Nullable<String^> codeHash, 
	Nullable<TxOptions^> txOptions
)

Parameters

contractAddress
Type: String
The contract address.
recipient
Type: String
Accounts SHOULD be a valid bech32 address, but contracts may use a different naming scheme as well.
amount
Type: String
The amount of tokens to send (Uint128).
message
Type: Nullable<(Of <(<'String>)>)>
Base64 encoded message, which the recipient will receive.
padding
Type: Nullable<(Of <(<'String>)>)>
Ignored string used to maintain constant-length messages.
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.