
Security News
CVE Volume Surges Past 48,000 in 2025 as WordPress Plugin Ecosystem Drives Growth
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.
The Kohin SDK is a comprehensive developer toolkit designed to integrate Kohin's decentralized insurance system seamlessly into your applications. It enables efficient interaction with Kohin smart contracts and backend APIs, facilitating management and an
The Kohin SDK is a comprehensive developer toolkit designed to integrate Kohin's decentralized insurance system seamlessly into your applications. It enables efficient interaction with Kohin smart contracts and backend APIs, facilitating management and analytics for user bets, coverage, and liquidity pools.
npm install kohin-sdk
import { Kohin } from "kohin-sdk";
// Initialize SDK with credentials
const kohin = new Kohin({
accessKey: "<ACCESS_KEY>",
secretKey: "<SECRET_KEY>",
rpcUrl: "<RPC_URL>",
envMode: "<ENV_MODE>", // Choose between "test", "preProd", or "prod"
});
// Get Active Bets
const activeBets = await kohin.getActiveBetData({
bettorAddress: "0x...",
pageCount: 1,
});
// Get Bet Details
const details = await kohin.getBetDetails({
betId: "0x...",
});
// Get Odds History
const history = await kohin.getOddsHistory({
conditionId: "0x...",
});
// Calculate Premium
const premium = await kohin.calculatePremium({
betId: 123,
betType: "Combo", // For an "Express" bet, pass betType as "Combo" and for an "Ordinar" bet, pass betType as "Single."
odds: 2.5,
betAmount: 100,
numLegs: 2,
});
// Buy Cover
const cover = await kohin.buyCover({
betId: 123,
betAmount: 100,
betType: "Combo", // For an "Express" bet, pass betType as "Combo" and for an "Ordinar" bet, pass betType as "Single."
slippagePercent: 5, // Pass a slippagePercent value between 0 and 100. For example, 5 represents 5%.
coverPremium: BigInt(1000000), // 1 USDT (6 decimals)
});
// Add Liquidity
await kohin.approveAmount({ amount: 1000 }); // for 1000 USDT
const deposit = await kohin.addLiquidity({ amount: 1000 }); // for 1000 USDT
// Remove Liquidity
const withdrawal = await kohin.removeLiquidity({
depositId: 1099511627894,
percent: 16, // Pass a percent value between 0 and 100. For example, 16 represents 16%.
});
All methods return a consistent response format:
interface ResponseData<T> {
success: boolean;
data?: T;
error?: string;
}
try {
const result = await kohin.someOperation(params);
if (result.success) {
// Handle success
} else {
// Handle error
}
} catch (error) {
// Handle unexpected errors
}
MIT
FAQs
The Kohin SDK is a comprehensive developer toolkit designed to integrate Kohin's decentralized insurance system seamlessly into your applications. It enables efficient interaction with Kohin smart contracts and backend APIs, facilitating management and an
The npm package kohin-sdk receives a total of 0 weekly downloads. As such, kohin-sdk popularity was classified as not popular.
We found that kohin-sdk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.

Security News
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.

Security News
Tailwind Labs laid off 75% of its engineering team after revenue dropped 80%, as LLMs redirect traffic away from documentation where developers discover paid products.