> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chainstack.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Starknet API reference: Pathfinder JSON-RPC quickstart

> Use the Starknet JSON-RPC API on Chainstack via Pathfinder nodes to query the Ethereum L2 ZK-rollup and run versioned RPC API calls.

## Starknet JSON-RPC version endpoints

Chainstack Starknet endpoints support sending requests to different JSON-RPC API versions. For versions, see the [Pathfinder GitHub repository](https://github.com/equilibriumco/pathfinder/tree/main#json-rpc-api).

To send a request to a specific version, append your Chainstack Starknet endpoint with the version URL suffix. For example, `/rpc/v0_9`. The default `/` path serves version 0.9.

> [!NOTE]
>
> Pathfinder [0.23.0](https://github.com/equilibriumco/pathfinder/releases/tag/v0.23.0) removed JSON-RPC API versions 0.6, 0.7, and 0.8. The supported versions are 0.9 (`/rpc/v0_9`, also the default) and 0.10 (`/rpc/v0_10`). See [Pathfinder RPC version removal 0.23.0](https://docs.chainstack.com/reference/starknet-pathfinder-0-23-0-rpc-version-removal.md).

Check the following examples.

```Text starknet_getNonce v0.9 theme={"system"}
curl --request POST \
     --url https://starknet-mainnet.core.chainstack.com/mt_c524ad9781ae5dccd9ac6f5b0370e/rpc/v0_9 \
     --header 'content-type: application/json' \
     --data '
{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "starknet_getNonce",
  "params": [
    {
      "block_number": 385940
    },
    "0x0569b13e8164bc8000c0bbcf4887856516643af123c5bc3b01e229e92f9cfd10"
  ]
}
'
```

```Text starknet_getNonce v0.10 theme={"system"}
curl --request POST \
     --url https://starknet-mainnet.core.chainstack.com/mt_c524ad9781ae5dccd9ac6f5b0370e/rpc/v0_10 \
     --header 'content-type: application/json' \
     --data '
{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "starknet_getNonce",
  "params": [
    {
      "block_number": 385940
    },
    "0x0569b13e8164bc8000c0bbcf4887856516643af123c5bc3b01e229e92f9cfd10"
  ]
}
'
```

## What is the Starknet

Starknet is a decentralized, permissionless and scalable zk-rollup, extending the Ethereum blockchain's capabilities. It is designed to enhance scalability, reduce gas fees, and maintain a high level of security. Starknet uses zk-STARKs technology to achieve these goals, providing a scalable and decentralized solution for Layer-2 scaling.

Starknet provides a robust and efficient network with cross-chain bridges for seamless interactions.

## What is the Starknet API

The StarkNet API allows developers to communicate with the Starknet network.

## How to start using the Starknet API

To use the Starknet API, you need access to a Starknet RPC node.

Follow these steps to deploy a Starknet RPC node, and find your endpoint credentials:

**Step 1**

[Sign up with Chainstack](https://console.chainstack.com/user/account/create).

**Step 2**

[Deploy a node](https://docs.chainstack.com/docs/manage-your-networks.md).

**Step 3**

[View node access and credentials](https://docs.chainstack.com/docs/manage-your-node.md#view-node-access-and-credentials).

Now you are ready to connect to Starknet and use the Starknet API to build.
