Introduction
Welcome to the developer documentation for Web3 DeFi APIs. These interfaces provide a robust set of tools tailored for decentralized finance (DeFi) applications, enabling developers to create and integrate powerful financial services with ease. Our Wallet-as-a-Service (WaaS) API suite is designed to lower the barrier to entry for Web3 project development, offering seamless access to blockchain data and functionalities.
Whether you are building a new DeFi protocol, integrating wallet features, or creating cross-chain applications, these APIs offer the reliability and flexibility needed to accelerate your development process. The focus is on providing a secure, scalable, and developer-friendly experience.
Supported Networks
Blockchain networks are identified using a unique chainId system. While most align with the standard EIP-155 chain identifiers, some are custom-defined for easier integration within the Web3 DeFi ecosystem. The realChainId refers to the official EIP-155 specification where applicable.
Below is a list of currently supported and upcoming networks:
Currently Supported Networks
Bitcoin Mainnet
- chainId: 0
Ethereum Mainnet
- chainId: 1
- realChainId: 1
OP Mainnet
- chainId: 10
- realChainId: 10
BNB Smart Chain Mainnet
- chainId: 56
OKT Chain
- chainId: 66
- realChainId: 66
Gnosis
- chainId: 100
- realChainId: 100
Polygon Mainnet
- chainId: 137
- realChainId: 137
Manta Pacific Mainnet
- chainId: 169
- realChainId: 169
opBNB Mainnet
- chainId: 204
- realChainId: 204
Fantom Opera
- chainId: 250
- realChainId: 250
zkSync Era Mainnet
- chainId: 324
- realChainId: 324
Polygon zkEVM
- chainId: 1101
- realChainId: 1101
Core Blockchain Mainnet
- chainId: 1116
- realChainId: 1116
Mantle
- chainId: 5000
- realChainId: 5000
Base
- chainId: 8453
- realChainId: 8453
Arbitrum One
- chainId: 42161
- realChainId: 42161
Avalanche C-Chain
- chainId: 43114
- realChainId: 43114
Networks Coming Soon
- Tron (chainId: 195)
- Solana (chainId: 501)
- Sui (chainId: 784)
- Stacks (chainId: 5757)
- Scroll (chainId: 534352, realChainId: 534352)
This extensive multi-chain support ensures your dApp can reach users across the entire Web3 ecosystem, from Ethereum to emerging Layer 2 solutions.
Key Features of the DeFi API
The API suite is packed with features essential for modern DeFi development.
Multi-Chain Wallet Management
Create, manage, and secure user wallets across all supported blockchains through a single, unified API. This removes the complexity of handling private keys and seed phrases for your users.
Real-Time Blockchain Data
Access reliable, up-to-date information on transactions, token balances, gas prices, and NFT holdings. This data is crucial for building informative dashboards and making smart contract interactions efficient.
Smart Contract Interaction
Simplify the process of reading from and writing to smart contracts. The APIs handle the nuances of different virtual machines, allowing you to focus on your application's logic.
Transaction Processing
Build reliable transaction flows for token swaps, transfers, and staking. The APIs assist with nonce management, gas estimation, and broadcasting signed transactions to the network.
Common Use Cases for Developers
These APIs are versatile and can be applied to numerous Web3 development scenarios.
DeFi Platforms and DEXs
Build decentralized exchanges, lending protocols, or yield aggregators. The APIs provide the necessary data and transaction capabilities to power sophisticated financial products.
NFT Marketplaces and Projects
Create platforms for minting, buying, and selling NFTs. Easily verify ownership, display collections, and process transactions across multiple chains.
Cross-Chain Bridges and Applications
Develop applications that operate seamlessly across different blockchains. The unified API structure simplifies the challenges of cross-chain interoperability.
Custodial and Non-Custodial Wallets
Implement secure wallet solutions for your users, whether you choose a custodial model for ease of use or a non-custodial model for maximum security.
๐ Explore the complete API documentation
Getting Started with Integration
Integrating these APIs into your project is a straightforward process designed for developers.
- API Key Authentication: Begin by registering for a developer account and obtaining your unique API keys. These keys are used to authenticate all your requests to the API endpoints.
- Endpoint Exploration: Familiarize yourself with the available endpoints for balance checks, transaction history, and smart contract interactions. The documentation provides detailed examples for each call.
- SDK Utilization: For even faster development, leverage provided Software Development Kits (SDKs) for popular programming languages. These kits handle much of the underlying HTTP request logic.
- Testing on Testnets: Before going live, always test your integration on blockchain testnets. This allows you to debug your code without spending real funds on gas fees.
Frequently Asked Questions
What is a Wallet-as-a-Service (WaaS) API?
A WaaS API provides developers with the tools to integrate blockchain wallet functionalities directly into their applications without building the underlying infrastructure from scratch. It handles key management, transaction signing, and multi-chain support through a simple set of calls.
How does the API handle security and private keys?
Security paradigms can vary. The API can facilitate non-custodial setups where keys are managed client-side, or provide highly secure custodial options where keys are managed by the service using enterprise-grade security practices, depending on the endpoints used.
Can I use these APIs for mainnet and testnet environments?
Yes, the APIs support endpoints for both mainnet and testnet environments for all available blockchains. This is essential for proper development, testing, and deployment cycles.
What is the difference between chainId and realChainId?
The chainId is a unique identifier used within this specific API for consistent referencing. The realChainId corresponds to the official chain identifier as defined by the EIP-155 standard. They are often the same, but the API's internal chainId ensures uniformity.
How do I get help if I encounter an issue during integration?
Comprehensive documentation, code examples, and community forums are available to assist developers. For specific issues, you can reach out to dedicated developer support channels.
Are there rate limits on API requests?
Yes, standard API rate limiting is in place to ensure fair usage and system stability for all developers. The specific limits and policies are detailed in the service's terms of use.