@darenft/marketplace-sdk
v0.0.21
Published
Example: ```
Downloads
2
Keywords
Readme
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(
...
));