Skip to main content
Space and Time is a decentralized data warehouse that lets you run SQL queries against blockchain data, off-chain datasets, or your own custom tables with built-in cryptographic verifiability. This guide shows how to integrate Space and Time with your Bless app using a simple Bitcoin transactions query example. By the end of this guide, you will:
  • Register a temporary user
  • Authenticate and obtain an access token
  • Run a SQL query to fetch Bitcoin transaction data

Quick Notes

  • A random user is generated for each run in this demo. For production use, replace this with fixed credentials.
  • An API key from your Space and Time account is required, even for development environments.
  • The example runs entirely client-side, making it suitable for local development or WASM environments such as Bless nodes.
For full API details, refer to the Space and Time API Documentation.

Full Example (JS)

Example Output

Running a simple query:
Returns results like: