Skip to main content

Overview

The ONE SDK (@one_deploy/sdk v1.1.0) is a full-stack Web3 toolkit that ships wallet management, fiat on/off-ramp payments, token swaps, AI-powered trading agents, and on-chain forex -- all behind a single npm package with tree-shakable entry points.

Architecture

+------------------------------------------------------------------+
| Your Application |
+------------------------------------------------------------------+
| React DOM (Web) | React Native | Node |
| - OneProvider | - createCachedEngine | (API) |
| - OneThirdwebProvider | Client | |
| - Smart Wallet widgets | - AI Trading components | |
| - Payment widgets | - Forex components | |
| - NFT Gallery | - Deep link handler | |
+------------------------------------------------------------------+
| @one_deploy/sdk |
| +-----------+ +-----------+ +-----------+ +-----------+ |
| | Hooks | | Providers | | Services | | Utils | |
| | (27+) | | (2) | | (5+) | | | |
| +-----------+ +-----------+ +-----------+ +-----------+ |
| +-----------------------------------------------------------+ |
| | OneEngineClient (91+ methods) | |
| +-----------------------------------------------------------+ |
+------------------------------------------------------------------+
| | |
v v v
ONE Engine API Thirdweb (optional) Supabase (optional)
engine.one23.io wallet / contracts realtime / auth

Feature Matrix

The table below shows which features are available on each platform.

FeatureWeb (React DOM)React NativeAPI-only (Node / Edge)
Wallet
Smart wallet (connect button)Yes----
Balance displayYes----
Send / Receive widgetsYes----
NFT galleryYes----
QR scanningYes----
Payments
Onramp widgetYes----
Offramp widgetYes----
Swap widgetYes----
Pay widget (unified)Yes----
AI Trading
Chain selector--Yes--
Tier selector--Yes--
Cycle selector--Yes--
Pair selector--Yes--
Forex
Pool card--Yes--
Capital split--Yes--
Console view--Yes--
Pair selector--Yes--
Trade history--Yes--
HooksYesYes--
OneEngineClientYesYesYes
PriceServiceYesYesYes
SupabaseServiceYesYesYes
UsageServiceYesYesYes
forexSimulationEngineYesYesYes
botSimulationEngineYesYesYes
tip

Web widgets (connect button, payment widgets, NFT gallery) are not available in React Native. Use the hooks and OneEngineClient directly to build custom RN UIs.

Hooks Inventory

Provider-based hooks (require OneProvider or OneThirdwebProvider)

HookPurpose
useOneCore SDK context -- config, engine client, auth state
useOneAuthEmail OTP, wallet-signature auth, session management
useOneWalletActive wallet address, chain, balances
useOneOnrampFiat onramp quotes, order creation
useOneSwapToken swap quotes, execution, route previews
useOneTradingAI trading orders, strategies, portfolio
useOneEngineDirect access to the OneEngineClient instance

Standalone hooks (no provider required)

HookPurpose
useWalletBalanceFetch native + token balances for any address
useTokenPriceReal-time price for a single token
useTokenPricesBatch token price lookup

AI Trading hooks

HookPurpose
useAIStrategiesList available AI strategies
useAIStrategyFetch a single strategy by ID
useAIOrdersQuery open and historical orders
useAIPortfolioAggregated portfolio metrics
useAIMarketDataLive market data for supported pairs
useAITradingCreate, cancel, and manage AI orders

Forex hooks

HookPurpose
useForexPoolsList all forex liquidity pools
useForexInvestmentsUser investment positions
useForexSimulationRun pool simulations client-side
useForexPoolDataDetailed metrics for a single pool
useForexTradingCreate and manage forex positions

Services

ServiceDescription
OneEngineClientCentral API client with 91+ methods covering auth, wallet, swap, onramp/offramp, AI trading, forex, contracts, NFTs, billing, staking, bridges, gas, pricing, webhooks, admin, and project management.
PriceServiceToken and fiat price feeds with caching.
SupabaseServiceThin wrapper around Supabase for realtime subscriptions and row-level auth.
UsageServiceTracks metered API usage against project quotas.
forexSimulationEngineClient-side forex pool simulation (capital allocation modelling).
botSimulationEngineClient-side bot back-testing and P&L projection.

Next Steps