flipmeme-sdk 1.3.76 → 1.3.77
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -394,6 +394,7 @@ Sells NFTs back to the collection's liquidity pool.
|
|
|
394
394
|
interface EthSellParams {
|
|
395
395
|
collectionAddress: string; // Collection contract address
|
|
396
396
|
tokenIds: number[]; // Token IDs to sell
|
|
397
|
+
minPrice: string; // Price in wei
|
|
397
398
|
}
|
|
398
399
|
```
|
|
399
400
|
|
|
@@ -410,8 +411,11 @@ Promise<ConfirmResult>;
|
|
|
410
411
|
const result = await sdk.flipSell({
|
|
411
412
|
collectionAddress: "0x1234...",
|
|
412
413
|
tokenIds: [5, 10, 15],
|
|
414
|
+
minPrice: price
|
|
413
415
|
});
|
|
414
416
|
|
|
417
|
+
//`price` is calculated by getTotalPrice function
|
|
418
|
+
|
|
415
419
|
console.log(`Sold ${result.successCount} NFTs`);
|
|
416
420
|
```
|
|
417
421
|
|