Integrating with the Quantum Coin blockchain
The steps in this documentation is for use-cases like Exchanges, Block Explorers. For example, Exchanges that want to integrate with the Quantum Coin blockchain would need to post transactions, find account balance, scan for new transactions etc. You can integrate in multiple ways with the QuantumCoin blockchain.
You might also want to read about: Solidity Documentation
Important points to remember:
- The wallet account keys are quantum resistant. These keys and the signed transactions are larger because of this reason.
- Gas fee is fixed at 1000 coins for 21000 units of gas, which the amount of gas it takes for sending coins to another account.
Method 1
-
It is recommended that you run a Full Node, following the steps listed in the below document, to ensure subsequent steps using the Relay proceed smoothly.
ConnectingFollow steps in: Connecting to mainnet -
The relay is a REST API service layer that runs in front of the blockchain node and exposes a limited set of important APIs that clients can then call. The first step is to read the documentation of the relay.
-
In the folder where the node is located, as shown in the first step, there will be two relay config files, one for Windows and one for Linux. Edit the appropriate file to your requirements, according to the documentation shared in the previous step. You may also opt to run with the default configuration, which is useful if you are running both the Node and the relay in the same machine.
-
Start the relay by running the following command while you are in the same directory as the blockchain node. Please wait for the relay to process all blocks till the latest block.
-
Review the SDK documentation and the SDK examples. You can configure the SDK to connect to the relay started in the previous step using the following code; if you edited the default config to change ports, please change the ports accordingly. The SDK client can also call into the relay over the network to a different server or machine, in which case you would need to provide the appropriate DNS or IP addresses and open appropriate firewall ports.
Initialization CodeThe first and second parameters to the qcsdk.Config should map to the ports used in the relay config in the step for starting the relay.var clientConfigVal = new qcsdk.Config("http://127.0.0.1:9090", "http://127.0.0.1:9091", 123123, "", "");
Method 2
-
You can use familiar JSON RPC APIs similar to Ethereum: JSON RPC API Documentation. Note that like mentioned earlier, the wallet account keys use post quantum cryptography, hence the signatures are larger and key types are different compared to Ethereum.
Vision
The Vision of Quantum Coin.
Quantum Resistance
Quantum Resistance in the Quantum Coin blockchain.
Smart Contracts
Smart Contract support in the Quantum Coin blockchain.
Consensus
Proof of Stake consensus.
Data Availability
Data Availability, long term and short term.
Blockchain Allocation
Bitcoin + Ethereum + Dogecoin + DogeP multi-fork.
Dynamic TPS
Dynamic Transactions Per Second model.
Github
Source code, documentation are maintained in Github.
QCIPs
Quantum Coin Improvement Proposals