ACADEMY
v2
MODULE 16
LESSON 3
SDKs & APIs
Qubic SDKs provide client libraries (C++, JS) for easier dev integration.
APIs expose RPC-like endpoints for contract calls and state queries.
Example:
qubic.callFunction(contractID, “getVotes”)// Import helper
import { QubicHelper } from 'qubic-ts-library/dist/qubicHelper'
import { QubicConnector } from 'qubic-ts-library/dist/qubicConnector'
// Create helper instance
const helper = new QubicHelper();
// Create an ID Package from seed phrase
const id = await helper.createIdPackage("your-seed-phrase");
// Connect to a node
const connector = new QubicConnector("https://rpc.qubic.org");
// Get balance
const balance = await connector.getBalance(id.publicId);An example SDK code snippet calling a Qubic Function
PRO TIP
Use SDK abstractions when building front-ends; saves time vs. raw RPC.
HANDS-ON TASK
Install the JS SDK and call a simple Function from a testnet contract.
HANDS-ON TASK
Install the JS SDK and call a simple Function from a testnet contract.
PRO TIP
Use SDK abstractions when building front-ends; saves time vs. raw RPC.
Qubic is a decentralized, open-source network for experimental technology. Nothing on this site should be construed as investment, legal, or financial advice. Qubic does not offer securities, and participation in the network may involve risks. Users are responsible for complying with local regulations. Please consult legal and financial professionals before engaging with the platform.
Qubic is a decentralized, open-source network for experimental technology. Nothing on this site should be construed as investment, legal, or financial advice. Qubic does not offer securities, and participation in the network may involve risks. Users are responsible for complying with local regulations. Please consult legal and financial professionals before engaging with the platform.
Qubic is a decentralized, open-source network for experimental technology. Nothing on this site should be construed as investment, legal, or financial advice. Qubic does not offer securities, and participation in the network may involve risks. Users are responsible for complying with local regulations. Please consult legal and financial professionals before engaging with the platform.