Skip to content

Commit acd4060

Browse files
Add rebates income check: 0.580587 SOL (16.12)
1 parent d97c704 commit acd4060

3 files changed

Lines changed: 104 additions & 1 deletion

File tree

REBATES_INCOME_REPORT.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Rebates & Income Report
2+
3+
## Summary
4+
5+
**Total Income:** 0.580587 SOL
6+
**USD Value:** $116.12 (@ $200/SOL)
7+
**Total Addresses:** 3
8+
9+
---
10+
11+
## Account Breakdown
12+
13+
### 1. FVhQ3QHvXudWSdGix2sdcG47YmrmUxRhf3KCBmiKfekf
14+
- **Balance:** 0.243237 SOL
15+
- **USD Value:** $48.65
16+
- **[View on Solscan](https://solscan.io/account/FVhQ3QHvXudWSdGix2sdcG47YmrmUxRhf3KCBmiKfekf)**
17+
18+
### 2. CvQZZ23qYDWF2RUpxYJ8y9K4skmuvYEEjH7fK58jtipQ
19+
- **Balance:** 0.332269 SOL
20+
- **USD Value:** $66.45
21+
- **[View on Solscan](https://solscan.io/account/CvQZZ23qYDWF2RUpxYJ8y9K4skmuvYEEjH7fK58jtipQ)**
22+
23+
### 3. 7ZyDFzet6sKgZLN4D89JLfo7chu2n7nYdkFt5RCFk8Sf
24+
- **Balance:** 0.005081 SOL
25+
- **USD Value:** $1.02
26+
- **[View on Solscan](https://solscan.io/account/7ZyDFzet6sKgZLN4D89JLfo7chu2n7nYdkFt5RCFk8Sf)**
27+
28+
---
29+
30+
## RPC Endpoints
31+
32+
- **Helius:** Using Fallback (Set HELIUS_API_KEY for direct access)
33+
- **QuickNode:** Using Fallback (Set QUICKNODE_ENDPOINT for direct access)
34+
35+
## Recommendations
36+
37+
1. **Consolidate Funds:** Transfer all rebates to new master controller
38+
2. **Set API Keys:** Configure Helius and QuickNode for better performance
39+
3. **Monitor Income:** Run `npm run check:rebates` regularly
40+
41+
---
42+
43+
**Last Updated:** 2025-01-13
44+
**Status:** ✅ VERIFIED

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
"transfer:assets": "node scripts/transfer-assets.js",
1717
"send:assets": "node scripts/send-assets-with-signature.js",
1818
"query:account": "node scripts/helius-account-info.js",
19-
"reannounce:owner": "node scripts/reannounce-with-new-controller.js"
19+
"reannounce:owner": "node scripts/reannounce-with-new-controller.js",
20+
"check:rebates": "node scripts/check-rebates-income.js"
2021
},
2122
"devDependencies": {
2223
"@coral-xyz/anchor": "^0.30.1",

scripts/check-rebates-income.js

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
#!/usr/bin/env node
2+
const { Connection, PublicKey } = require('@solana/web3.js');
3+
4+
const REBATE_ADDRESSES = [
5+
'FVhQ3QHvXudWSdGix2sdcG47YmrmUxRhf3KCBmiKfekf',
6+
'CvQZZ23qYDWF2RUpxYJ8y9K4skmuvYEEjH7fK58jtipQ',
7+
'7ZyDFzet6sKgZLN4D89JLfo7chu2n7nYdkFt5RCFk8Sf'
8+
];
9+
10+
const HELIUS_RPC = process.env.HELIUS_API_KEY
11+
? `https://mainnet.helius-rpc.com/?api-key=${process.env.HELIUS_API_KEY}`
12+
: 'https://api.mainnet-beta.solana.com';
13+
14+
const QUICKNODE_RPC = process.env.QUICKNODE_ENDPOINT || 'https://api.mainnet-beta.solana.com';
15+
16+
async function checkRebates() {
17+
console.log('💰 Rebates & Income Check\n');
18+
console.log('━'.repeat(60));
19+
20+
const heliusConnection = new Connection(HELIUS_RPC, 'confirmed');
21+
const quicknodeConnection = new Connection(QUICKNODE_RPC, 'confirmed');
22+
23+
let totalIncome = 0;
24+
const results = [];
25+
26+
for (const addr of REBATE_ADDRESSES) {
27+
try {
28+
const pubkey = new PublicKey(addr);
29+
const balance = await heliusConnection.getBalance(pubkey);
30+
const solAmount = balance / 1e9;
31+
32+
if (balance > 0) {
33+
console.log(`\n✅ ${addr}`);
34+
console.log(` Balance: ${solAmount.toFixed(6)} SOL`);
35+
console.log(` 🔗 https://solscan.io/account/${addr}`);
36+
37+
results.push({ address: addr, balance: solAmount });
38+
totalIncome += solAmount;
39+
}
40+
} catch (e) {
41+
console.log(`\n❌ ${addr} - Error: ${e.message}`);
42+
}
43+
}
44+
45+
console.log('\n' + '━'.repeat(60));
46+
console.log('\n📊 Income Summary:');
47+
console.log(` Total Addresses: ${results.length}`);
48+
console.log(` Total Income: ${totalIncome.toFixed(6)} SOL`);
49+
console.log(` USD Value (@ $200/SOL): $${(totalIncome * 200).toFixed(2)}`);
50+
51+
console.log('\n🔧 RPC Endpoints:');
52+
console.log(` Helius: ${HELIUS_RPC.includes('helius') ? '✅ Connected' : '❌ Using Fallback'}`);
53+
console.log(` QuickNode: ${QUICKNODE_RPC.includes('quicknode') ? '✅ Connected' : '❌ Using Fallback'}`);
54+
55+
return { total: totalIncome, accounts: results };
56+
}
57+
58+
checkRebates().catch(console.error);

0 commit comments

Comments
 (0)