Skip to main content

Account Management

Facilitates fund management across a dual-account system for the 0G Compute Network, ensuring efficient transactions and service usage.

Install this skill

or
16/100

Security score

The Account Management skill was audited on Feb 25, 2026 and we found 28 security issues across 2 threat categories. Review the findings below before installing.

Categories Tested

Security Issues

medium line 86

Template literal with variable interpolation in command context

SourceSKILL.md
86console.log(`Address: ${account[0]}`);
medium line 87

Template literal with variable interpolation in command context

SourceSKILL.md
87console.log(`Total Balance: ${ethers.formatEther(account[1])} 0G`);
medium line 88

Template literal with variable interpolation in command context

SourceSKILL.md
88console.log(`Available: ${ethers.formatEther(account[2])} 0G`);
medium line 104

Template literal with variable interpolation in command context

SourceSKILL.md
104console.log(`Deposited ${amount} 0G to Main Account`);
medium line 109

Template literal with variable interpolation in command context

SourceSKILL.md
109console.log(`Transferred ${amount} 0G to provider ${providerAddress}`);
medium line 124

Template literal with variable interpolation in command context

SourceSKILL.md
124console.log(`Sub-account user: ${subAccount[0]}`);
medium line 125

Template literal with variable interpolation in command context

SourceSKILL.md
125console.log(`Sub-account provider: ${subAccount[1]}`);
medium line 126

Template literal with variable interpolation in command context

SourceSKILL.md
126console.log(`Sub-account balance: ${ethers.formatEther(subAccount[2])} 0G`);
medium line 130

Template literal with variable interpolation in command context

SourceSKILL.md
130console.log(`Pending refund ${i + 1}:`, refund);
medium line 163

Template literal with variable interpolation in command context

SourceSKILL.md
163console.log(`Withdrew ${amount} 0G to wallet`);
medium line 178

Template literal with variable interpolation in command context

SourceSKILL.md
178console.log(`Available balance: ${available} 0G`);
medium line 213

Template literal with variable interpolation in command context

SourceSKILL.md
213console.log(`Insufficient balance. Depositing ${depositNeeded} 0G...`);
medium line 222

Template literal with variable interpolation in command context

SourceSKILL.md
222console.log(`Successfully funded provider with ${amount} 0G`);
medium line 19

Access to .env file

SourceSKILL.md
19- `.env` with `PRIVATE_KEY`, `RPC_URL`
low line 79

Access to .env file

SourceSKILL.md
79const provider = new ethers.JsonRpcProvider(process.env.RPC_URL);
low line 80

Access to .env file

SourceSKILL.md
80const wallet = new ethers.Wallet(process.env.PRIVATE_KEY!, provider);
low line 98

Access to .env file

SourceSKILL.md
98const provider = new ethers.JsonRpcProvider(process.env.RPC_URL);
low line 99

Access to .env file

SourceSKILL.md
99const wallet = new ethers.Wallet(process.env.PRIVATE_KEY!, provider);
low line 117

Access to .env file

SourceSKILL.md
117const provider = new ethers.JsonRpcProvider(process.env.RPC_URL);
low line 118

Access to .env file

SourceSKILL.md
118const wallet = new ethers.Wallet(process.env.PRIVATE_KEY!, provider);
low line 140

Access to .env file

SourceSKILL.md
140const provider = new ethers.JsonRpcProvider(process.env.RPC_URL);
low line 141

Access to .env file

SourceSKILL.md
141const wallet = new ethers.Wallet(process.env.PRIVATE_KEY!, provider);
low line 158

Access to .env file

SourceSKILL.md
158const provider = new ethers.JsonRpcProvider(process.env.RPC_URL);
low line 159

Access to .env file

SourceSKILL.md
159const wallet = new ethers.Wallet(process.env.PRIVATE_KEY!, provider);
low line 171

Access to .env file

SourceSKILL.md
171const provider = new ethers.JsonRpcProvider(process.env.RPC_URL);
low line 172

Access to .env file

SourceSKILL.md
172const wallet = new ethers.Wallet(process.env.PRIVATE_KEY!, provider);
low line 202

Access to .env file

SourceSKILL.md
202const provider = new ethers.JsonRpcProvider(process.env.RPC_URL);
low line 203

Access to .env file

SourceSKILL.md
203const wallet = new ethers.Wallet(process.env.PRIVATE_KEY!, provider);
Scanned on Feb 25, 2026
View Security Dashboard