Welcome to the Roqqu API documentation for building scalable blockchain applications by leveraging on the Roqqu core infrastructure. With the APIs, you'll be able to reduce your development and infrastructure costs, as well as significantly reduce your go-to-market time.
Roqqu allows a merchant to interact with blockchains and helps merchants create wallet systems that generates, sends and receives blockchain payments. Every time a transaction is processed to a wallet address owned by a merchant, Roqqu notifies the merchant via webhook calls with the details of the transaction, such as the recipient address, ref ID, transaction hash, and the value of the transaction.
Below is a list of supported protocols on the Roqqu API console.
Blockchain Protocol | Network |
---|---|
Bitcoin | Mainnet |
Ethereum (ERC20) | Mainnet |
BNB Smart Chain (BEP20) | Mainnet |
Tron (TRC20) | Mainnet |
Solana (SOL) | Mainnet |
XRP | Mainnet |
Litecoin (LTC) | Mainnet |
https://roqqu-api.redocly.app/_mock/apis/
https://service.roqqu.com/v1/
API keys are required as an authentication method with Roqqu APIs. By using your secret API key you authenticate access to the specific API. Without authentication, access to the API is denied. Secret Keys should be kept confidential and only stored on your own servers. Your account’s secret API key can perform any API request to Roqqu without restriction. You can find your API keys under the API Keys and Webhooks section on the settings page of the RAS console. Choose between the Test mode for testing and Live Mode for production. Copy the generated key and store it securely. Once your testing is successful and your integration is working as expected, replace the Test API Key with the Live API Key. Update your API requests to point to the live endpoints. Ensure all data and configurations are correct before going live with real transactions.
optional - from when a transaction was inserted this format (YYYY-MM-DD) or (YYYY-MM-DD HH:MM:SS)
https://roqqu-api.redocly.app/_mock/apis/history
https://service.roqqu.com/v1/history
import fetch from 'node-fetch';
async function run() {
const formData = {
token: 'eth',
email: 'test@business.com',
network: 'trc20',
direction: 'credit',
timestamp: '2023-08-29',
status: '1'
};
const resp = await fetch(
`https://roqqu-api.redocly.app/_mock/apis/history`,
{
method: 'POST',
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
Authorization: 'Bearer <YOUR_TOKEN_HERE>'
},
body: new URLSearchParams(formData).toString()
}
);
const data = await resp.text();
console.log(data);
}
run();
{ "status": "success", "message": "history retrieved successfully", "data": { "history": [ … ] } }
The endpoints listed under Transaction allows users to initiate and manage cryptocurrency transactions. This includes sending, receiving, and tracking the status of transactions, ensuring users have a smooth experience when moving their assets. This also covers the requery and refund endpoints for failed transactions.