Snip20TxSimulate..::..Redeem Method (String, String, Nullable<(Of <(<'String>)>)>, Nullable<(Of <(<'String>)>)>, Nullable<(Of <(<'String>)>)>, Nullable<(Of <(<'TxOptions>)>)>)
Simulates "Redeem".
Namespace:
SecretNET.TokenAssembly: SecretNET.Token (in SecretNET.Token.dll)
Syntax
public Task<SimulateResponse> 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.
- codeHash
- Type: Nullable<(Of <(<'String>)>)>
CodeHash is (not really) optional and makes a call way faster.
- txOptions
- Type: Nullable<(Of <(<'TxOptions>)>)>
The tx options.