Skip to main content

Developer Documentation

Build on Tonsurance with our smart contracts and APIs. All code is open-source and audited.

Quick Start

Smart Contracts

TON blockchain contracts for parametric coverage

Learn more →

Telegram Bot API

Integrate Tonny into your application

Learn more →

JavaScript SDK

Client library for coverage integration

Learn more →

Smart Contract Addresses

Policy Factory:EQC...
Oracle Manager:EQD...
Premium Pool:EQE...
Payout Controller:EQF...

All contracts are verified on TONScan. View source code on GitHub.

Integration Examples

Get Live Quote

// Connect to Tonny API
const quote = await tonsurance.getQuote({
  riskType: 'stablecoin_depeg',
  coverageAmount: 10000,
  duration: 30
});

console.log(quote.premium); // Premium in TON

Deploy Coverage Contract

// Deploy parametric coverage
const coverage = await tonsurance.deployCoverage({
  riskType: 'stablecoin_depeg',
  coverageAmount: 10000,
  duration: 30,
  threshold: 0.5 // 0.5% depeg
});

console.log(coverage.address);

Questions?

Join our developer community on Telegram or check our docs.

Tonny, the Tonsurance bot

Hey! Need help with coverage? 💎

Chat with me to get a personalized quote in seconds!