Stralix Cloud API

Welcome to the official Stralix Cloud API documentation. Our API provides comprehensive access to blockchain node data and system status.

Base URL: 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.

Important: You must ALWAYS use uppercase tickers (e.g., 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.

Visit sdk.stralix.cloud to get started.

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

GET /{TICKER}/getinfo

Summary of blockchain, network, and mining info.

GET /{TICKER}/getblockchaininfo

State of the blockchain processing.

GET /{TICKER}/getnetworkinfo

State of the P2P network.

GET /{TICKER}/getmininginfo

Mining-related information.

GET /{TICKER}/getnettotals

Total network traffic.

GET /{TICKER}/uptime

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

GET /v2/nodes

List all configured nodes and their status.

GET /v2/maintenance

Check if system is in maintenance mode.