
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@bandprotocol/cron-requester
Advanced tools
A simple node.js tool that requests data to BandChain periodically
A light-weight node.js tool to periodically query data on BandChain
json
filenpx
, no installation neededYou need to create a config.json
file in your machine. Note that all the fields are mandatory, except cronPattern
and requestInterval
.
See example config.json
for an example of requesting data from Band's GuanYu devnet every 5 minutes:
{
"endpoint": "http://guanyu-devnet.bandchain.org/rest",
"mnemonic": "final little loud vicious door hope differ lucky alpha morning clog oval milk repair off course indicate stumble remove nest position journey throw crane",
"cronPattern": "*/5 * * * *",
"requestInterval": 1000,
"validatorCounts": {
"minCount": 3,
"askCount": 4
},
"requests": [
{
"oracleScriptId": 1,
"params": {
"symbol": "BTC",
"multiplier": 1000000
}
},
{
"oracleScriptId": 13,
"params": {
"base_symbol": "ETH",
"quote_symbol": "CNY",
"aggregation_method": "median",
"multiplier": 1000000
}
}
]
}
⚠️ Important: You need to have enough BAND in the requester account for paying transaction fees, otherwise your requests will fail.
npx @bandprotocol/cron-requester config.json
If config.json
does NOT specifies cronPattern
, the requests will be sent in just one time.
∟ ✅ requestId = 180 | oracleScript #1 {"symbol":"BTC","multiplier":1000000}
∟ ✅ requestId = 181 | oracleScript #13 {"base_symbol":"ETH","quote_symbol":"CNY","aggregation_method":"median","multiplier":1000000}
⛳️ [2/2] requests was submitted
--------------------------------------------------------
If config.json
has specified cronPattern
, the requests will be running by the interval specified.
--------------------------------------------------------
⭐️ Cron is running! Your requests will be executed with cron pattern */5 * * * *
📆 Your first requests will start at Sun Jun 14 2020 19:25:00 GMT+0700
--------------------------------------------------------
⏰ Requests start at 6/14/2020, 7:25:00 PM
∟ ✅ requestId = 180 | oracleScript #1 {"symbol":"BTC","multiplier":1000000}
∟ ✅ requestId = 181 | oracleScript #13 {"base_symbol":"ETH","quote_symbol":"CNY","aggregation_method":"median","multiplier":1000000}
⛳️ [2/2] requests was submitted
--------------------------------------------------------
FAQs
A simple node.js tool that requests data to BandChain periodically
We found that @bandprotocol/cron-requester demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.