Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@dsnp/frequency-api-augment
Advanced tools
RPC configuration for Frequency for use with Polkadotjs API
An easy way to get all the custom rpc and types config to be able to easily use Frequency with the Polkadot JS API library.
npm install @dsnp/frequency-api-augment
(API Augmentation Library)npm install @polkadot/api
(Polkadot API Library)For details on use, see the Polkadot API library documentation.
// es6 style imports
import { options } from "@dsnp/frequency-api-augment";
import { ApiPromise } from '@polkadot/api';
// ...
const api = await ApiPromise.create({
...options,
// ...
});
// commonjs require
const { options } = require("@dsnp/frequency-api-augment");
const { ApiPromise } = require('@polkadot/api');
// ...
const api = await ApiPromise.create({
...options,
// ...
});
See CONTRIBUTING.md for more information.
./definitions
npm run fetch:local
Optional responses are not mapped to null
and instead return an object with a few properties.
For more details see the code for the Option class.
const optionalExample = await api.rpc.msa.getMsaId(account);
// Does the Option have a value?
if (!optionalExample.isEmpty) {
// Get the value
return optionalExample.value;
}
return null;
Vector responses are not mapped directly to a JavaScript Array.
Instead they are mapped to the Vec class which does extend Array.
Thus, you can still use map
, forEach
, etc... with responses or access the values directing via .values()
.
Distributed under the Apache 2.0 License. See LICENSE
for more information.
FAQs
RPC configuration for Frequency for use with Polkadotjs API
The npm package @dsnp/frequency-api-augment receives a total of 0 weekly downloads. As such, @dsnp/frequency-api-augment popularity was classified as not popular.
We found that @dsnp/frequency-api-augment demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.