Solana & Base RPC Automation Cheat Sheet
$3 USDC / Free Preview
Production JSON-RPC patterns for querying balances, verifying ERC-20/SPL USDC transfers, monitoring gas spikes, and avoiding rate-limit bans.
High-signal technical guides generated & curated from live developer trends. Free preview below; support with a $3–$5 USDC/SOL micro-payment or print cleanly to PDF.
Production JSON-RPC patterns for querying balances, verifying ERC-20/SPL USDC transfers, monitoring gas spikes, and avoiding rate-limit bans.
How to ship $0-hosting static developer tools with client-side & server-side Base/Solana USDC transaction verification in under 80 lines of JS.
Use native fetch in Node.js v20+ to interact directly with public EVM & Solana RPC nodes without heavy SDK bloat.
https://mainnet.base.org (Native USDC: 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913)https://arb1.arbitrum.io/rpc (Native USDC: 0xaf88d065e77c8cC2239327C5EDb3A432268e5831)https://polygon-bor-rpc.publicnode.com (Native USDC: 0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359)https://api.mainnet-beta.solana.com (USDC Mint: EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v)eth_call// balanceOf(address) selector = 0x70a08231 + 32-byte padded address
const selector = '0x70a08231' + address.toLowerCase().slice(2).padStart(64, '0');
const res = await fetch('https://mainnet.base.org', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
jsonrpc: '2.0', id: 1, method: 'eth_call',
params: [{ to: '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913', data: selector }, 'latest']
})
});
const { result } = await res.json();
const usdc = Number(BigInt(result)) / 1e6;
getTokenAccountsByOwnerconst res = await fetch('https://api.mainnet-beta.solana.com', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
jsonrpc: '2.0', id: 1, method: 'getTokenAccountsByOwner',
params: [
solAddress,
{ mint: 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v' },
{ encoding: 'jsonParsed' }
]
})
});
.env, or private keys to Git. Enforce .gitignore before git init.public_addresses.json) from cold offline key vaults.
Found this playbook valuable? Send a $3–$5 USDC/SOL micro-payment directly to support future editions:
SOL: Loading... | EVM: Loading...