Skip to Content
Prerequisites

Prerequisites

Before integrating UNIKRON API, ensure you have the following technical requirements in place.

Technical Requirements

Valid API Key

Obtain a valid API key with appropriate tier subscription from https://unikron.ch 

Web3 Library

Install ethers.js (v5.x or v6.x) or web3.js (v1.x) library

Token Standards Knowledge

Understanding of ERC-20 token standards and WETH functionality

Transaction Signing

Transaction signing capability (hardware wallet, MPC, or secure key management)

Network Connectivity

Network connectivity to Ethereum mainnet RPC endpoints

Integration Checklist

Before implementing UNIKRON API integration, ensure your system meets these requirements:

Infrastructure Requirements

  • TLS 1.3 capable HTTPS client
  • Minimum 99.9% uptime SLA for production environments
  • Error handling and retry logic for API failures
  • Logging infrastructure for audit trail compliance

Security Requirements

  • Secure API key storage (environment variables or secrets manager)
  • Private key management per industry best practices
  • Rate limiting on client side to prevent quota exhaustion
  • Input validation for all user-provided parameters

Compliance (Institutional Clients)

  • KYC/AML procedures completed
  • Terms of Service acknowledgment
  • Compliance with local jurisdiction regulations
  • Transaction monitoring systems in place

Common Implementation Errors

MistakeFix
Using native ETH as sellTokenAlways use WETH address instead
Forgetting to approve tokensCall approve() before swapping
Not waiting for approval confirmationUse await tx.wait()
Hardcoding router addressUse dexRoute.target from quote
Not polling order statusPoll every 10 seconds until confirmed
Last updated on