You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-4Lines changed: 2 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -201,7 +201,7 @@ See [Listening to Events](#listening-to-events) to respond to the setup transact
201
201
202
202
English Auctions are auctions that start at a small amount (we recommend even doing 0!) and increase with every bid. At expiration time, the item sells to the highest bidder.
203
203
204
-
To create an English Auction, create a listing that waits for the highest bid by setting `waitForHighestBid` to `true`:
204
+
To create an English Auction set `englishAuction` to `true`:
205
205
206
206
```typescript
207
207
// Create an auction to receive Wrapped Ether (WETH). See note below.
@@ -218,7 +218,7 @@ const order = await openseaSDK.createSellOrder({
218
218
startAmount,
219
219
expirationTime,
220
220
paymentTokenAddress,
221
-
waitForHighestBid: true,
221
+
englishAuction: true,
222
222
});
223
223
```
224
224
@@ -256,14 +256,12 @@ The available API filters for the orders endpoint is documented in the `OrdersQu
256
256
```TypeScript
257
257
/**
258
258
* Attrs used by orderbook to make queries easier
259
-
* More to come soon!
260
259
*/
261
260
side: "bid"|"ask", // "bid" for buy orders, "ask" for sell orders
262
261
protocol?:"seaport"; // Protocol of the order (more options may be added in future)
263
262
maker?:string, // Address of the order's creator
264
263
taker?:string, // The null address if anyone is allowed to take the order
265
264
owner?:string, // Address of owner of the order's item
266
-
sale_kind?:SaleKind, // 0 for fixed-price, 1 for Dutch auctions
267
265
assetContractAddress?:string, // Contract address for order's item
268
266
paymentTokenAddress?:string; // Contract address for order's payment token
Copy file name to clipboardExpand all lines: developerDocs/getting-started.md
+2-4Lines changed: 2 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -131,7 +131,7 @@ See [Listening to Events](#listening-to-events) to respond to the setup transact
131
131
132
132
English Auctions are auctions that start at a small amount (we recommend even doing 0!) and increase with every bid. At expiration time, the item sells to the highest bidder.
133
133
134
-
To create an English Auction, create a listing that waits for the highest bid by setting `waitForHighestBid` to `true`:
134
+
To create an English Auction set `englishAuction` to `true`:
135
135
136
136
```typescript
137
137
// Create an auction to receive Wrapped Ether (WETH). See note below.
* @param options.expirationTime Expiration time for the order, in UTC seconds.
430
434
* @param options.paymentTokenAddress ERC20 address for the payment token in the order. If unspecified, defaults to ETH
431
435
* @param options.buyerAddress Optional address that's allowed to purchase this item. If specified, no other address will be able to take the order, unless its value is the null address.
436
+
* @param options.englishAuction If true, the order will be listed as an English auction.
432
437
* @returns The {@link OrderV2} that was created.
433
438
*
434
439
* @throws Error if the asset does not contain a token id.
* @param expirationTime When the auction expires, or 0 if never.
989
1002
* @param startAmount The base value for the order, in the token's main units (e.g. ETH instead of wei)
990
1003
* @param endAmount The end value for the order, in the token's main units (e.g. ETH instead of wei). If unspecified, the order's `extra` attribute will be 0
0 commit comments