Buying Items - Not change Gas Fee
Hi friends,
I am developer smart tools for ethereum nft. I tried many codes for setting gas fee. Please help to me?
try { let provider = new HDWalletProvider(walletprivatekey, "https://mainnet.infura.io/v3/f9c732ecabbb4533ad58c933582b1e12"); const web3 = new Web3(provider); web3.setProvider(provider); const seaport = new OpenSeaPort(provider, { networkName: Network.Main, apiKey: "My_opensea_apikey", })
const order = await seaport.api.getOrder({ side: 1, asset_contract_address: contract, token_id: tokenid})
const transactionHash = await seaport.fulfillOrder({ order, accountAddress })
} catch (error) { var error=String(error); console.log(error); }
Check this out: https://web3js.readthedocs.io/en/v1.7.3/web3-eth-contract.html?highlight=gasprice
@esteban-OpenSea Could you please provide an example of setting custom gas with EIP 1559?
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.