Skip to content

Commit

Permalink
docs: add collection offer example (#1434)
Browse files Browse the repository at this point in the history
* docs: add collection offer example

* Update getting-started.md

* lint
  • Loading branch information
ryanio committed Apr 4, 2024
1 parent d5740e4 commit 5874bd1
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion developerDocs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,22 @@ See [Listening to Events](#listening-to-events) to respond to the setup transact

### Creating Collection and Trait Offers

Criteria offers, consisting of collection and trait offers, are supported with `openseaSDK.createCollectionOffer()`. For trait offers, include `traitType` as the trait name and `traitValue` as the required value for the offer.
Criteria offers, consisting of collection and trait offers, are supported with `openseaSDK.createCollectionOffer()`.

For trait offers, include `traitType` as the trait name and `traitValue` as the required value for the offer.

```typescript
const collection = await sdk.api.getCollection("cool-cats-nft");
const offer = await openseaSDK.createCollectionOffer({
collectionSlug: collection.collection,
accountAddress: walletAddress,
paymentTokenAddress: getWETHAddress(sdk.chain),
amount: 7,
quantity: 1,
traitType: "face",
traitValue: "tvface bobross",
});
```

#### Creating English Auctions

Expand Down

0 comments on commit 5874bd1

Please sign in to comment.