Security News
JSR Working Group Kicks Off with Ambitious Roadmap and Plans for Open Governance
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
@turnkey/viem
Advanced tools
This package contains helpers to work with Turnkey. Currently:
If you need a lower-level, fully typed HTTP client for interacting with Turnkey API, check out @turnkey/http
.
$ npm install viem @turnkey/viem
import { createWalletClient, http } from "viem";
import { createAccount } from "@turnkey/viem";
async function main() {
const turnkeyAccount = createAccount({
organizationId: "...",
privateKeyId: "...",
apiPublicKey: "...",
apiPrivateKey: "...",
baseUrl: "https://api.turnkey.com",
});
const client = createWalletClient({
account: turnkeyAccount,
chain: sepolia,
transport: http(`https://sepolia.infura.io/v3/$(YOUR_INFURA_API_KEY)`),
});
const transactionRequest = {
to: "0x08d2b0a37F869FF76BACB5Bab3278E26ab7067B7" as `0x${string}`,
value: 1000000000000000n, // 0.001 ETH
};
const txHash = await client.sendTransaction(transactionRequest);
console.log(`Success! Transaction broadcast with hash ${txHash}`);
}
main().catch((error) => {
console.error(error);
process.exit(1);
});
@turnkey/example-with-viem
: example using this package to create, sign, and broadcast a transaction on Sepolia (Ethereum testnet)@turnkey/http
: lower-level fully typed HTTP client for interacting with Turnkey APIFAQs
Turnkey Helpers to work with Viem
The npm package @turnkey/viem receives a total of 17,891 weekly downloads. As such, @turnkey/viem popularity was classified as popular.
We found that @turnkey/viem demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 8 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.
Security News
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
Security News
Research
An advanced npm supply chain attack is leveraging Ethereum smart contracts for decentralized, persistent malware control, evading traditional defenses.
Security News
Research
Attackers are impersonating Sindre Sorhus on npm with a fake 'chalk-node' package containing a malicious backdoor to compromise developers' projects.