Native IoTeX Development
This documentation is provided for backward compatibility support. IoTeX is fully Ethereum-compatible; therefore, developers are encouraged to utilize Ethereum tools to build dApps on IoTeX.
Overview of Antenna SDK
Antenna is the IoTeX native SDK, enabling direct interaction with a local or remote IoTeX node using a gRPC connection. It is available for the most popular programming languages. The key difference between developing with Antenna versus the Web3 SDK is that Antenna wraps the full gRPC Native API of the IoTeX protocol and uses the native representation of IoTeX addresses.
While IoTeX fully supports the Ethereum API, allowing the use of Web3 tools for dApp development, IoTeX's architecture is more complex than Ethereum's. This makes Antenna the necessary choice when leveraging IoTeX's unique features. For example, concepts such as "Delegates," "Block Producers," "Staking Transactions," "Buckets," and "Voting" have no equivalents in Ethereum. Therefore, to utilize these features in your dApp, you need to use Antenna instead of tools like Web3.js.
The Example Code section includes samples for each supported language.
Supported Languages
antenna-js (Javascript)
In your JS project root, use npm install
or yarn add
.
or add the following line to your html.
A few useful links:
Reference Code: the docs section with reference implementation for most common blockchain requirements.
Integrate IoPay Wallet: the docs section explaining how to integrate your web client with IoPay Wallet
Antenna-JS Reference: the API reference documentation for Antenna-JS
antenna-java (java):
Install By Maven
Install by Gradle
antenna-go (go lang):
In your Golang project root, use go dep
or go mod
.
A few useful links:
Reference Code: the docs section with reference implementation for most common blockchain requirements.
Code Examples section for most common SDK use case in Go.
antenna-swift (iOS):
In your JS project root, use npm install
or yarn add
.
A few useful links:
Reference Code: the docs section with reference implementation for most common blockchain requirements.
antenna-embedded (C):
Download the latest release of Antenna Embedded, then in your C file include the following:
Features
Crypto: Provides cryptographic functions to generate public/private keys, sign transactions and data, and other utility functions.
RPC-Methods: Allows calling any RPC method provided by an IoTeX Blockchain Gateway.
Account: Functions to create and manage blockchain accounts.
Action: Enables creation and management of blockchain actions.
Contract: Facilitates interaction with contracts deployed on the IoTeX Blockchain, given the contract address and ABI.
XRC20: Supports sending, receiving, and querying wallets for XRC20 tokens deployed on the IoTeX Blockchain.
Last updated