Prerequisites
Before you can start using TokenOps SDK, you'll need to set up your development environment and obtain the necessary credentials and access.
Development Environment
Node.js and Package Manager
Ensure you have Node.js 18.0.0 or higher installed:
# Check your Node.js version
node --version
# Should output v18.0.0 or higher
If you need to install or upgrade Node.js:
- Download from nodejs.org
- Use a version manager like nvm (recommended)
Blockchain Infrastructure
RPC Provider
You'll need access to blockchain RPC endpoints. Choose from:
Free Options
- Alchemy: alchemy.com - Free tier available
- Infura: infura.io - Free tier available
- QuickNode: quicknode.com - Free tier available
Self-hosted Options
- Geth: Full Ethereum node
- Erigon: Efficient Ethereum node
- Local Development: Hardhat, Anvil, or Ganache
Example RPC Setup
// Using Alchemy
const RPC_URL = 'https://eth-mainnet.g.alchemy.com/v2/YOUR_API_KEY';
// Using Infura
const RPC_URL = 'https://mainnet.infura.io/v3/YOUR_PROJECT_ID';
// Local development
const RPC_URL = 'http://localhost:8545';
Wallet Setup
Development Wallet
For development, you'll need a wallet with some test funds:
MetaMask (Recommended for Development)
- Install MetaMask browser extension
- Create a new wallet or import existing
- Switch to testnets (Sepolia, Goerli) for development
- Get test ETH from faucets
Programmatic Wallets
import { privateKeyToAccount } from 'viem/accounts';
// Development only - never use in production
const account = privateKeyToAccount('0x...');
Production Wallet
For production applications:
- Hardware Wallets: Ledger, Trezor
- Multi-sig Wallets: Gnosis Safe, other multi-sig solutions
- Custodial Solutions: For enterprise applications
API Access
TokenOps API Key
To use the analytics and monitoring features:
- Visit TokenOps Platform
- Create an account
- Generate an API key
- Store securely in environment variables
# .env file
TOKENOPS_API_KEY=your_api_key_here
Environment Variables
Set up your environment variables:
.env
# Required
TOKENOPS_API_KEY=your_tokenops_api_key
# Blockchain RPC
ETHEREUM_RPC_URL=your_ethereum_rpc_url
POLYGON_RPC_URL=your_polygon_rpc_url
# Development wallet (testnet only)
PRIVATE_KEY=your_development_private_key
## Network Configuration
### Supported Networks
TokenOps SDK supports all EVM-compatible networks:
| Network | Chain ID | Status |
|---------|----------|--------|
| Ethereum Mainnet | 1 | ✅ Fully Supported |
| Polygon | 137 | ✅ Fully Supported |
| Arbitrum One | 42161 | ✅ Fully Supported |
| Optimism | 10 | ✅ Fully Supported |
| BSC | 56 | ✅ Fully Supported |
| Sepolia (Testnet) | 11155111 | ✅ Fully Supported |
## Testing Environment
### Local Blockchain
For development and testing:
#### Hardhat
```bash
npm install --save-dev hardhat
npx hardhat node
Anvil (from Foundry)
# Install foundry
curl -L https://foundry.paradigm.xyz | bash
foundryup
# Run local node
anvil
Test Funds
Get test tokens for development:
Ethereum Testnets
Other Networks
Knowledge Prerequisites
Required Knowledge
- JavaScript/TypeScript
- Blockchain Basics: Accounts, transactions, gas fees
- Web3 Fundamentals: Wallets, signing, contract interactions
Recommended Knowledge
- Smart Contracts: Understanding of Solidity and EVM
- DeFi Concepts: Tokens, vesting, staking, airdrops
- React/Node.js
Security Considerations
Development Best Practices
- Never commit private keys to version control
- Use environment variables for sensitive data
- Separate development and production environments
- Use testnets for development and testing
Production Security
- Hardware wallets for production operations
- Multi-signature wallets for team operations
- Audit smart contracts before deployment
- Monitor transactions and set up alerts
Verification Checklist
Before proceeding, ensure you have:
- Node.js 18+ installed
- Package manager (npm/yarn/pnpm) available
- RPC provider access configured
- Wallet set up with test funds
- TokenOps API key obtained
- Environment variables configured
Next Steps
Once you've completed all prerequisites:
- Quick Start - Build your first application
- Architecture Overview - Understand the SDK structure
- Provider Setup - Configure your blockchain provider
Getting Help
If you need assistance with prerequisites:
- Documentation Issues: GitHub Issues
- Community Support: Discord
- Technical Questions: Stack Overflow
Prerequisites complete? Continue to Quick Start to build your first TokenOps application!