API V2 Migration Guide
A step-by-step guide to migrating from Okto V1 to V2 APIs, which adopt a decentralized architecture for greater flexibility and security. It covers key changes, updated endpoints, and best practices to ensure a smooth transition.
This guide provides a detailed walkthrough for migrating your application from Okto V1 APIs to Okto V2 APIs. While the core API functionality remains unchanged, V2 implements a more decentralized architecture, and offering developers enhanced configurability and control over their integrations.
Key Changes Overview
Area | Changes |
---|---|
Architecture | Moved to a more decentralized system with smart contracts on the Okto chain |
Authentication | OAuth-first approach with session key implementation |
Wallet Management | Automated wallet creation across all enabled chains |
Client-Side API Migration Table
New V2 Features
V2 introduces several new capabilities not available in V1:
Intent-Based Architecture
- Estimation Endpoints: Preview gas costs and transaction outcomes before execution
Message Signing
- Sign Message - EIP191 compliant message signing
- Sign Typed Data - EIP712 compliant typed data signing
Swap Intents
- Swap Execute - Execute cross-chain token swap operations
Server API Reference
V1 API Requests | V2 API Requests | Changes |
---|---|---|
GET /s2s/api/v1/wallet | Coming Soon | - |
POST /s2s/api/v1/wallet | Coming Soon | - |
GET /s2s/api/v1/portfolio | Coming Soon | - |
GET /s2s/api/v1/portfolio/nft | Coming Soon | - |
GET /s2s/api/v1/portfolio/activity | Coming Soon | - |
GET /s2s/api/v1/supported/tokens | Coming Soon | - |
POST /s2s/api/v1/bulk-wallets | Coming Soon | - |
POST /s2s/api/v2/nft/mint | Coming Soon | - |
POST /s2s/api/v2/nft/transfer | Coming Soon | - |
POST /s2s/api/v2/transfer/tokens/execute/ | Coming Soon | - |
GET /s2s/api/v2/bulk_order_details/ | Coming Soon | - |
POST /s2s/api/v1/readContractData | Coming Soon | - |
POST /s2s/api/v1/rawtransaction/execute/ | Coming Soon | - |
GET /s2s/api/v1/rawtransaction/status/ | Coming Soon | - |
Migration Support
For additional help: