JSON-RPC-Endpoint
JSON-RPC endpoints refers to the network location where a program could transfer its RPC requests to access server data. Once you connect a decentralized application to an RPC endpoint, you can access the functionalities of different operations, which could enable real-time usage of blockchain data. CTC Chain provides several RPC endpoints for connecting into both its Mainnet and Testnet. In this section, we list the JSON-RPC endpoints that can be used for connecting to CTC Chain.
One-click adding CTC network
Visit the ChainList and connect to your wallet. It will add alive RPC endpoints.
RPC Endpoints for CTC Chain
eth_getLogs is disabled on below Mainnet endpoints. Please use 3(rd) party endpoints from here. If you need to pull logs frequently, we recommend using WebSockets to push new logs to you when they are available.
CTC Mainnet (ChainID 12301)
CTC Chain Testnet (ChainID 12302)
Starting HTTP JSON-RPC
You can start the HTTP JSON-RPC with the –http flag
## mainnet
https://rpc.ctcchain.com
## testnet
https://test-rpc.ctcchain.com
JSON-RPC API List
CTC Chain is EVM-compatible and strives to be as compatible as possible with the Go-Ethereum API. However, CTC Chain also has unique features, such as faster finality and the storage of blob data on the execution layer, which require their own specialized APIs.
Geth(Go-Ethereum) API
CTC Chain is nearly fully compatible with the Geth APIs. Any exceptions or incompatibilities are explicitly listed. If you're looking for detailed usage of a specific API, you will most likely find the answer in the following link:
Geth JSON-RPC API documentation.
Finality
Ethereum's PoS consensus protocol, known as "Gasper," is built on LMD-GHOST (a fork choice rule) and Casper FFG (a finality gadget). Similarly, CTC Chain's consensus protocol, called "Parlia," is constructed on top of a difficulty-based fork choice mechanism with FFG, as described in BEP-126. To further enhance CTC Chain's throughput, validators are allowed to produce multiple consecutive blocks, as explained in BEP-341. These differences result in CTC Chain having a unique finality process compared to Ethereum.
Blob
Bsc implements EIP-4844, which supports Shard Blob Transactions, as described in BEP-336. For more details, please refer to the the following doc: BSC Blob API.
Other CTC Chain API
CTC Chain implements some other APIs