API Reference
Complete API documentation for all embarkAI SDK packages.
The embarkAI SDK is split into three packages, each serving a distinct purpose.
Packages Overview
| Package | Version | Purpose | Environment |
|---|---|---|---|
@embarkai/core | 0.4.15 | Auth, bundler, contract encoding, vault backup, MPC wallet management | Node.js / Browser |
@embarkai/ui-kit | 0.4.95 | React components, hooks, and providers for wallet UI | Browser (React 18+) |
@embarkai/mcp | 0.2.4 | Model Context Protocol server for AI-agent wallet access | Node.js |
This reference documents the versions above. See the Changelog for release notes.
Installation
# Core SDK — authentication, transactions, and wallet management
npm install @embarkai/core
# UI Kit — React components and hooks
npm install @embarkai/ui-kit
# MCP Server — AI-agent integration
npm install @embarkai/mcpPackage Details
@embarkai/core
The foundation layer. Provides authentication flows (email, Telegram, userId), ERC-4337 bundler integration, ERC-20/721/1155 contract encoding helpers, encrypted keyshare vault backup, and the ServerWalletManager for server-side wallet operations.
@embarkai/ui-kit
A React-based UI layer built on top of @embarkai/core. Ships a Provider component, wallet connection buttons, transaction hooks (useSendTransaction, useUserOpStatus), asset hooks, theme/language toggles, and full i18n support.
@embarkai/mcp
An MCP-compatible server that exposes wallet operations as AI-agent tools. Includes seven built-in tools for balance queries, token transfers, contract reads, chain switching, and transaction status checks.
Quick Links
- Getting Started — installation and first wallet
- Core SDK Reference — all core exports
- UI Kit Reference — all UI exports
- MCP Server Reference — MCP tools and config
- FAQ — common questions and answers