SDK
A TypeScript SDK for the Yo yield protocol. Full ERC-4626 vault support with React hooks and multi-chain coverage.
Quick Links
Installation — Get set up with npm, pnpm, or yarn.
Quick Start — Build your first integration in minutes.
@yo-protocol/core — Framework-agnostic TypeScript client.
@yo-protocol/react — React hooks with wagmi and TanStack Query.
Guides — Wagmi setup, Next.js SSR, error handling.
Examples — Complete code examples and patterns.
Features
ERC-4626 Vaults — Deposit, withdraw, and redeem with full tokenized vault support.
Multi-Chain — Native support for Ethereum and Base with unified APIs.
Type-Safe — Zod-validated API responses and end-to-end TypeScript types.
Built on viem — Low-level contract interactions via viem for reliability and performance.
React Hooks — Automatic caching, refetching, and optimistic updates via TanStack Query.
Gateway Deposits — Deposit any supported asset with built-in slippage protection.
Supported Vaults
yoETH
WETH
Ethereum, Base
yoBTC
cbBTC
Base
yoUSD
USDC
Base
yoEUR
EURC
Base
yoGOLD
XAUt
Ethereum
yoUSDT
USDT
Ethereum
Last updated