opensea-js icon indicating copy to clipboard operation
opensea-js copied to clipboard

Buying Items - Not change Gas Fee

Open WebScripti opened this issue 4 years ago • 3 comments

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); }

WebScripti avatar Jun 14 '22 22:06 WebScripti

Check this out: https://web3js.readthedocs.io/en/v1.7.3/web3-eth-contract.html?highlight=gasprice

esteban-OpenSea avatar Jun 16 '22 17:06 esteban-OpenSea

@esteban-OpenSea Could you please provide an example of setting custom gas with EIP 1559?

Slers avatar Jun 17 '22 07:06 Slers

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.

github-actions[bot] avatar May 25 '23 00:05 github-actions[bot]