Transfer - tx

Transfer 𝔉rc20 token

Example of Fixes Inscription data string:

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

Transaction parameters:

KeyRequiredFTypeDescription

tick

t.String

Ticker: identity of the 𝔉rc20 token

amt

t.UFix64

Amount to transfer: States the amount of the 𝔉rc20 to transfer.

to

t.Address

The recipient of 𝔉rc20 tokens.

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