For the complete documentation index, see llms.txt. This page is also available as Markdown.

Printr SDK [NEW]

TypeScript SDK for programmatic token creation

TypeScript SDK for Printr — create and manage tokens across EVM chains and Solana.

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

Quick Start

Create a Token

Sign and Submit Transactions

Check Balances

Transfer Tokens


Modules

The SDK is organized into focused modules:


Configuration

Environment Variables

Variable
Description

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)

Chain
CAIP-2 ID

Ethereum

eip155:1

Base

eip155:8453

Arbitrum

eip155:42161

Avalanche

eip155:43114

BNB Smart Chain

eip155:56

Solana

Network
CAIP-2 ID

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