Share your feedback on Twitter and claim 1M Free GetBlock Requests

banner image

Huobi (HECO) API - Building Your Web3 Dapps



May 15, 2024

6 min read

article cover

What is Huobi API?

Huobi ECO Chain (HECO) is a Layer 1 network designed by HTX exchange (formerly Huobi) specifically for efficient, high-frequency trading, and tailored to power innovative decentralized finance applications.

APIs provided by a blockchain node or a blockchain service provider offer a user-friendly and developer-friendly interface for interacting with the Heco network.

Their primary goal is to enable various actions within the decentralized network instead of directly interacting with the blockchain using low-level protocols or configuring a local node to access this functionality.

By exposing specific endpoints and providing standardized responses, APIs simplify the querying blockchain data, such as wallet balances, and updating this data via transactions. This enables developers to integrate blockchain functionality into their DeFi apps more seamlessly.

Huobi APIs allow using standard HTTP requests to interact with remote Heco nodes, offer various parameters and options that developers can customize to tailor the requests according to their specific requirements and provide mechanisms for handling errors and receiving feedback from nodes. Endpoints respond to requests with the requested data in a standardized format such as JSON.

Developers integrate these blockchain node APIs into their dApps to enable end-users to interact with Heco chain data and functionality via an accessible interface at reduced transaction costs and latency.

Why use a Huobi (HECO) API?

Instead of having to understand the intricacies of blockchain protocols and consensus mechanisms, developers can use APIs to interact with the blockchain network and implement blockchain features seamlessly. This reduces the barriers to entry and simplifies the development process.

Utilizing APIs provided by infrastructure services like GetBlock brings forth several supplementary benefits:

  1. Consistency: Node providers boast robust and durable infrastructure, backed by a team proficient in its efficient management. This guarantees a stable and dependable service, critical for uninterrupted operations and enhanced user satisfaction;
  2. Support: Having access to expert assistance ensures easier onboarding and swift resolution of any technical issues that may arise, ultimately mitigating downtime and fostering smoother operations within applications that rely on a provider;
  3. Flexibility and Control: Users can choose from a range of different networks and pricing plans that best align with their specific needs, usage requirements, and budget constraints. This helps Web3 projects optimize their spending and avoid overpaying for unused or unnecessary services.

In conclusion, utilizing node provider APIs offers a range of benefits that simplify and enhance the process of blockchain development. By leveraging these services, users can focus more on building innovative applications and less on managing complex infrastructure.

Key Features of Huobi API

APIs provided by node services cater to a wide spectrum of needs and can be classified into four primary domains, each detailed below:

Key Features Description Example Use Cases
Real-time blockchain data Enables applications to stay synchronized with the latest blockchain state; retrieve information directly from the ledger, including transaction and account details, block and network statistics Blockchain explorers, Real-time analytics, Trading platforms
Wallet management Includes functionalities like generating new addresses, checking balances, sending and receiving funds, and handling transaction history Payment gateways, Exchange platforms
Transaction processing Facilitates transaction creation, signing, fee estimation, and broadcasting for network confirmation DeFi platforms, Wallet applications
Address validation Helps verify address validity to ensure compliance with blockchain network standards before transaction processing Web3 wallets, Exchanges, Payment platforms

All these features combined empower developers to architect sophisticated DeFi applications on the Heco blockchain, unlocking unique solutions that the network architecture provides.

How to Get Started with Huobi (HECO) API

The guide below will walk new clients through the account setup, acquiring access tokens, and integrating API endpoints into their applications for optimal interaction with the Heco network.

1. Setting Up an Account

To begin, head over to and create a user account. Using a MetaMask wallet for authentication simplifies the process, although traditional email registration is also available.

Upon successful registration, users are granted a quota of 40,000 free daily requests.

2. Generate Endpoints

To start using GetBlock APIs, users are required to generate an endpoint address combined with an access token, typically formatted as follows:

This URL acts as the target location where an application can send requests to interact with GetBlock nodes.

To obtain the URL, choose Huobi ECO chain from available options and specify how you want to communicate with the API, selecting between JSON-RPC, GraphQL, or WebSockets.


3. Integrate the API

Let’s confirm that the URL provided by GetBlock is capable of processing requests. This snippet demonstrate using JSON-RPC method “eth_blockNumber”:

curl --location --request POST '' \
--header 'Content-Type: application/json' \
--data-raw '{
    "jsonrpc": "2.0",
    "method": "eth_blockNumber",
    "params": [],
    "id": ""

Upon successful execution, the response should resemble:

  "jsonrpc": "2.0",
  "id": "",
  "result": "0x21351af"

With that, we obtained the latest block of the Heco blockchain and confirmed that the API provided by GetBlock is operational.

Available Huobi API Methods

For quick access, let’s cover some other methods providing essential functionalities for developers and users interacting with the Huobi blockchain:

  • eth_hashrate: Returns the speed at which miners are performing computations to secure the network;
  • eth_pendingTransactions: Retrieves a list of transactions broadcast to the network but not yet included;
  • eth_sign: Proves ownership of a HECO address before sending a transactions;
  • eth_getTransactionReceipt: Prints the detailed breakdown of an executed transaction;
  • eth_getBalance: Shows the amount of tokens held in the account.

Please refer to the GetBlock API documentation for further information and code snippets.

Pricing and Plans for Huobi (HECO) API

GetBlock’s services include options such as free plans, tiered plans with varying levels of features and usage limits, or enterprise plans with custom pricing and tailored support services.

Shared node services offers flexibility and affordability, that appeals to users seeking to launch projects with limited resources.

  1. Packaged request solutions allow to obtain up to 100m requests and increase rates to 200 RPS;
  2. Unlimited monthly access starting from $499/month offers flexibility to access the needed resources without worrying about exceeding limits or incurring extra charges.

Flexible pricing

Shared nodes



$ 29 / month

Get started

5 000 000

Requests per month


Requests per second


Shared nodes


Best choice

$ 499 / month

Get started


Requests per day


Requests per second

Unlimited Requests

Dedicated HECO API

Dedicated node service provides users with resources allocated solely to their use, unlike shared infrastructure where resources are used by multiple clients.


Private server with custom settings



Rate Limit




Starting at



/ month

Start building arrow up

This eliminates limitations on rates and requests, provides archive node access, and customizable configurations. It empowers clients to build and operate performant and scalable applications on the Huobi ECO blockchain network

Enterprise Huobi solutions

The enterprise-grade offering includes customized services designed to address the demands and challenges faced by businesses operating at scale.

One key feature of the Enterprise solutions is the ability to request the deployment of nodes for blockchain protocols that may not be readily available through standard offerings.


Additionally, clients of the Enterprise Huobi API benefit from comprehensive support, and enhanced performance optimizations, analytics, and security tools.


  • What is the role of the Huobi (HECO) API?

  • How does the Huobi API support dApp development?

  • How do I get started with the Huobi (HECO) API?

  • What are the usage limits for the Huobi API?



May 15, 2024

6 min read