Snip20Tx..::..DecreaseAllowance Method (MsgDecreaseAllowance, Nullable<(Of <(<'TxOptions>)>)>)
Decrease or clear the allowance by a sent amount. This may optionally come with an expiration time, which if set limits when the approval can be used.
If amount is equal or greater than the current allowance, this action MUST set the allowance to zero, and return a "success" response.
Namespace:
SecretNET.TokenAssembly: SecretNET.Token (in SecretNET.Token.dll)
Syntax
public Task<SingleSecretTx<DecreaseAllowanceResponse>> DecreaseAllowance( MsgDecreaseAllowance msg, Nullable<TxOptions> txOptions )
Public Function DecreaseAllowance ( _ msg As MsgDecreaseAllowance, _ txOptions As Nullable(Of TxOptions) _ ) As Task(Of SingleSecretTx(Of DecreaseAllowanceResponse))
public: Task<SingleSecretTx<DecreaseAllowanceResponse^>^>^ DecreaseAllowance( MsgDecreaseAllowance^ msg, Nullable<TxOptions^> txOptions )
Parameters
- txOptions
- Type: Nullable<(Of <(<'TxOptions>)>)>