Getting started
Install Printr and run your first token launch.
Prerequisites
- Bun (Node.js also works as a fallback runtime)
- No API key required — the SDK targets the public preview API
(
https://api-preview.printr.money) by default, which needs no credentials.
Install
bun add @printr/sdk
# or run the MCP server / CLI
bunx @printr/cli setupFull MCP-client configuration details live in
INSTALL.md and on the
MCP server page.
Your first launch
buildToken calls the API and returns an unsigned transaction payload. You then sign and
submit it (see Wallets & signing).
import { , , } from "@printr/sdk";
// Defaults target the public preview API; no key needed.
const = ({
: .,
: .,
});
const = await (
{
: ["eip155:8453:0xYourAddress"],
: "My Token",
: "MINE",
: "A cross-chain token.",
: ["eip155:8453"], // Base
: { : 10 },
: "./logo.jpg",
},
,
);buildToken returns a neverthrow ResultAsync — match on it instead of try/catch:
.(
() => .("Unsigned payload ready", ),
() => .("Build failed", ),
);