Tutorials
Step-by-step guides for common EmbarkAI tasks.
These tutorials walk you through real-world scenarios using the EmbarkAI SDK. Each guide includes complete code examples you can copy and adapt for your own project.
Prerequisites
Before starting any tutorial, make sure you have:
- Node.js 18+ installed
- An EmbarkAI API key from the Dashboard
- Basic familiarity with TypeScript and Ethereum concepts
Available Tutorials
Send Your First Transaction
Send a native token transfer using the Core SDK. You will create a wallet manager, load a wallet, and submit a UserOperation.
Difficulty: Beginner | Time: 10 minutes
Deploy a Smart Wallet
Create a new MPC wallet using the DKG protocol and understand the counterfactual deployment model. Your wallet’s smart account is deployed automatically on the first transaction.
Difficulty: Beginner | Time: 15 minutes
Gasless Transactions
Configure Paymaster gas sponsorship so your users can send transactions without holding native tokens. Covers both backend and frontend approaches.
Difficulty: Intermediate | Time: 15 minutes
ERC-20 Transfers
Transfer ERC-20 tokens using encoding helpers on the backend and the useSendTransaction hook on the frontend. Includes the approve + transferFrom pattern.
Difficulty: Intermediate | Time: 20 minutes
Next Steps
- Core SDK Reference — Full API documentation for
@embarkai/core - Frontend SDK Reference — Full API documentation for
@embarkai/ui-kit - Platform Concepts — Understand Account Abstraction, MPC, and Paymaster