Burn - tx

Burn 𝔉rc20 token (only for burnable 𝔉rc20)

Example of Fixes Inscription data string:

op=burn,tick=fixes,amt=100000.0

Transaction parameters:

KeyRequiredFTypeDescription

tick

t.String

Ticker: identity of the 𝔉rc20 token

amt

t.UFix64

Amount to burn: States the amount of the 𝔉rc20 token to burn

Transaction code example:

import txBurnFRC20 from "@fixes/contracts/transactions/burn-frc20.cdc?raw";

export async function burnFRC20(
  tick: string,
  amt: number
) {
  const txid = await flow.sendTransaction(txBurnFRC20, (arg, t) => [
    arg(tick, t.String),
    arg(amt.toFixed(8), t.UFix64),
  ]);
  return txid;
}

Transaction source code

Last updated