Prerequisites
- Node.js 18+
- A wallet private key (use a throwaway key for testnet)
- Polygon Amoy testnet MATIC — get free faucet tokens at faucet.polygon.technology
Step 1 — Install the SDK
Step 2 — Initialise Your Project
Theankara init wizard scaffolds a project and generates ankara.config.json:
- Project name — used as a label in config
- Network —
polygon-amoyrecommended for testnet - Private key — stored in
.env, never in config
Step 3 — Deploy the Token Factory
The on-chainTokenFactory contract must be deployed once per network before you can issue tokens:
ankara.config.json:
Step 4 — Deploy a Token
Deploy a token from any of the six asset templates:Step 5 — Mint Tokens
Mint fractional shares to an investor address:Using the SDK Directly
For programmatic use in your application:React Hooks
Next Steps
Explore Asset Templates
See metadata schemas for all 6 asset classes.
CLI Commands
Full reference for every
ankara command.TokenFactory SDK
Programmatic deploy API with full type signatures.
Smart Contracts
Architecture, roles, and upgrade patterns.