Max priority fee EIP-1559
Since EIP-1559 need setup Max priority fee. By default it set 1 i think. How we can increase Max priority fee?
I also need to be able to do this. Does this sdk even support EIP-1559 transactions?
It would be good to get some clarification on this. Has anyone managed to set a higher gas price in fulfillOrder ?
Is there some workaround for setting max priority fee?
not here, but there is a solution. there are many bots out there executing with faster than average gas price. not sure if they are going directly through web3 or if they have figured out how to change code here. i have tried both gasPriceAddition and gasIncreaseFactor, neither work. is there a way to hardcode the the transaction data gas?
Was anyone able to go around this problem using the SDK?
I have a fork https://github.com/hack3r-0m/opensea-js/commit/44feced07439ee48d9b07aa83fc83feb03ac7e1e which returns abi encoded transaction data, you can then send that transaction using ethers.js
I have a fork hack3r-0m@44feced which returns abi encoded transaction data, you can then send that transaction using ethers.js
Thanks. Will give it a try! Just adding your encoded transaction data to the sendTransaction would be enough then, is that it?
(async () => {
const order = await seaport.api.getOrder({ side: OrderSide.Sell, asset_contract_address: asset_contract_address, token_id: token_id })
const abiEncoded = await seaport.fulfillOrder({ order, accountAddress: wallet.address })
const txn = {
to: wyvern,
type: 2,
data: abiEncoded.encoded,
value: ethers.BigNumber.from(abiEncoded.txnData.value.toString()),
maxPriorityFeePerGas: ethers.utils.parseUnits(additionalGas, "gwei"),
maxFeePerGas: ethers.utils.parseUnits(baseGas, "gwei") + ethers.utils.parseUnits(additionalGas, "gwei")
}
try {
const response = await wallet.sendTransaction(txn)
console.log(response)
} catch (e) {
console.log(e.name)
console.log(e.message)
}
})();
thanks a lot. works great!
Thanks, do you have a version for OpenSeaJS 2.0.1?
Great, your skill is unparalleled. May i have a question that how could i use it? Sorry, I can only use opensea-js . I don't know how to modify opensea-js module. pay high tribute to you
Any news on this?
(async () => { const order = await seaport.api.getOrder({ side: OrderSide.Sell, asset_contract_address: asset_contract_address, token_id: token_id }) const abiEncoded = await seaport.fulfillOrder({ order, accountAddress: wallet.address }) const txn = { to: wyvern, type: 2, data: abiEncoded.encoded, value: ethers.BigNumber.from(abiEncoded.txnData.value.toString()), maxPriorityFeePerGas: ethers.utils.parseUnits(additionalGas, "gwei"), maxFeePerGas: ethers.utils.parseUnits(baseGas, "gwei") + ethers.utils.parseUnits(additionalGas, "gwei") } try { const response = await wallet.sendTransaction(txn) console.log(response) } catch (e) { console.log(e.name) console.log(e.message) } })();
Where I can find what wyvern variable is stands for?
(async () => { const order = await seaport.api.getOrder({ side: OrderSide.Sell, asset_contract_address: asset_contract_address, token_id: token_id }) const abiEncoded = await seaport.fulfillOrder({ order, accountAddress: wallet.address }) const txn = { to: wyvern, type: 2, data: abiEncoded.encoded, value: ethers.BigNumber.from(abiEncoded.txnData.value.toString()), maxPriorityFeePerGas: ethers.utils.parseUnits(additionalGas, "gwei"), maxFeePerGas: ethers.utils.parseUnits(baseGas, "gwei") + ethers.utils.parseUnits(additionalGas, "gwei") } try { const response = await wallet.sendTransaction(txn) console.log(response) } catch (e) { console.log(e.name) console.log(e.message) } })();Where I can find what
wyvernvariable is stands for?
nvm, I've understood
})();
Could you get this to work with the new contract? I can't seem to get it
Hey, is everyone still having issue with this?
we really need EIP-1559 support to be added to the library (not limited to fulfilorder, but needed to be extended to all transactional operations)
(async () => { const order = await seaport.api.getOrder({ side: OrderSide.Sell, asset_contract_address: asset_contract_address, token_id: token_id }) const abiEncoded = await seaport.fulfillOrder({ order, accountAddress: wallet.address }) const txn = { to: wyvern, type: 2, data: abiEncoded.encoded, value: ethers.BigNumber.from(abiEncoded.txnData.value.toString()), maxPriorityFeePerGas: ethers.utils.parseUnits(additionalGas, "gwei"), maxFeePerGas: ethers.utils.parseUnits(baseGas, "gwei") + ethers.utils.parseUnits(additionalGas, "gwei") } try { const response = await wallet.sendTransaction(txn) console.log(response) } catch (e) { console.log(e.name) console.log(e.message) } })();
Could someone please explain what wyvern is stands for? It isn't clear how to get this address (@hack3r-0m, @Verrok)
Btw, there's maybe a small issue with big numbers addition, because
const maxFeePerGas = ethers.utils.parseUnits(baseGas, "gwei") + ethers.utils.parseUnits(additionalGas, "gwei";
and
const maxFeePerGas = ethers.utils.parseUnits(`${baseGas + additionalGas}`, "gwei");
is not the same (in my case, the second option is working while the first isn't)
wyvern is the contract address of Opensea's Wyvern Exchange Protocol
The transaction to wyvern with the returned abi encoded data keeps failing. I compared the returned abi with the original hex data when buying through OS and it doesn't match.