Choosing an interface
There are currently three ways to connect to Space and Time: dapp, REST API, or JDBC
Ways to Connect: REST API or JDBC
There are currently three ways to connect to Space and Time:
- REST APIs - for building dapps or integrating Space and Time into other development environments
- JDBC driver - for locally-installed applications
- Coming soon: Space and Time dapp - for a user-friendly interface or to start running queries right away
Connect via REST API
We also allow developers to connect via API to power apps and dapps, or to integrate Space and Time into other development environments.
To connect:
- Authenticate with the platform to get an access token
• If registering for the first time, you'll want to choose a uniqueuserId
and generate a new keypair
• FYI, SxT uses biscuits to handle decentralized authorization of private tables - Use your access token to submit various SQL APIs and submit queries
In addition to the SQL API, there are an increasing number of specialty APIs, such as the Blockchain Data API and Resource Discovery API, with more being added all the time.
Connect via JDBC
You can connect via JDBC for locally-installed applications like IDEs, Business Intelligence (BI) tools, etc. Given the wide array of thick client setups, the instructions below are directional, and may vary slightly from tool to tool.
To connect:
- Make sure you're running Java v11 or higher
- Download the SxT JDBC driver, save the JAR file to the folder of your choice and make note of the location
• If you are presented with a login screen, simply click on the X in the upper-right - authentication is not required - Open the local JDBC program of choice, and set-up a new connection:
(these instructions will vary, depending on the program being used)
• Select the Generic JDBC driver option
• Select the option to manually select the driver/.JAR file
• Navigate to the folder from the previous step and select the .JAR file
• Click OK back to the setup screen
• Save your configuration settings - JDBC requires the following information:
• user - this will be theuserId
you registered with Space and Time
• password - this will be yourprivateKey
from the registration process
- used to generate a signature, never leaves the client
- optionally, you can leavepassword
blank and add a property calledprivateKey
• publicKey - this will be the public key corresponding to above private key
• (optional)biscuit_<table-name>
- list of biscuits tied to permissioned tables.
- blockchain tables are public, and do not require a biscuit
- for private tables during the Controlled Release, one biscuit is required per table
(biscuit_<table-name>
) - That's it! You can connect to SxT and interact with it like any other database!
Updated about 1 month ago