SDK reference

The planned interface of the @noderr/sdk package.

Not on npm yet. The @noderr/sdk package is not published, so npm install will not find it.

What to use today

Planned installation

npm install @noderr/sdk
# or
yarn add @noderr/sdk
# or
pnpm add @noderr/sdk

Planned quick start

import { NoderrClient } from '@noderr/sdk';

const client = new NoderrClient({
  chainId: 84532, // Base Sepolia
  rpcUrl: 'https://sepolia.base.org',
});

// Get all vaults
const vaults = await client.vaults.getAll();

// Get vault details
const vault = await client.vaults.get('0x49f747BBac988Cd628a5D79AAdF865EBaDe6a34f');
console.log(`TVL: ${vault.tvlUsd}`);

Planned modules

Vaults

// Get all vaults
const vaults = await client.vaults.getAll();

// Get vault by address
const vault = await client.vaults.get(address);

// Get user position in vault
const position = await client.vaults.getUserPosition(vaultAddress, userAddress);

ERC-7540 operations

// Request deposit (ERC-7540 async flow)
const requestId = await client.vaults.requestDeposit(
  vaultAddress,
  amount, // in wei
  receiverAddress
);

// Claim deposit (receive shares after fulfillment)
const shares = await client.vaults.claimDeposit(vaultAddress, receiverAddress);

// Request redeem
const redeemRequestId = await client.vaults.requestRedeem(
  vaultAddress,
  shares,
  receiverAddress,
  ownerAddress
);

// Claim redeem (receive assets)
const assets = await client.vaults.claimRedeem(vaultAddress, receiverAddress);

Strategies

// Get all strategies
const strategies = await client.strategies.getAll();

// Get strategy by ID
const strategy = await client.strategies.get(strategyId);

Governance

// Get all proposals
const proposals = await client.governance.getProposals();

// Vote on proposal
await client.governance.vote(proposalId, support, reason);

Planned types

interface Vault {
  address: string;
  name: string;
  symbol: string;
  tvl: bigint;
  tvlUsd: number;
  totalShares: bigint;
  pricePerShare: bigint;
  apy: {
    current: number;
    day7: number;
    day30: number;
    inception: number;
  };
  fees: {
    management: number;
    performance: number;
    hurdle: number;
  };
  riskLevel: 'conservative' | 'moderate' | 'aggressive';
  isERC7540: boolean;
  fulfillmentDelay?: number;
}

interface Strategy {
  id: string;
  name: string;
  status: 'shadow' | 'paper_trading' | 'live' | 'terminated';
  riskScore: number;
  sharpeRatio: number;
  maxDrawdown: number;
  allocation: bigint;
}

interface UserPosition {
  vault: Vault;
  shares: bigint;
  value: bigint;
  pnl: bigint;
  pnlPercent: number;
}

Last updated: February 2026

results matching ""
    No results matching ""