Skip to content

Latest commit

 

History

History
72 lines (58 loc) · 3.45 KB

File metadata and controls

72 lines (58 loc) · 3.45 KB
section Get Started
sortOrder 2
label Quickstart
pageName quickstart

Beta Access Disclaimer: Thank you for exploring our beta release! Should you experience any service disruptions or have insights to share, reach out at support@stateless.solutions.

Quickstart

This guide will walk you through the essentials of getting started with Stateless, from account creation to sending an initial API request. For convenience, Stateless provides the following public endpoints:

Active


Create an Account and API Key

Stateless offers a streamlined process for account creation. You can create an account and log in using GitHub Single Sign-On (SSO). To create an account and generate an API key:

  1. Visit app.stateless.solutions
  2. Select "Sign Up" using GitHub SSO
  3. Authorize Stateless to access your GitHub account
  4. After successful authorization, you'll be logged into your Stateless account
  5. Navigate to the ‘API Keys’ table on the ‘Account’ page
  6. Click on 'Create API Key'
  7. Label your key for easy identification and set an expiration date
  8. Save the generated key in a secure location as it will not be displayed after creation

Having an account with Stateless is mandatory for creating private endpoints. The account allows you to manage server resources, billing and more.

Install Stateless

Stateless provides a full Python package for easy installation. Please make sure you have Python 3.10 or later and pip before proceeding. To install the Python package, run the following command in your terminal:


```bash pip install stateless-sdk ```
## Select Providers One of the key features of Stateless is the ability to select and manage the blockchain nodes (Providers) that service your requests. Using the CLI, run the create bucket command:
```bash stateless-cli buckets create ```

Follow the interactive prompts to enter a name for your bucket and select the blockchain and Provider Offerings to send your requests to. For a detailed guide on bucket management, see Selecting Service Providers.

Send a Request

Now that you've set up your environment and built your Provider bucket, you can use the Stateless API to make your first request. With any available endpoint, you can proceed to make a request. In this example, you can quickly fetch the latest Ethereum block:

curl -X POST "https://api.stateless.solutions/eth/v1/<bucket_id>" -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"eth_blockNumber","id":1}'



After sending the request, you should receive a JSON response that contains the latest Ethereum block number. See the API Reference for more details.

Next Steps

For a deeper dive into our offerings, tailored optimizations, provider bucket management, and advanced use cases, please explore the Developer Guides.