withdraw
Call parameter
type withdraw_type is [@layout:comb] record [
fid : fid_type;
amt : nat;
receiver : address;
rewards_receiver : address;
]Field
Type
Description
Usage
const qFarmAddress = "KT1...";
const params = {
fid: 1,
amt: 100,
receiver: "tz1.../KT1...",
rewards_receiver: "tz1.../KT1...",
};
const qFarm = await tezos.contract.at(qFarmAddress);
const operation = await qFarm.methodsObject.withdraw(params).send();
await operation.confirmation();Errors
Last updated