cryptoinfra
v0.1.0
Published
Official TypeScript client for the cryptoinfra API — wallets, payouts, payment links, swaps and cards behind one key.
Maintainers
Readme
cryptoinfra
Official TypeScript client for the cryptoinfra API — custodial wallets, USDT/USDC payouts, hosted payment links, cross-chain swaps and crypto debit cards behind one key. Free forever; the platform earns a small take-rate only when money moves.
npm install cryptoinfraimport { CryptoInfra } from 'cryptoinfra';
const ci = new CryptoInfra({ apiKey: process.env.CRYPTOINFRA_KEY! });
// Give a customer deposit addresses on every enabled chain
const user = await ci.users.create('customer-42');
// Collect a payment with a hosted checkout page
const link = await ci.paymentLinks.create({
title: 'Order #1042',
asset_id: 'usdt_trc20',
amount: '25',
});
console.log(link.url); // → https://merchant.cryptoinfra.build/pay/…
// Pay out — single or batch (idempotency keys make retries safe)
await ci.withdrawals.create({
external_user_id: 'customer-42',
asset_id: 'usdt_trc20',
to_address: 'T…',
amount: '10',
idempotency_key: 'payout-2026-08-29-42',
});- Docs / API reference: https://merchant.cryptoinfra.build/api-docs
- Sign up (self-serve, no KYC): https://merchant.cryptoinfra.build/signup
- Support: [email protected] · Telegram
@gustavocoderr
Zero dependencies (plain fetch, Node ≥ 18). Errors throw CryptoInfraError
carrying the API's own code and HTTP status.
