Snip20TxSimulate..::..DecreaseAllowance Method (String, String, String, Nullable<(Of <(<'Int32>)>)>, Nullable<(Of <(<'String>)>)>, Nullable<(Of <(<'String>)>)>, Nullable<(Of <(<'TxOptions>)>)>)
Simulates "DecreaseAllowance".
Namespace:
SecretNET.TokenAssembly: SecretNET.Token (in SecretNET.Token.dll)
Syntax
public Task<SimulateResponse> DecreaseAllowance( string contractAddress, string spender, string amount, Nullable<int> expiration, Nullable<string> padding, Nullable<string> codeHash, Nullable<TxOptions> txOptions )
Parameters
- contractAddress
- Type: String
The contract address.
- spender
- Type: String
The address of the account getting access to the funds.
- amount
- Type: String
The number of tokens to decrease allowance by (Uint128).
- expiration
- Type: Nullable<(Of <(<'Int32>)>)>
Time at which the allowance expires. Counts the number of seconds from epoch, 1.1.1970 encoded as uint64.
- codeHash
- Type: Nullable<(Of <(<'String>)>)>
CodeHash is (not really) optional and makes a call way faster.
- txOptions
- Type: Nullable<(Of <(<'TxOptions>)>)>
The tx options.