buy

The following set of functions will be used to create and get orders on your marketplace

Buying a listed NFT

import NiftySDK from 'nifty-protocol';

const niftySDK = new NiftySDK({ key: 'key', env: Nifty.envs.TESTNET });

niftySDK.initWallet(Nifty.networkTypes.EVM, provider);

const buy = (orderId) => {
    niftySDK.setStatusListener((status) => console.log(status));
    await niftySDK.buy(orderId);
};

Last updated