SDK & Developer Tools

Build on AERE Network with our comprehensive suite of development tools, SDKs, and starter templates.

JavaScript SDK

The AERE Network JavaScript SDK provides a simple interface for interacting with the AERE blockchain, smart contracts, and APIs. It's built on top of ethers.js and provides additional functionality specific to AERE Network.

Installation

npm install aere-sdk
yarn add aere-sdk
pnpm add aere-sdk

Basic Usage

const AereSDK = require('aere-sdk'); // Initialize SDK const sdk = new AereSDK({ rpcUrl: 'https://api.aere.network/rpc', privateKey: process.env.PRIVATE_KEY // Optional }); // Get network status const status = await sdk.getNetworkStatus(); console.log(status); // Get token balance const balance = await sdk.getTokenBalance('0xTokenAddress', '0xUserAddress'); console.log(`Balance: ${balance}`); // Transfer tokens const receipt = await sdk.transferTokens('0xTokenAddress', '0xRecipient', '10.0'); console.log(`Transaction hash: ${receipt.transactionHash}`);

Examples

Basic Usage

Learn the fundamental operations of the AERE SDK including connecting to the network, checking balances, and transferring tokens.

View Example

Swap Tokens

Learn how to swap tokens using the AERE DEX interface through the SDK, including price quotes and slippage handling.

View Example

Liquidity Provision

Examples for adding/removing liquidity and staking LP tokens to earn rewards from the incentives program.

View Example

Custom Contracts

Examples for interacting with custom smart contracts deployed on the AERE Network.

View Example

Command Line Interface (CLI)

The AERE CLI provides a command-line interface for interacting with AERE Network. It allows you to perform common operations like checking balances, transferring tokens, swapping, staking, and more.

Installation

npm install -g aere-cli
yarn global add aere-cli
pnpm add -g aere-cli

Common Commands

aere status
Check network status and connection information
$ aere status Connecting to AERE Network... ✓ Connected to AERE Mainnet Chain ID: 2800 Current block: 12345678 Gas price: 5 Gwei
aere balance
Check token balance for an address
$ aere balance --token 0xTokenAddress --address 0xUserAddress Checking balance... 0xUserA... has 150.25 AERE
aere transfer
Transfer tokens from your wallet to another address
$ aere transfer --token 0xTokenAddress --recipient 0xRecipient --amount 10.0 Transferring 10.0 AERE to 0xRecip... Transaction submitted! Transaction hash: 0x123456...
aere swap
Swap one token for another using a DEX router
$ aere swap --router 0xRouterAddress --token-in 0xToken1 --token-out 0xToken2 --amount 5.0 Getting price quote... 5.0 AERE ≈ 25.0 USDC Executing swap... Transaction hash: 0x123456...
aere key
Generate or manage wallet keys
$ aere key --generate --save ./keyfile.json Generating new key pair... ✓ New key generated Public address: 0x123456... Key file saved to ./keyfile.json

Learn More

For a complete list of commands and options, run:

aere --help

Templates & Starter Kits

Jumpstart your development on AERE Network with our pre-built templates and starter kits. These templates are designed to help you get up and running quickly with best practices already implemented.

DApp Starter Template

A comprehensive starter template for building decentralized applications on AERE Network.

  • Wallet connection (MetaMask, WalletConnect, etc.)
  • Network detection and switching
  • Token balances display
  • Token swapping interface
  • Responsive design with dark/light mode

ERC-20 Token Template

A template for creating compliant ERC-20 tokens on AERE Network with additional features.

  • Base ERC20 implementation with all standard methods
  • Optional cap on total supply
  • Mintable and burnable functionality
  • Pausable transfers for emergency situations
  • OpenZeppelin based for security and reliability

GraphQL API

AERE Network provides a powerful GraphQL API for querying blockchain data. This API allows for more flexible and efficient data retrieval compared to traditional REST APIs.

Try it Now

Explore the AERE Network GraphQL API using our interactive GraphiQL interface:

Open GraphiQL Explorer

Example Query

query { networkStats { blockCount transactionCount accountCount validatorCount averageBlockTime currentGasPrice } blocks(first: 5) { number hash timestamp transactionCount validator { address } } }

API Reference

Complete documentation for all available endpoints and query structures in the AERE Network API.

View API Reference

JavaScript SDK Integration

Learn how to use the AERE SDK to interact with the GraphQL API for blockchain data queries.

View Examples

Developer Support

Need help with development on AERE Network? Our community and support team are here to help.

Discord Community

Join our active developer community on Discord to get help, share ideas, and collaborate.

Join Discord

GitHub Repository

Check out our GitHub repositories for code, examples, and to report issues.

Visit GitHub

Developer Documentation

Comprehensive documentation for all aspects of AERE Network development.

Read Docs

Developer Grants Program

Learn about the AERE Network grants program for funding development on the platform.

Apply for Grants