SecretNET.Token Namespace

Snip20Tx..::..Redeem Method (String, String, Nullable<(Of <(<'String>)>)>, Nullable<(Of <(<'String>)>)>, Nullable<(Of <(<'String>)>)>, Nullable<(Of <(<'TxOptions>)>)>)

Redeems tokens in exchange for native coins. The redeemed tokens SHOULD be burned, and taken out of the pool.

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

Syntax


public Task<SingleSecretTx<RedeemResponse>> Redeem(
	string contractAddress,
	string amount,
	Nullable<string> denom,
	Nullable<string> padding,
	Nullable<string> codeHash,
	Nullable<TxOptions> txOptions
)
Public Function Redeem ( _
	contractAddress As String, _
	amount As String, _
	denom As Nullable(Of String), _
	padding As Nullable(Of String), _
	codeHash As Nullable(Of String), _
	txOptions As Nullable(Of TxOptions) _
) As Task(Of SingleSecretTx(Of RedeemResponse))
public:
Task<SingleSecretTx<RedeemResponse^>^>^ Redeem(
	String^ contractAddress, 
	String^ amount, 
	Nullable<String^> denom, 
	Nullable<String^> padding, 
	Nullable<String^> codeHash, 
	Nullable<TxOptions^> txOptions
)

Parameters

contractAddress
Type: String
The contract address.
amount
Type: String
The amount of tokens to redeem to (Uint128).
denom
Type: Nullable<(Of <(<'String>)>)>
Denom of tokens to mint. Only used if the contract supports multiple denoms.
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

SingleSecretTx<RedeemResponse>.