Skip to content

rmnftofr.a ​

Cancel the offer made on the Uniq

Technical Behavior ​

Note that rmnftofr.a is used to cancel the offer made by mknftofr.a only.

A buyer can cancel any of his offers at any time

Once offer is expired, anyone can cancel the offer.

When an 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
nft_iduint64_tNumberID of Uniq
offer_iduint64_tNumberID of the offer made on Uniq
memostringStringMemo

CLI - cleos ​

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

JavaScript - eosjs ​

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