
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.
graph-results-pager
Advanced tools
Utility to get paged results from The Graph endpoints
const graphResultsPager = require('graph-results-pager'); // common js
// or
import graphResultsPager from 'graph-results-pager';
graphResultsPager({
api: 'https://api.thegraph.com/subgraphs/name/...',
// Note: a single subgraph fetch can return 1000 results, any larger numbers will trigger multiple fetches
max: 12, // leave empty for all results
timeout: 5e3, // 5s timeout for an individual page request
query: {
entity: '...',
selection: {
orderBy: '...',
orderDirection: 'desc',
where: {
// Note: the below filters are combined - like the AND operater in an SQL WHERE clause
someStringField: `\\"${someValue}\\"`, // use double quotes for strings / bytes / addresses
someNumber: 321, // numbers don't require escaping
// ...
willBeIgnored: undefined, // useful if you want to use the ternary operator for inline checks
},
},
properties: [
'id',
...ss, // the list of the entity's fields you want returned
],
},
});
For an example in node, try running node example.js
(see source)
<script src="//cdn.jsdelivr.net/npm/graph-results-pager/browser.js"></script>
<script>
window.graphResultsPager({...}).then(console.log).catch(console.error)
</script>
FAQs
Utility to get paged results from The Graph subgraphs
We found that graph-results-pager 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
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.