> ## Documentation Index
> Fetch the complete documentation index at: https://docs.validationcloud.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Overview

export const logo_0 = "/nodeapi/assets/chains/conflux.svg"

export const chain_0 = "Conflux"

<span className="chain-logo-conflux" />

<img className="page-cover" src="https://mintcdn.com/validation-cloud/QajBabafGojozKj4/nodeapi/assets/conflux-wallpaper.png?fit=max&auto=format&n=QajBabafGojozKj4&q=85&s=1b313869becf2e32ec3af534b826b534" alt="" noZoom width="1990" height="480" data-path="nodeapi/assets/conflux-wallpaper.png" />

<div className="not-prose my-8 flex flex-col gap-4 rounded-2xl border border-gray-950/10 p-5 sm:flex-row sm:items-center dark:border-white/10">
  <img src={logo_0} alt="" className="h-10 w-10 shrink-0" noZoom />

  <div className="flex-1">
    <p className="m-0 font-semibold text-gray-900 dark:text-gray-100">Start building on {chain_0} for free</p>
    <p className="m-0 mt-1 text-sm text-gray-600 dark:text-gray-400">Create an endpoint in under a minute. The Free plan includes 50 million compute units a month, and no credit card is required.</p>
  </div>

  <a href="https://app.validationcloud.io/auth/signup?returnTo=%2Fnode%2Fcreate-endpoint" className="shrink-0 rounded-full bg-primary px-5 py-2 text-center text-sm font-semibold text-white no-underline hover:opacity-90">Try free</a>
</div>

Conflux is a high-performance Layer 1 public blockchain that utilizes a hybrid consensus mechanism combining Proof of Work (PoW) and Proof of Stake (PoS), enabling it to process up to 3,000 transactions per second with confirmation times of less than 1 minute.

It features a dual "space" design. You can think of each "space" being a separate blockchain.

The "Core Space" refers to the original Conflux network, while the "eSpace" is a fully Ethereum Virtual Machine (EVM) compatible chain on top of the Core Space chain.

The Core Space and eSpace share the same ledger for underlying data storage. A single block can contain transactions from both spaces, which are distinguished by their transaction encoding.

However, the Core Space and eSpace function as two logically independent chains, each with their own transactions, account statuses, and contracts.

## Network Support

| Network | Archive | HTTPS | WSS |
| - | - | - | - |
| eSpace Mainnet | ✅ | ✅ | ✅ |
| eSpace Testnet | ✅ | ✅ | ✅ |

> WebSocket clients **MUST** respond to server `ping` frames, otherwise the connection will be closed and re-established every minute.

## Getting Started

Send a request to check that your endpoint works. Replace `<YOUR_API_KEY_HERE>` with the key from your endpoint in the [Validation Cloud app](https://app.validationcloud.io/node).

<CodeGroup>
  ```bash title="mainnet" theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
  curl https://mainnet.conflux.validationcloud.io/v1/<YOUR_API_KEY_HERE> \
      -X POST \
      -H "Content-Type: application/json" \
      -d '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":0}'
  ```

  ```bash title="testnet" theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
  curl https://testnet.conflux.validationcloud.io/v1/<YOUR_API_KEY_HERE> \
      -X POST \
      -H "Content-Type: application/json" \
      -d '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":0}'
  ```
</CodeGroup>

Connect over WebSocket:

<CodeGroup>
  ```bash title="mainnet" theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
  wscat -c wss://mainnet.conflux.validationcloud.io/v1/wss/<YOUR_API_KEY_HERE>
  ```

  ```bash title="testnet" theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
  wscat -c wss://testnet.conflux.validationcloud.io/v1/wss/<YOUR_API_KEY_HERE>
  ```
</CodeGroup>

## Compute Units

| Method | Compute units |
| - | - |
| [debug\_traceBlockByHash](/nodeapi/conflux/debug-api/debug_traceblockbyhash) | 40 |
| [debug\_traceBlockByNumber](/nodeapi/conflux/debug-api/debug_traceblockbynumber) | 40 |
| [debug\_traceTransaction](/nodeapi/conflux/debug-api/debug_tracetransaction) | 40 |
| [eth\_accounts](/nodeapi/conflux/execution-api/eth_accounts) | 10 |
| [eth\_blockNumber](/nodeapi/conflux/execution-api/eth_blocknumber) | 10 |
| [eth\_call](/nodeapi/conflux/execution-api/eth_call) | 30 |
| [eth\_chainId](/nodeapi/conflux/execution-api/eth_chainid) | 5 |
| [eth\_estimateGas](/nodeapi/conflux/execution-api/eth_estimategas) | 100 |
| [eth\_gasPrice](/nodeapi/conflux/execution-api/eth_gasprice) | 20 |
| [eth\_getBalance](/nodeapi/conflux/execution-api/eth_getbalance) | 20 |
| [eth\_getBlockByHash](/nodeapi/conflux/execution-api/eth_getblockbyhash) | 30 |
| [eth\_getBlockByNumber](/nodeapi/conflux/execution-api/eth_getblockbynumber) | 20 |
| [eth\_getBlockTransactionCountByHash](/nodeapi/conflux/execution-api/eth_getblocktransactioncountbyhash) | 20 |
| [eth\_getBlockTransactionCountByNumber](/nodeapi/conflux/execution-api/eth_getblocktransactioncountbynumber) | 20 |
| [eth\_getCode](/nodeapi/conflux/execution-api/eth_getcode) | 20 |
| [eth\_getFilterChanges](/nodeapi/conflux/execution-api/eth_getfilterchanges) | 20 |
| [eth\_getFilterLogs](/nodeapi/conflux/execution-api/eth_getfilterlogs) | 70 |
| [eth\_getLogs](/nodeapi/conflux/execution-api/eth_getlogs) | 80 |
| [eth\_getStorageAt](/nodeapi/conflux/execution-api/eth_getstorageat) | 20 |
| [eth\_getTransactionByBlockHashAndIndex](/nodeapi/conflux/execution-api/eth_gettransactionbyblockhashandindex) | 20 |
| [eth\_getTransactionByBlockNumberAndIndex](/nodeapi/conflux/execution-api/eth_gettransactionbyblocknumberandindex) | 20 |
| [eth\_getTransactionByHash](/nodeapi/conflux/execution-api/eth_gettransactionbyhash) | 20 |
| [eth\_getTransactionCount](/nodeapi/conflux/execution-api/eth_gettransactioncount) | 30 |
| [eth\_getTransactionReceipt](/nodeapi/conflux/execution-api/eth_gettransactionreceipt) | 20 |
| [eth\_getUncleByBlockHashAndIndex](/nodeapi/conflux/execution-api/eth_getunclebyblockhashandindex) | 20 |
| [eth\_getUncleByBlockNumberAndIndex](/nodeapi/conflux/execution-api/eth_getunclebyblocknumberandindex) | 20 |
| [eth\_getUncleCountByBlockHash](/nodeapi/conflux/execution-api/eth_getunclecountbyblockhash) | 20 |
| [eth\_getUncleCountByBlockNumber](/nodeapi/conflux/execution-api/eth_getunclecountbyblocknumber) | 20 |
| [eth\_newBlockFilter](/nodeapi/conflux/execution-api/eth_newblockfilter) | 20 |
| [eth\_newFilter](/nodeapi/conflux/execution-api/eth_newfilter) | 20 |
| [eth\_newPendingTransactionFilter](/nodeapi/conflux/execution-api/eth_newpendingtransactionfilter) | 20 |
| [eth\_sendRawTransaction](/nodeapi/conflux/execution-api/eth_sendrawtransaction) | 270 |
| [eth\_syncing](/nodeapi/conflux/execution-api/eth_syncing) | 5 |
| [eth\_uninstallFilter](/nodeapi/conflux/execution-api/eth_uninstallfilter) | 10 |
| net\_version | 5 |
| [web3\_clientVersion](/nodeapi/conflux/execution-api/web3_clientversion) | 20 |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.