Platform

Data & Eval infrastructure for Astreum

Query blockchain data and evaluate Astreum Expressions through a metered API. Pay as you go, scale as you grow.

Blockchain data and code execution on demand

Platform provides a metered API for querying Astreum blockchain data and running Astreum Expressions in the cloud. Query blocks, accounts, and transactions through the Data API. Execute code with the Eval API. Create prepaid links that render dynamic web pages. All accessible via simple HTTP requests with Bearer token authentication.

Each API key has its own balance that tracks data and eval spend separately. Monitor usage in real-time, top up when needed, and pay only for what you use. No infrastructure to manage—just an API key and a request.

Use Cases

See how developers use Platform to build on Astreum.

Image Placeholder

Query Blockchain Data

Access blocks, accounts, transactions, and chain state through a simple REST API. Query by hash, height, or address. Get the data you need without running a node or managing infrastructure. Perfect for dashboards, analytics, and real-time applications.

Image Placeholder

Evaluate Astreum Expressions

Run Astreum Expressions in the cloud with a single API call. Inject environment variables at runtime to keep secrets out of your code. Test ideas, validate logic, and ship faster without setting up local execution environments.

Image Placeholder

Create Dynamic Links

Build prepaid expressions that render as web pages at unique URLs. Each link has its own slug and balance. When someone visits, the expression runs and returns HTML. Top up the balance to keep links active. Perfect for embedding live on-chain data into static sites.

Features

Built-in capabilities for every integration.

Data API
  • Query blocks by hash or height
  • Get account balance, counter, code hash, data hash
  • Retrieve transaction details and status
  • Access chain ID and latest block info
Eval API
  • Execute Astreum Expressions in the cloud
  • Optional environment injection for secrets and config
  • Metered execution with configurable limits
  • Instant results without infrastructure setup
API Keys
  • Bearer token authentication for all requests
  • Separate balance per key with data and eval tracking
  • Toggle keys active/inactive or revoke entirely
  • Create multiple keys per profile
Links
  • Named slugs for human-readable URLs
  • Prepaid balance deducted on each resolution
  • Accept query parameters as environment values
  • Returns HTML for direct browser rendering

Frequently Asked Questions

Platform is a metered API service for the Astreum blockchain. Use the Data API to query blockchain state (blocks, accounts, transactions). Use the Eval API to run Astreum Expressions in the cloud. Create API keys with balances, make authenticated requests, and pay only for what you use. You can also create Links—prepaid expressions that render as web pages when visited.

Create API keys from the Platform Keys page. Each key has a unique token you include as a Bearer header in requests. Keys have separate balances that track data spend (for queries) and eval spend (for code execution). You can toggle keys active or inactive, revoke them entirely, and create multiple keys to separate different projects or environments.

The Data API is read-only—it lets you query existing blockchain data like blocks, accounts, and transactions. The Eval API is computational—it executes Astreum Expressions you provide and returns the result. Use Data API when you need on-chain information. Use Eval API when you need to run code that processes data, performs calculations, or generates output dynamically.

Links are named, prepaid Astreum Expressions with unique URLs. Create a link, give it a slug (like my-dashboard), fund it with ASTR credits, and access it at /platform/links/my-dashboard. Each visit runs the expression and returns HTML. Query parameters become environment variables, so you can build dynamic pages that respond to user input. When the balance runs out, the link stops working until you top it up.

Platform is metered—you fund your profile with ASTR credits, and each API call or link resolution deducts from your balance. Data API calls have a data cost. Eval API calls have an eval cost based on computation. You can view usage logs on the Platform home page. Top up your balance anytime from the billing section. When your balance reaches zero, requests return a 402 Payment Required error.

API requests return a 402 Payment Required status. Links display a message that the balance is exhausted. No charges accrue—you simply can't make requests until you top up. Your keys and links remain intact, just inactive until funded. Check your usage logs to understand your consumption patterns and adjust accordingly.

Start building on Platform

Read the chain, test Astreum Expressions, and ship faster.