
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
embedded-algo-wallet
Advanced tools
A minimal TS package to embed a hot wallet into a dApp
WARNING: You should not be storing private keys for wallets that hold large monetary values. Browser storage is inherently less secure than other methods. This library is intended mainly for burner/hot wallets.
This library is inteded to help with storing private keys in web applications that use the Algorand blockchain but prefer to simplify the signing process to button presses instead of the usual wallet signing method.
This approach should be used only with accounts generated for the sole purpose of usage inside your application.
const wallet = new Wallet("testnet"); // "localnet" | "testnet" | "mainnet" | "voimain"
await wallet.startup(); // Required after instantiation
await wallet.createAcct(password); // New account
await wallet.createAcct(password, mnemonic); // Import an existing account
wallet.lock(); // Lock
await wallet.unlock(password); // Unlock
console.log("Locked Status:", wallet.isLocked()); // true/false
wallet.refresh(); // Refresh Account Info
console.log("Address:", wallet.acct.addr);
console.log("Balance:", Number(wallet.acctInfo.amount) / 10 ** 6);
console.log(await wallet.exportAcct(password));
signerconst algorand = AlgorandClient.fromClients({
algod: wallet.algod as algosdk.Algodv2,
});
const result = await algorand.send.payment({
sender: wallet.acct.addr,
receiver: wallet.acct.addr,
amount: microAlgos(0),
signer: wallet.signer,
});
console.log("Confirmed in round " + result.confirmation.confirmedRound);
await wallet.refresh();
Use with caution or not at all! All key data is cleared from storage.
wallet.clearAcct();
FAQs
A minimal TS package to embed a hot wallet into a dApp
We found that embedded-algo-wallet demonstrated a healthy version release cadence and project activity because the last version was released less than 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.