Skip to Content
API ReferenceOverview

API Reference

Complete API documentation for all EmbarkAI SDK packages.

The EmbarkAI SDK is split into three packages, each serving a distinct purpose. All packages are currently at version 0.1.0.

Packages Overview

PackagePurposeEnvironment
@embarkai/coreAuth, bundler, contract encoding, vault backup, MPC wallet managementNode.js / Browser
@embarkai/ui-kitReact components, hooks, and providers for wallet UIBrowser (React 18+)
@embarkai/mcpModel Context Protocol server for AI-agent wallet accessNode.js

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/mcp

Package 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.

Version History

The current release is v0.1.0. See the Changelog for full release notes.

Last updated on