# Use Blockchain API

### 1. Creating an Account

**Step 1:** Users are able to sign up on [**ChainUp Cloud**](https://cloud.chainup.com/app/register).

![Sign Up](/files/3sDZhijxoVCODn5VWMsp)

**Step 2:** Login to [**ChainUp Cloud**](https://cloud.chainup.com/app/login) with your newly created account.

![Login](/files/BqfwFVWcBrNRe6Qm9IXQ)

### 2. User Dashboard

**Step 1:** Once you have logged in to [**ChainUp Cloud**](https://cloud.chainup.com/app/api), you will need to create a new API key and select the blockchain.

![Create API](/files/7isH7aedp5jr2r08XqgS)

**Step 2:** Now, type in the name of your API and select the blockchain.

![Select Blockchain](/files/SCYsgOzHpQwVuO3yUo4y)

**Step 3:** After creating the API, you will get access to the API key under the Project's API Panel, where you can view, copy, create and delete your API keys. You can also view other statistics on the API usage.

![View API key](/files/XqyFgwH8hMPacJz63xPk)

**Step 4:** You can also scroll down to get more info regarding the integration.

![Integration guide](/files/cUM3tWcKsI5obOF8HjA7)

**Step 5:** You can scroll further down to configure the settings of the API.

![Configure API settings](/files/CtP26I4E89tUqdBlwkH1)

**Step 6:** You can return the dashboard API panel to have an overview of all your APIs.

![API Overview](/files/hHkzoCVJ3DEv3LJE0Dsl)

### 3. Accessing the Blockchain

In this example, we’ll access the Polkadot Blockchain.

**Step 1:** When scrolling down to the integration section, you will be provided with the URL for this service.

![Integration guide](/files/cUM3tWcKsI5obOF8HjA7)

**Step 2:** Depending on your setup, there are several ways to use your API key. You can either use the JSON-RPC, WebSocket and more. Here is an example curl:

```
curl -i -X POST  -H 'content-type: application/json' --data '{"jsonrpc":"2.0","method":"chain_getBlock","params":[],"id":32}'  https://api.chainup.net/polkadot/polkadot/93f01aa89fe14a5a9fc1a4c11f6087af
```

Or you can use WebSocket to connect:

```
wscat -c  wss://api.chainup.net/ws/polkadot/polkadot/93f01aa89fe14a5a9fc1a4c11f6087af
```

[**Sign up now**](https://cloud.chainup.com/app/register) to start building in seconds and discover the wonders of ChainUp Cloud!


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.chainupcloud.com/introduction/for-developers/use-blockchain-api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
