viem-integration
Integrates EVM blockchains using viem for TypeScript applications, enabling blockchain data reading, transaction sending, and smart contract interaction.
Install this skill
Security score
The viem-integration skill was audited on May 29, 2026 and we found 11 security issues across 3 threat categories. Review the findings below before installing.
Categories Tested
Security Issues
Template literal with variable interpolation in command context
| 91 | console.log(`Balance: ${formatEther(balance)} ETH`); |
Template literal with variable interpolation in command context
| 125 | const account = privateKeyToAccount(process.env.PRIVATE_KEY as `0x${string}`); |
Template literal with variable interpolation in command context
| 138 | console.log(`Transaction hash: ${hash}`); |
Template literal with variable interpolation in command context
| 148 | const account = privateKeyToAccount(process.env.PRIVATE_KEY as `0x${string}`); |
Template literal with variable interpolation in command context
| 177 | console.log(`Confirmed in block ${receipt.blockNumber}`); |
Access to .env file
| 70 | - **Private keys**: MUST NEVER be hardcoded — always use `process.env.PRIVATE_KEY` with runtime validation |
Access to .env file
| 125 | const account = privateKeyToAccount(process.env.PRIVATE_KEY as `0x${string}`); |
Access to .env file
| 148 | const account = privateKeyToAccount(process.env.PRIVATE_KEY as `0x${string}`); |
External URL reference
| 71 | - **RPC URLs**: MUST use `https://` or `wss://` protocols only |
External URL reference
| 267 | - [viem Documentation](https://viem.sh) |
External URL reference
| 268 | - [wagmi Documentation](https://wagmi.sh) |