Printr SDK [NEW]
TypeScript SDK for programmatic token creation
TypeScript SDK for Printr — create and manage tokens across EVM chains and Solana.
NPM: @printr/sdk
GitHub: github.com/PrintrFi/printr-mcp
Developer reference: full SDK reference — exports, types, and guides
Features
Multi-chain support — Deploy tokens on Base, Ethereum, Solana, and more
Secure wallet management — Encrypted keystore with AES-256-GCM
Balance & transfers — Query balances and transfer tokens across chains
Image generation — AI-powered token avatar creation
Framework-agnostic — Works with Node.js, Bun, and browsers
Type-safe — Full TypeScript support with Zod schemas
Installation
npm install @printr/sdk
# or
bun add @printr/sdk
# or
yarn add @printr/sdkQuick Start
Create a Token
Sign and Submit Transactions
Check Balances
Transfer Tokens
Modules
The SDK is organized into focused modules:
Configuration
Environment Variables
PRINTR_API_KEY
Optional API key. Defaults to public integration key
PRINTR_API_BASE_URL
API base URL (default: https://api-preview.printr.money)
OPENROUTER_API_KEY
For AI image generation
OPENROUTER_IMAGE_MODEL
Image model override (default: google/gemini-2.5-flash-image)
EVM_WALLET_PRIVATE_KEY
Default EVM private key for signing
SVM_WALLET_PRIVATE_KEY
Default Solana keypair secret for signing
PRINTR_DEPLOYMENT_PASSWORD
Master password for encrypted keystore (min 16 chars)
Keystore Security
The SDK uses AES-256-GCM encryption with scrypt key derivation:
Supported Chains
EVM (CAIP-2 format)
Ethereum
eip155:1
Base
eip155:8453
Arbitrum
eip155:42161
Avalanche
eip155:43114
BNB Smart Chain
eip155:56
Monad
eip155:143
Mantle
eip155:5000
Unichain
eip155:130
HyperEVM
eip155:999
MegaETH
eip155:4326
Plasma
eip155:9745
Solana
Mainnet
solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp
Error Handling
Most operations return ResultAsync<T, E> from neverthrow:
API Reference
Client
Token Operations
Transaction Signing
TypeScript
All types are exported:
Requirements
Node.js 18+ or Bun 1.0+
TypeScript 5.9+ (peer dependency)
Resources
Last updated
