
Research
/Security News
DuckDB npm Account Compromised in Continuing Supply Chain Attack
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
eth-gasprice-estimator
Advanced tools
A library to estimate the ethereum gas price on Ethereum Transaction
A library to estimate the ethereum gas price on Ethereum Transaction
npm install eth-gasprice-estimator --save
//For React or Other Js Framework
import {gasstationInfo} from 'eth-gasprice-estimator';
//For Nodejs
const {gasstationInfo} = require('eth-gasprice-estimator');
gasstationInfo("fastest")
.then(result=>{
console.log("result",result);
}).catch(err=>{
console.log("err",err);
});
const sendTransaction = async () => {
var gasPriceResult=await gasstationInfo("fastest");
web3.eth.sendTransaction({
from: "0x627306090abaB3A6e1400e9345bC60c78a8BEf57",
to: "0x086912faa7f6598d28d80c448c8d1e9dae5a4dee",
value: web3.toWei(1, "ether"),
gas: 210000,
gasPrice:gasPriceResult,
}, function(err, transactionHash) {
if (err) {
console.log(err);
} else {
console.log(transactionHash);
}
});
}
//For React or Other Js Framework
Add Below Meta Tag in public.Index.html
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
//For Nodejs
Add Cors Package
`npm install cors --save`
Gas station info needs one parameter to specify transaction Speed on ethereum transaction.
FAQs
A library to estimate the ethereum gas price on Ethereum Transaction
We found that eth-gasprice-estimator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.