🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@solinkify/depin

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@solinkify/depin

Solinkify DePIN node-operator SDK — staking tiers, PDA helpers, weighted score, and epoch reward math for the $SINKY relay network on Solana.

latest
npmnpm
Version
0.2.0
Version published
Maintainers
1
Created
Source

@solinkify/depin

Node-operator SDK for the Solinkify DePIN relay network on Solana: staking tiers, PDA helpers, weighted-score and epoch-reward math, and thin instruction wrappers for register_node / add_stake / unstake / claim_reward — everything mirrors the on-chain program, so what you compute locally is what the contract enforces.

Run a node, relay Solinkify traffic (Jalur B), earn a share of protocol fees: 0.375% of every relayed payment goes to the relaying node directly plus 0.375% into the epoch reward pool, split by weighted score.

Install

npm install @solinkify/depin @coral-xyz/anchor @solana/web3.js @solana/spl-token

Staking tiers (tokenomics v2, enforced on-chain)

TierMin stakeMultiplier
Lite25 $SINKY1.0×
Bronze100 $SINKY1.0×
Silver500 $SINKY1.5×
Gold2,000 $SINKY2.5×
import { getTierFromStake, TIER_THRESHOLDS, MIN_STAKE, formatSinky } from '@solinkify/depin';

getTierFromStake(2_000n * 1_000_000_000n); // 'Gold'  (raw units, 9 decimals)

Reward weight = stake × multiplier × uptimecalculateWeightedScore() mirrors the on-chain formula exactly.

Quick start

import { createDepinClient, deriveNodeOperatorPda } from '@solinkify/depin';

// Requires env: NEXT_PUBLIC_RPC_URL, NEXT_PUBLIC_PROGRAM_ID, NEXT_PUBLIC_SINKY_MINT
const client = createDepinClient(provider, idl);   // AnchorProvider + program IDL

await client.registerNode({ stakeAmount: 100n * 1_000_000_000n, provider, idl }); // Bronze
const node = await client.fetchNodeOperator(wallet.publicKey);
const est  = await client.estimateReward(wallet.publicKey);

Fee routing (Jalur A/B)

computeFees() reproduces the on-chain split so dashboards and nodes can display exact expected amounts:

  • Jalur A (direct): 99% seller · 0.9% treasury · 0.1% team
  • Jalur B (via node): 99% seller · 0.375% relaying node · 0.375% epoch pool · 0.15% treasury · 0.1% team

Program

  • Program id: A8qSJCS2uxxnEMdCcpjX2L8hUUMydoeCi5xq5qvzS22B (same on devnet & mainnet)
  • PDAs: ["node_operator", operator], ["epoch_state", epoch_num]

License

MIT © Solinkify

Keywords

solana

FAQs

Package last updated on 11 Jul 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts