Transfer - tx
Transfer πrc20 token
Example of Fixes Inscription data string:
op=transfer,tick=fixes,amt=100000.0,to=0xd2abb5dbf5e08666Transaction parameters:
Key
Required
FType
Description
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
https://github.com/fixes-world/fixes/blob/main/cadence/transactions/transfer-frc20.cdc
Related docs
Last updated