-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Adam
committed
Feb 12, 2024
1 parent
70ce641
commit e9c2e6a
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
title: Create Auction | ||
tags: | ||
- how-to | ||
- auction | ||
--- | ||
|
||
import Tabs from '@theme/Tabs'; | ||
import TabItem from '@theme/TabItem'; | ||
import DeepLink from '../../_admonitions/_deep_link.md' | ||
|
||
Auction APIs allows you to run generic auction without or with an asset. Asset can be NFT. | ||
|
||
<Tabs> | ||
<TabItem value="otr" label="OTR"> | ||
To create auction, you must call [`AuctionOtrDataset`](../../reference-api/classes/AuctionOtrDataset.md#create) on `dataset(Dataset.AUCTION)`. | ||
[`create`](../../reference-api/classes/AuctionOtrDataset.md#create) takes an object of type [`AuctionCreateTangleRequest`](../../reference-api/interfaces/AuctionCreateTangleRequest.md) as parameter. | ||
|
||
```tsx file=../../../../packages/sdk/examples/auction/otr/create.ts#L4-L47 | ||
``` | ||
|
||
<DeepLink/> | ||
</TabItem> | ||
<TabItem value="https" label="HTTPS"> | ||
To create auction, you must call [`create`](../../reference-api/classes/AuctionDataset.md#create) on `dataset(Dataset.AUCTION)`. | ||
[`create`](../../reference-api/classes/NftDataset.md#create) takes an object of type [`AuctionCreateRequest`](../../reference-api/interfaces/AuctionCreateRequest.md) as parameter. | ||
|
||
```tsx file=../../../../packages/sdk/examples/auction/https/create.ts#L6-L63 | ||
``` | ||
</TabItem> | ||
</Tabs> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters