Skip to content

rmfctofr.a ​

Cancel the offer made on the Uniq factory.

Technical Behavior ​

Note that rmfctofr.a is used to cancel the offer made by mkfctofr.a only.

A buyer can cancel any of their offers at any time.

Once the offer is expired, anyone can cancel the offer.

When the offer is canceled, the offered price will be transferred from eosio.nftofr account back to buyer.

Action Parameters ​

Property NameC++ TypeJavaScript TypeDescription
cancelernameStringAccount who cancels an offer
factory_iduint64_tNumberID of Uniq factory
offer_iduint64_tNumberID of the offer made on Uniq
memostringStringMemo

CLI - cleos ​

bash
cleos push action eosio.nft.ft rmfctofr.a '{"canceler": "alice", "factory_id": 1, "offer_id": 2, "memo": "cancel the offer"}' -p alice@active

JavaScript - eosjs ​

js
await transact(
    [
        {
            account: 'eosio.nft.ft',
            name: 'rmfctofr.a',
            authorization: [{ actor: 'alice', permission: 'active' }],
            data: {
                canceler: "alice",
                factory_id: 1,
                offer_id: 2,
                memo: "new offer"
            },
        },
    ],
    {
        blocksBehind: 3,
        expireSeconds: 30,
    }
);