Skip to main content

SDK Overview

Oko provides specialized SDKs for different blockchain ecosystems. Choose the right packages for your project.

Get started faster

Prefer a ready-to-run example? Try the Starter Templates.

Installation

# For Cosmos ecosystem
npm install @oko-wallet/oko-sdk-cosmos

# For Ethereum/EVM chains
npm install @oko-wallet/oko-sdk-eth

# Core SDK (for custom integration)
npm install @oko-wallet/oko-sdk-core

Quick Setup

Cosmos

import { OkoCosmosWallet } from "@oko-wallet/oko-sdk-cosmos";

const initRes = OkoCosmosWallet.init(config);
if (!initRes.success) {
throw new Error(`Cosmos wallet initialization failed: ${initRes.err}`);
}

const cosmosWallet = initRes.data;

Ethereum

import { OkoEthWallet } from "@oko-wallet/oko-sdk-eth";

const initRes = OkoEthWallet.init(config);
if (!initRes.success) {
throw new Error(`Eth wallet initialization failed: ${initRes.err}`);
}

const ethWallet = initRes.data;
const provider = await ethWallet.getEthereumProvider();

Next Steps