Stralix Cloud API
Welcome to the official Stralix Cloud API documentation. Our API provides comprehensive access to blockchain node data and system status.
https://sc01.stralix.cloud
Authentication
All requests to the Stralix Cloud API must be authenticated using an API key. You must include the
X-API-KEY header in every request.
LTC, BTC) in your requests.
Lowercase tickers (e.g., ltc) will NOT work.
GET /v1/LTC/getinfo HTTP/1.1
Host: sc01.stralix.cloud
X-API-KEY: your_api_key_here
Python SDK
We highly recommend using our official Python SDK for the best experience. It handles authentication and request formatting for you.
Installation:
pip install stralixsdk
Usage:
from stralixsdk import StralixClient
# Initialize the client
client = StralixClient(api_key="YOUR_API_KEY", base_url="https://sc01.stralix.cloud")
# Get blockchain info
info = client.get_info("LTC")
print(info)
# Get block count
count = client.get_block_count("LTC")
print(f"Current block height: {count}")
Blockchain Interaction (v1)
Prefix: /v1/{TICKER}
Replace {TICKER} with the UPPERCASE node ticker
(e.g., LTC, BTC).
General Info
Summary of blockchain, network, and mining info.
State of the blockchain processing.
State of the P2P network.
Mining-related information.
Total network traffic.
Node uptime in seconds.
Block Data
| Method | Endpoint | Description |
|---|---|---|
| GET | /{TICKER}/getblockcount |
Height of the most-work fully-validated chain. |
| GET | /{TICKER}/getbestblockhash |
Hash of the best (tip) block. |
| GET | /{TICKER}/getblockhash/{height} |
Hash of block at given height. |
| GET | /{TICKER}/getblock/{hash_or_height} |
Get block data by hash or height. |
| GET | /{TICKER}/getblockheader/{hash} |
Get block header information. |
| GET | /{TICKER}/getchaintips |
Return information about all known tips. |
| GET | /{TICKER}/getdifficulty |
Current proof-of-work difficulty. |
Transactions & Mempool
| Method | Endpoint | Description |
|---|---|---|
| GET | /{TICKER}/getrawtransaction/{txid} |
Raw transaction data. |
| GET | /{TICKER}/getmempoolinfo |
Active state of the memory pool. |
| GET | /{TICKER}/getrawmempool |
All transaction IDs in the memory pool. |
| GET | /{TICKER}/gettxout/{txid}/{n} |
Details about an unspent transaction output. |
Mining
| Method | Endpoint | Description |
|---|---|---|
| GET | /{TICKER}/getnetworkhashps |
Estimated network hashes per second. |
| GET | /{TICKER}/getblocktemplate |
Data needed to construct a block. |
| POST | /{TICKER}/submitblock |
Submit a new block to the network. |
Network & Wallet
| Method | Endpoint | Description |
|---|---|---|
| GET | /{TICKER}/getpeerinfo |
Data about each connected network node. |
| GET | /{TICKER}/getconnectioncount |
Number of connections to other nodes. |
| GET | /{TICKER}/getaddednodeinfo |
Info about manually added nodes. |
| GET | /{TICKER}/ping |
Request that a ping be sent to all other nodes. |
| POST | /{TICKER}/validateaddress |
Return information about the given address. |
| GET | /{TICKER}/estimatefee/{blocks} |
Estimate fee for transaction confirmation. |
| GET | /{TICKER}/estimatesmartfee/{blocks} |
Estimate fee (more smart). |
| POST | /{TICKER}/signmessagewithprivkey |
Sign a message with a private key. |
| POST | /{TICKER}/verifymessage |
Verify a signed message. |
Advanced
| Method | Endpoint | Description |
|---|---|---|
| POST | /{TICKER}/rpc/{method} |
Execute any arbitrary JSON-RPC method. |
| POST | /{TICKER}/stop |
Stop the blockchain node server. |
System Info (v2)
Prefix: /v2
List all configured nodes and their status.
Check if system is in maintenance mode.