Closed happyeric77 closed 1 year ago
I also ran into this, it looks like the SDK does not yet support EIP-1559 type transactions and the gasPrice is not being taken into account. Some other open issues also ask for clarification in that regard: https://github.com/ProjectOpenSea/opensea-js/issues/158
hi, @happyeric77 @nedosa any solution yet? i'm facing with same problem
+1
+1
+1
+1
Is there any update for it?
no update afay, but if you check #158 you'll see that @hack3r-0m made a fork that returns the encrypted data for the transaction (instead of executing it) and then you can just make the gas adjustment and send the transaction using ether/web3
@esteban-OpenSea Any update on this?
Still waiting on an update, pls
Any update on this?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions. If you believe this was a mistake, please comment.
I am trying to use openseajs library's fulfillOrder method to buy NFT token. And I want to adjust the gas price to prioritize my transaction. Below shows how I do this.
I pass the tokenId, tokenAddress and owner address as arguments to the .getOrder() method to get the order instance. And then use fulfillOder() method to buy that token. But I realize that I am not able to manipulate the gas price section.
The reason why I want to do this is that in order to buy a certain popular token NFT as soon as it gets ready on sale. especially sometimes the valuable (popular) NFT buying transaction could be difficult to sign through using average gas price, so I would like to make the gas_price higher for certain NFT items. Do you think it will be possible? It will be very appreciated if anyone can let me know how to make this approach.
After checking around, I realized there is a gasPriceAddition property in seaport instance which has a default value as BigNumber(3) as below in source code:
So I tried to adjust the value to set the gas price and I can see it is actually set successfully and then I use it to sign the transaction without problem. the log below is printed out from my console:
But when I check the real gas price in the signed transaction from etherscan, it turns out using the average gas price instead of the set gas price. Below is my transaction: https://rinkeby.etherscan.io/tx/0xa3f6b07b54948081bd7478a5080c96b102bfd35c5fe334eabfd79a7216c20d78
I do not know why it is happening, is anybody can let me know why? I also list my code herewith below:
Below is my understanding of source code FYI.
The gasPriceAddition property is used in _computeGasPrice as addition price to add on top of average gasPrice
Then I can see the gasPrice is actually passed into transaction like below: