# Programmatic Requests

We can also write a simple script to make cURL requests. This will allow us to build around the RPC responses. This will make it easier to call different endpoints with different arguments and handle data that we receive from the RPC calls.

First, let's set up the typescript project.

1. check node and npm (node package manager) versions:&#x20;

In your terminal, enter:

```
node --version
npm --version
```

It should give something like:&#x20;

```
v18.17.1
10.1.0
```

If these packages are not installed, run:

```
sudo apt install nodejs npm
```

2. Create a project directory and navigate into it:

```
mkdir telSimpleCalls
cd telSimpleCalls
```

3. Open a new VsCode (or alternative IDE) window of your directory:

```
code .
```

4. Initialise a new project:

```
npm init -y
```

5. As we will need typescript and axios packages, we install them using:

```
npm install typescript axios
```

6. Initialise the TypeScript configuration:

```bash
npx tsc --init
```

This command creates a `tsconfig.json` file in your project directory. You can leave the settings as default.

You should now have your TypeScript project set up! Let's get into writing some scripts!


---

# 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.telcoin.network/telcoin-network/getting-started/reading-blockchain-data/programmatic-requests.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.
