SDK
Official JavaScript / TypeScript SDK for the Cryptonly merchant API.
npm install @cryptonly/sdkQuick 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