Skip to main content

Introduction

Explore our SDKs for building crypto payment applications, on/off-ramp integrations, and more.
KillB SDKs simplify integration by providing type-safe, developer-friendly interfaces to the KillB API.

Available SDKs

Why Use an SDK?

Full TypeScript support with autocomplete and type checking
// TypeScript knows the response structure
const user = await killb.users.create({
  type: 'PERSON',
  data: { /* autocomplete available */ }
});
Automatic token management and refresh
const killb = new KillB({
  email: '[email protected]',
  password: 'your-password'
});
// Authentication handled automatically
Typed errors with helpful messages
try {
  await killb.ramps.create(rampData);
} catch (error) {
  if (error.code === 'RAMP.0001') {
    // Handle expired quotation
  }
}
  • Async/await support
  • Promise-based API
  • Comprehensive documentation
  • Active maintenance
  • Community support

Quick Comparison

FeatureREST APIJavaScript SDKPython SDK
SetupManual authSimple configSimple config
Type Safety✅ TypeScript✅ Type hints
Auth ManagementManualAutomaticAutomatic
Error TypesGenericTypedTyped
IDE SupportLimitedExcellentGood
Learning CurveModerateEasyEasy

Getting Started

1

Choose Your SDK

Select the SDK for your programming language
2

Install

Install via package manager (npm, pip, etc.)
3

Initialize

Configure with your API credentials
4

Build

Start using SDK methods to interact with KillB
// Complete on-ramp flow with SDK
const killb = new KillB(config);

// 1. Create user
const user = await killb.users.create({
  type: 'PERSON',
  data: userData
});

// 2. Create wallet
const wallet = await killb.accounts.create({
  type: 'WALLET',
  userId: user.id,
  data: walletData
});

// 3. Get quote
const quote = await killb.quotations.create({
  fromCurrency: 'COP',
  toCurrency: 'USDC',
  amount: 100000,
  cashInMethod: 'PSE',
  cashOutMethod: 'POLYGON'
});

// 4. Create ramp
const ramp = await killb.ramps.create({
  quotationId: quote.id,
  userId: user.id,
  accountId: wallet.id
});

console.log('Payment URL:', ramp.paymentInfo[0].url);

SDK Features

Auto Retry

Automatic retry with exponential backoff

Token Refresh

Automatic token refresh before expiry

Request Logging

Built-in logging for debugging

Error Handling

Structured error responses

Type Definitions

Full TypeScript definitions

Webhook Helpers

Signature verification utilities

Community & Support

Next Steps