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

SDK

Official JavaScript / TypeScript SDK for the Cryptonly merchant API.

Cryptonly provides an official JavaScript / TypeScript SDK for server-side integrations.

The SDK helps you work with the merchant API faster by giving you a typed client for common operations such as invoice creation, withdrawals, and account access, without having to build raw HTTP requests manually.

It is designed for trusted backend environments only and uses your tenant API key to authorize requests.

Use the SDK if you want to:

  • create invoices from your backend

  • manage withdrawals programmatically

  • work with merchant accounts

  • integrate Cryptonly into Node.js or TypeScript services more quickly

You can install the package from npm as @cryptonly/sdk.

npm install @cryptonly/sdk

Quick start

import { Cryptonly } from '@cryptonly/sdk';

const client = new Cryptonly({
  apiKey: process.env.CRYPTONLY_API_KEY!,
  defaultAccountId: process.env.CRYPTONLY_ACCOUNT_ID, // optional
});

const invoice = await client.invoice.create({
  amount: 100,
  fiatCurrencyCode: 'USD',
  description: 'Order #123',
  orderId: 'order_123',
});

Last updated