create offer #1407
Unanswered
AsliddinBuriev
asked this question in
Q&A
create offer
#1407
Replies: 1 comment
-
See https://github.com/ProjectOpenSea/opensea-js/blob/main/developerDocs/quick-start.md#wallet |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone!
I'm new to web3 world. I want to create offer using opensea-js package.
I'm using
ethers: "^5.7.2" && opensea-js: "^6.1.12"
Here is the code:
const provider = new ethers.providers.Web3Provider(window.ethereum);
const sdk = new OpenSeaSDK(
provider,
{
chain: Chain.Klaytn,
apiKey: 'api key',
},
(arg) => console.log(arg),
);
const offer = await sdk.createOffer({
asset: {
tokenId,
tokenAddress,
},
accountAddress: await this.connector.getAddress(),
startAmount: price,
// expirationTime: (Math.round(Date.now() / 1000) + duration).toString(),
});
Beta Was this translation helpful? Give feedback.
All reactions