
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
@getsafle/vault-polygon-controller
Advanced tools
[](https://badge.fury.io/js/@getsafle%2Fvault-polygon-controller) [![Discussions][discussions-

A Module written in javascript for managing various keyrings of Polygon accounts, encrypting them, and using them.
npm install --save @getsafle/vault-polygon-controller
const { KeyringController, getBalance } = require('@getsafle/vault-polygon-controller');
const polygonController = new KeyringController({
encryptor: {
// An optional object for defining encryption schemes:
// Defaults to Browser-native SubtleCrypto.
encrypt(password, object) {
return new Promise('encrypted!');
},
decrypt(password, encryptedString) {
return new Promise({ foo: 'bar' });
},
},
});
const keyringState = await polygonController.createNewVaultAndKeychain(password);
const keyringState = await polygonController.createNewVaultAndRestore(password, mnemonic);
const keyringState = await polygonController.addNewAccount(keyringObject);
const privateKey = await polygonController.exportAccount(address);
const signedTx = await polygonController.signTransaction(polygonTx, _fromAddress);
const signedMsg = await polygonController.signMessage(msgParams);
const signedObj = await polygonController.sign(msgParams, pvtKey, web3Obj);
const signedData = await polygonController.signTypedMessage(msgParams);
const balance = await getBalance(address, web3);
FAQs
[](https://badge.fury.io/js/@getsafle%2Fvault-polygon-controller) [![Discussions][discussions-
We found that @getsafle/vault-polygon-controller demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
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.