This documentation describes best practices to integrate/interact with Qubic for partners.
The Qubic RPC is your gateway to the Qubic Network. For testing purposes, you can use https://testapi.qubic.org as baseUrl.
Learn how to operate your own RPC Server for Qubic: How to build your own Qubic RPC Server
Base Url | Use Case |
---|---|
testapi.qubic.org | Test RPC/API with the latest features. Use this in your development environment or to try out the latest features. |
rpc-staging.qubic.org | Public RPC/API for staging (production testing) purposes. Normally only for internal Testing. Ask us if you want to test the latest features that will be in production soon. |
rpc.qubic.org | Public RPC/API for general purposes. Use this in your productive applications. |
To partner up with Qubic from a perspective of an exchange, there are two main approaches how you can integrate Qubic into your business logic:
- TX Based
- Balance Based
This is the classical way you may already know from other blockchains. You can do block scans for deposits and send transactions via RPC call to the network.
For the transaction based approach, Qubic offers a RPC Server. Please ask us for detailed information and access.
The Qubic RPC Server is built and operated with the following software:
qubic-http
https://github.com/qubic/qubic-httpgo-archiver
https://github.com/qubic/go-archivergo-node-fetcher
https://github.com/qubic/go-node-fetchergo-node-connector
https://github.com/qubic/go-node-connectorts-library
https://github.com/qubic/ts-library (https://www.npmjs.com/package/qubic-ts-library)
In contrary to the TX Based Workflow, with the balance workflow you can implement Qubics native way of integration.
In Qubic the Balance of an Address can be altered without a Transaction being issued. This can be invoked by any Smart Contract.
Therefore you can also use the Balance Based approach to interact with Qubic.
We are building the application qubic-lrv
for this. Which is currently in testing state.
Please read here more when testing state is passed.
References: