From 2641a60e790da0f4d13fd92f9630a05ecd0127dc Mon Sep 17 00:00:00 2001 From: Ben Smith Date: Fri, 15 Mar 2024 17:42:43 +0100 Subject: [PATCH] update docs --- README.md | 3 ++- examples/opensea.ts | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 63902c4..53eada8 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,8 @@ yarn # Credentials cp .env.example .env <---- paste your Near credentials # Buy NFT buy collection slug: -npx ts-node examples/transfer-nft.ts +npx ts-node examples/opensea.ts +# You will be prompted to provide a collectionSlug ``` ## Installation diff --git a/examples/opensea.ts b/examples/opensea.ts index 0cef066..cc38d11 100644 --- a/examples/opensea.ts +++ b/examples/opensea.ts @@ -30,6 +30,7 @@ const run = async (slug: string): Promise => { `Got ${listings.listings.length} Listings, preparing to purchase first available.` ); const firstListing = listings.listings[0]; + // This sleep is due to free-tier testnet rate limiting. await sleep(1000); const sender = await setupAccount(); const data = await openseaSDK.api.generateFulfillmentData( @@ -41,7 +42,8 @@ const run = async (slug: string): Promise => { const tx = data.fulfillment_data.transaction; const input_data = tx.input_data; - + + // TODO - report or fix these bugs with OpenseaSDK // @ts-expect-error: Undocumented field on type FulfillmentData within FulfillmentDataResponse const order = input_data.parameters; // @ts-expect-error: Undocumented field on type FulfillmentData within FulfillmentDataResponse