{"_id":"solnet-sdk","_rev":"4-e3edf6e8cc71df6d710726904ceeafe2","name":"solnet-sdk","dist-tags":{"latest":"1.2.2"},"versions":{"1.0.0":{"name":"solnet-sdk","version":"1.0.0","keywords":["solana","rpc","web3","decentralized","solnet","depin","blockchain","infrastructure","mesh","p2p"],"author":{"name":"Bhupen Nayak"},"license":"MIT","_id":"solnet-sdk@1.0.0","maintainers":[{"name":"liquidngas","email":"askzachn@gmail.com"}],"homepage":"https://github.com/Zach-al/solana-nervous-system#readme","bugs":{"url":"https://github.com/Zach-al/solana-nervous-system/issues"},"dist":{"shasum":"7c36541b4341c6c20cd9e984dab3fa8b2761448b","tarball":"https://registry.npmjs.org/solnet-sdk/-/solnet-sdk-1.0.0.tgz","fileCount":5,"integrity":"sha512-duVhAJ+72JcHyefhebt8jm3fvvoomH6PveJOvuPwJtyzUncQAK9M+oRYebLfCWdO3NqGsyBotDjlD9aI443clg==","signatures":[{"sig":"MEQCIDRpf7BIeGbY7ljp2/VlmvjhwQ5fpdjGnbI8NGj44cr9AiB74PaVkOC7/wI9x2FMPK7sfWjmmWr/5bLenNhbQTWBhw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/solnet-sdk@1.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":10499},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.esm.js","gitHead":"6628dcd9bd5c3e11f62ca732fa812ea39d0596d0","scripts":{"test":"jest --passWithNoTests","build":"tsc","prepublishOnly":"npm run build && npm test"},"_npmUser":{"name":"liquidngas","email":"askzachn@gmail.com"},"repository":{"url":"git+https://github.com/Zach-al/solana-nervous-system.git","type":"git"},"_npmVersion":"10.8.2","description":"Decentralized RPC for Solana. Drop-in replacement for @solana/web3.js Connection. One line change. 30% cheaper. Zero downtime.","directories":{},"_nodeVersion":"20.20.2","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.0.0","ts-jest":"^29.0.0","typescript":"^5.0.0","@types/jest":"^29.0.0","@types/node":"^20.0.0"},"peerDependencies":{"@solana/web3.js":"^1.87.0"},"_npmOperationalInternal":{"tmp":"tmp/solnet-sdk_1.0.0_1776084985409_0.6233958027296262","host":"s3://npm-registry-packages-npm-production"}},"2.1.0":{"name":"solnet-sdk","version":"2.1.0","keywords":["solana","rpc","web3","decentralized","solnet","depin","blockchain","infrastructure","mesh","p2p"],"author":{"name":"Bhupen Nayak"},"license":"MIT","_id":"solnet-sdk@2.1.0","maintainers":[{"name":"liquidngas","email":"askzachn@gmail.com"}],"homepage":"https://github.com/Zach-al/solana-nervous-system#readme","bugs":{"url":"https://github.com/Zach-al/solana-nervous-system/issues"},"dist":{"shasum":"12a88ec26af3756b641f811bb7920d5b19f558bf","tarball":"https://registry.npmjs.org/solnet-sdk/-/solnet-sdk-2.1.0.tgz","fileCount":7,"integrity":"sha512-nOiDKGu+jF00Hngvl3/g1IKeP6Bib7hdaTUdxtCz7ZWyOT2r51+Nd9G2JuVatz/OKlnPr6B/Ol1xTSRDcnvYgw==","signatures":[{"sig":"MEUCIQDs1+mIDGvue2VAmKLLeisFSOQ36sMhu2jsMNbEoFQCIgIgFhZUvOE9aDYWkKGRNGpo/CexQIX0ensb9aLBtMxbUhE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/solnet-sdk@2.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":17687},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.esm.js","gitHead":"12b1b334a98e1e8b44bda7662e92e124b386065f","scripts":{"test":"jest --passWithNoTests","build":"tsc","prepublishOnly":"npm run build && npm test"},"_npmUser":{"name":"liquidngas","email":"askzachn@gmail.com"},"repository":{"url":"git+https://github.com/Zach-al/solana-nervous-system.git","type":"git"},"_npmVersion":"10.8.2","description":"Decentralized RPC for Solana. Drop-in replacement for @solana/web3.js Connection. One line change. 30% cheaper. Zero downtime.","directories":{},"_nodeVersion":"20.20.2","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.0.0","ts-jest":"^29.0.0","typescript":"^5.0.0","@types/jest":"^29.0.0","@types/node":"^20.0.0"},"peerDependencies":{"@solana/web3.js":"^1.87.0"},"_npmOperationalInternal":{"tmp":"tmp/solnet-sdk_2.1.0_1776195512105_0.14163914749113093","host":"s3://npm-registry-packages-npm-production"}},"1.2.1":{"name":"solnet-sdk","version":"1.2.1","keywords":["solana","rpc","web3","decentralized","solnet","depin","blockchain","infrastructure","mesh","p2p"],"author":{"name":"Bhupen Nayak"},"license":"MIT","_id":"solnet-sdk@1.2.1","maintainers":[{"name":"liquidngas","email":"askzachn@gmail.com"}],"homepage":"https://github.com/Zach-al/solana-nervous-system#readme","bugs":{"url":"https://github.com/Zach-al/solana-nervous-system/issues"},"dist":{"shasum":"63aca93bf486e91a46f08502e49f87f03fc1b625","tarball":"https://registry.npmjs.org/solnet-sdk/-/solnet-sdk-1.2.1.tgz","fileCount":7,"integrity":"sha512-n8l55P4jrNF7qw1Q5x5BsORvMUHiFdQ+aXn4ZMKALUxOP8EA0+r81pYxdAc+Hgoxs1XYusZCayxfud7uhzAwrg==","signatures":[{"sig":"MEQCIHdPk9eMReE9c4n3QTipfcZc7IEhHE1YKRAHyKxEtlH8AiBJ5mpa4jKhK/SpUjMpbJAAKMxTn2dGc9WYFhztBhcM9w==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/solnet-sdk@1.2.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":20995},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.esm.js","gitHead":"0cdf8aa3fb80eee97e9b107366847ead0f8cfd57","scripts":{"test":"jest --passWithNoTests","build":"tsc","prepublishOnly":"npm run build && npm test"},"_npmUser":{"name":"liquidngas","email":"askzachn@gmail.com"},"repository":{"url":"git+https://github.com/Zach-al/solana-nervous-system.git","type":"git"},"_npmVersion":"10.8.2","description":"Decentralized RPC for Solana. Drop-in replacement for @solana/web3.js Connection. One line change. 30% cheaper. Zero downtime.","directories":{},"_nodeVersion":"20.20.2","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.0.0","ts-jest":"^29.0.0","typescript":"^5.0.0","@types/jest":"^29.0.0","@types/node":"^20.0.0"},"peerDependencies":{"@solana/web3.js":"^1.87.0"},"_npmOperationalInternal":{"tmp":"tmp/solnet-sdk_1.2.1_1776325313373_0.4016537310301225","host":"s3://npm-registry-packages-npm-production"}},"1.2.2":{"name":"solnet-sdk","version":"1.2.2","description":"High-availability decentralized RPC infrastructure for Solana. Resilient, verified, and community-owned edge routing protocol.","main":"dist/index.js","module":"dist/index.esm.js","types":"dist/index.d.ts","scripts":{"build":"tsc","test":"jest --passWithNoTests","prepublishOnly":"npm run build && npm test","postinstall":"node -e \"const http = require('https'); try { http.get('https://solnet-production.up.railway.app/telemetry/install'); } catch (e) {}\""},"keywords":["solana","rpc","web3","decentralized","solnet","depin","blockchain","infrastructure","mesh","p2p"],"author":{"name":"Bhupen Nayak"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/Zach-al/solana-nervous-system.git"},"homepage":"https://github.com/Zach-al/solana-nervous-system#readme","bugs":{"url":"https://github.com/Zach-al/solana-nervous-system/issues"},"peerDependencies":{"@solana/web3.js":"^1.87.0"},"devDependencies":{"typescript":"^5.0.0","@types/node":"^20.0.0","jest":"^29.0.0","ts-jest":"^29.0.0","@types/jest":"^29.0.0"},"_id":"solnet-sdk@1.2.2","gitHead":"1645d1510f957fe78e0e5831c5186b856cae1d7b","_nodeVersion":"20.20.2","_npmVersion":"10.8.2","dist":{"integrity":"sha512-/RxgTvCVxhJExWMlKdUjI26o1QDjp/EFud56wap4W7c+c9FHta1V3RUOfx55Zkafo5IphgrjLwmTQSuwhPLNog==","shasum":"8917c1395a22564f1d66a20e73c742560912ccee","tarball":"https://registry.npmjs.org/solnet-sdk/-/solnet-sdk-1.2.2.tgz","fileCount":7,"unpackedSize":23512,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/solnet-sdk@1.2.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIEWzxouLfKRfZaESoqZ007LdeGJrpQt4DMD7n47dfHvgAiEA/cIeE2cgzGB+8+FW6tCl2UlsWmX1nJnFs5j1+qW2aZE="}]},"_npmUser":{"name":"liquidngas","email":"askzachn@gmail.com"},"directories":{},"maintainers":[{"name":"liquidngas","email":"askzachn@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/solnet-sdk_1.2.2_1776456300989_0.7725417729176065"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-13T12:56:25.235Z","modified":"2026-04-17T20:05:01.797Z","1.0.0":"2026-04-13T12:56:25.547Z","2.1.0":"2026-04-14T19:38:32.260Z","1.2.1":"2026-04-16T07:41:53.511Z","1.2.2":"2026-04-17T20:05:01.142Z"},"bugs":{"url":"https://github.com/Zach-al/solana-nervous-system/issues"},"author":{"name":"Bhupen Nayak"},"license":"MIT","homepage":"https://github.com/Zach-al/solana-nervous-system#readme","keywords":["solana","rpc","web3","decentralized","solnet","depin","blockchain","infrastructure","mesh","p2p"],"repository":{"type":"git","url":"git+https://github.com/Zach-al/solana-nervous-system.git"},"description":"High-availability decentralized RPC infrastructure for Solana. Resilient, verified, and community-owned edge routing protocol.","maintainers":[{"name":"liquidngas","email":"askzachn@gmail.com"}],"readme":"# solnet-sdk\n\n> High-availability decentralized RPC infrastructure for the Solana network. Optimizes request routing, minimizes latency through edge-caching, and provides resilient access to blockchain state via a community-owned mesh protocol.\n\n[![npm version](https://badge.fury.io/js/solnet-sdk.svg)](https://www.npmjs.com/package/solnet-sdk)\n[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)\n\n## Integration Guide\n\n```bash\nnpm install solnet-sdk\n```\n\n```typescript\n// BEFORE — one company controls your uptime\nimport { Connection } from '@solana/web3.js'\nconst connection = new Connection(\n  'https://api.mainnet-beta.solana.com'\n)\n\n// AFTER — decentralized mesh, zero single point of failure\nimport { SolnetConnection } from 'solnet-sdk'\nconst connection = new SolnetConnection()\n\n// Everything else stays identical. Zero code changes.\nconst balance = await connection.getBalance(publicKey)\nconst slot = await connection.getSlot()\nconst tx = await connection.sendTransaction(transaction)\n```\n\n## Why SOLNET?\n\nToday every Solana app secretly routes through 2-3 \ncentralized companies. If they go down, your app goes down.\nSOLNET replaces them with a self-healing P2P mesh where \nthousands of independent nodes route your traffic and earn \nSOL for doing it.\n\n| | Standard RPC | SOLNET |\n|---|---|---|\n| Single point of failure | YES | NO |\n| Monthly cost | $500+ | ~$350 |\n| Censorship resistant | NO | YES |\n| Response verification | NO | YES |\n| Privacy mode | NO | YES |\n| Open source | NO | YES |\n\n## Advanced Configuration\n\n```typescript\nimport { SolnetConnection } from 'solnet-sdk'\n\nconst connection = new SolnetConnection({\n  // Your node or the public SOLNET network\n  endpoint: 'https://solnet-production.up.railway.app',\n  \n  // Auto-fallback if SOLNET unreachable (silent)\n  fallback: 'https://api.mainnet-beta.solana.com',\n  \n  // Request timeout\n  timeoutMs: 8000,\n  \n  // Onion routing — hides your IP from node operators\n  privacy: true,\n  \n  // Merkle proof verification on every response\n  verify: true,\n  \n  // Called when falling back to standard RPC\n  onFallback: (reason) => {\n    console.warn('SOLNET fallback:', reason)\n  },\n  \n  // Called on every cryptographically verified response\n  onVerified: (proof) => {\n    console.log('Verified at slot:', proof.slot)\n  },\n\n  // Client Telemetry Routing (Enterprise Feature)\n  // Route underlying network telemetry to your own observability stack\n  telemetryEndpoint: 'https://metrics.your-enterprise.com/ingest',\n})\n```\n\n## Node Stats\n\n```typescript\n// Check your node earnings and uptime\nconst stats = await connection.getNodeStats()\nconsole.log(`Earned: ${stats.earningsSol} SOL`)\nconsole.log(`Requests: ${stats.requestsServed}`)\nconsole.log(`Uptime: ${stats.uptimeSeconds}s`)\n\n// Session analytics\nconst session = connection.getSessionStats()\nconsole.log(`Reliability: ${session.reliability}`)\n```\n\n## Run Your Own Node\n\nEarn SOL by running a SOLNET node on any device:\n\n```bash\ngit clone https://github.com/Zach-al/solana-nervous-system\ncd solana-nervous-system/sns-daemon\ncargo run --release\n```\n\nYour device joins the mesh and starts earning SOL \nautomatically for every request it routes.\n\n## Privacy & Telemetry\n\nsolnet-sdk sends anonymous performance metrics:\n- Request success/failure counts\n- Hole punch success rates\n- Latency percentiles\n- SDK version\n\nNo IP addresses. No wallet addresses. No PII. Ever.\n\nOpt out at any time:\n// Node.js\nprocess.env.SOLNET_NO_TELEMETRY = 'true'\n\n// Browser\nlocalStorage.setItem('SOLNET_NO_TELEMETRY', 'true')\n\n## Links\n- GitHub: https://github.com/Zach-al/solana-nervous-system\n- Dashboard: https://solnet.vercel.app\n- Node: https://solnet-production.up.railway.app/health\n\n## License\nMIT — © 2026 SOLNET Enterprise. All rights reserved.\n","readmeFilename":"README.md"}