Transfer - tx

Transfer 𝔉rc20 token

Example of Fixes Inscription data string:

op=transfer,tick=fixes,amt=100000.0,to=0xd2abb5dbf5e08666

Transaction parameters:

Transaction code example:

import txTransferFRC20 from "@fixes/contracts/transactions/transfer-frc20.cdc?raw";

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

Transaction source code

Last updated