@darenft/marketplace-sdk
TypeScript icon, indicating that this package has built-in type declarations

0.0.21 • Public • Published

Example:


import { MarketPlace } from '@darenft/marketplace';

const marketplace = new MarketPlace({
    serviceApi: 'https://api.dareplay.io',
    provider: ethers.Provider,

    contracts: {
        97: {
            marketplace: '0x5dB0A1E62e81331d76B06123a3CF16611890720b',
            StrategyStandardSaleForFixedPriceV1B: ''
        }
    }
});

// Listing

marketplace.execute(new CreateSellOrder(
    signer,
    collection,
    price,
    tokenId,
    amount,
    currency,
    startTime,
    endTime
));

// Buy
marketplace.execute(new CreateBuyOrder(
    ...
));

// Cancel Listing
marketplace.execute(new CancelSellOrder(
    ...
));


/@darenft/marketplace-sdk/

    Package Sidebar

    Install

    npm i @darenft/marketplace-sdk

    Weekly Downloads

    2

    Version

    0.0.21

    License

    ISC

    Unpacked Size

    134 kB

    Total Files

    88

    Last publish

    Collaborators

    • annguyen-darenft
    • clipsub
    • vuquangthinh
    • vitcon