SDK Libraries

Quantropy provides official SDKs for Python, Rust, and TypeScript/JavaScript so you can request verifiable quantum entropy without building HTTP/gRPC calls by hand.

Where to get them

  • Python — Install via pip (e.g. pip install quantropy or the package name from the official docsarrow-up-right).

  • Rust — Add the quantropy crate to your Cargo.toml; see the official docsarrow-up-right for the crate source.

  • TypeScript / JavaScript — Install via npm or yarn (e.g. npm install quantropy or @quantropy/sdk).

Check the official docsarrow-up-right for the exact package names.

Minimal examples

Python

from quantropy import QuantropyClient

client = QuantropyClient(api_key="YOUR_API_KEY")
result = client.get_entropy(size=32)

print(result.job_id)      # Quantum Job ID
print(result.entropy)     # bytes or base64
print(result.solana_tx)   # Solana transaction

Rust

TypeScript / JavaScript

Exact method names and types may differ; refer to the SDK docs for your language. The idea is the same: authenticate with your API key, request entropy, get back bytes plus Quantum Job ID and Solana tx.

What the SDKs handle

  • Authentication — Sending the API key in the correct header.

  • Request/response — Encoding parameters and decoding the response (entropy, job_id, solana_tx).

  • Errors — Mapping HTTP/gRPC errors to exceptions or Result types; see Error Handling.

For full request/response and limits: API Reference.

Last updated