Snip20Tx..::..Burn Method (String, String, Nullable<(Of <(<'String>)>)>, Nullable<(Of <(<'String>)>)>, Nullable<(Of <(<'TxOptions>)>)>)
MUST remove amount tokens from the balance of the Cosmos message sender and MUST reduce the total supply by the same amount.
MUST NOT transfer the funds to another account.
Namespace:
SecretNET.Token
Assembly:
SecretNET.Token (in SecretNET.Token.dll)
Syntax
public Task<SingleSecretTx<BurnResponse>> Burn( string contractAddress, string amount, Nullable<string> padding, Nullable<string> codeHash, Nullable<TxOptions> txOptions )
Parameters
- contractAddress
- Type: String
The contract address.
- amount
- Type: String
The amount of tokens to burn (Uint128).
- codeHash
- Type: Nullable<(Of <(<'String>)>)>
CodeHash is (not really) optional and makes a call way faster.
- txOptions
- Type: Nullable<(Of <(<'TxOptions>)>)>
The tx options.