Skip to content

v1.4 - Etherscan API V2 + Key Rotation

Choose a tag to compare

@agaspherus agaspherus released this 05 Nov 17:27
· 4 commits to main since this release

Ethereum Kit v1.4 - Etherscan API V2 + Key Rotation

Multi-module Android library for EVM-compatible blockchains


What's New in v1.4

Version 1.4 brings the same powerful features as v1.3, published without the "v" prefix for proper Gradle convention compatibility.

Key Features

Etherscan API V2 Migration

  • BREAKING CHANGE: Migrated from Etherscan API V1 to V2
  • Unified API endpoint for all networks: https://api.etherscan.io
  • Added chainId parameter for network identification
  • More reliable and future-proof architecture

API Key Rotation

  • Support for multiple API keys with automatic rotation
  • Prevents rate limiting by distributing load across keys
  • Simple List<String> parameter instead of single String

Multi-Module Architecture

  • 5 separate modules for flexibility and smaller APK size
  • Choose only what you need: ethereumkit, erc20kit, nftkit, uniswapkit, oneinchkit
  • Reduce APK size by ~5-6 MB compared to monolithic v1.2

Installation

Add to your build.gradle:

repositories {
    maven { url 'https://jitpack.io' }
}

dependencies {
    implementation 'com.github.0xLabWallet.etherium-kit-0xwallet:ethereumkit:1.4'
    implementation 'com.github.0xLabWallet.etherium-kit-0xwallet:erc20kit:1.4'
    implementation 'com.github.0xLabWallet.etherium-kit-0xwallet:uniswapkit:1.4'
    implementation 'com.github.0xLabWallet.etherium-kit-0xwallet:oneinchkit:1.4'
    implementation 'com.github.0xLabWallet.etherium-kit-0xwallet:nftkit:1.4'
}

πŸ”„ Migration from v1.2

BREAKING CHANGE: API Key Parameter

// ❌ v1.2 (OLD):
val source = TransactionSource.ethereumEtherscan("YOUR_API_KEY")

// βœ… v1.4 (NEW):
val apiKeys = listOf("KEY1", "KEY2", "KEY3")
val source = TransactionSource.ethereumEtherscan(apiKeys)

Full migration guide: See CHANGELOG.md


Supported Networks

βœ… Ethereum β€’ BSC β€’ Polygon β€’ Arbitrum β€’ Optimism β€’ Avalanche β€’ Gnosis β€’ Fantom β€’ DexNet


Documentation


Build Status: βœ… SUCCESS
JitPack: https://jitpack.io/#0xLabWallet/etherium-kit-0xwallet/1.4