> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.galleon8.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.galleon8.com/_mcp/server.

# Token API Quickstart

> Make a first Advanced API request for token price data.

This quickstart shows how to make a first Token API request over HTTPS using JSON-RPC 2.0.

## Prerequisites

Before you start, make sure you have:

* A W3api project with Advanced API access.
* A project API key copied from the W3api platform.
* A terminal with `curl`.

Keep your API key private. Do not commit it to source control or expose it in frontend code.

---

## Set Your Endpoint

Token API requests use the Advanced API multichain endpoint:

```shell
https://rpc.ankr.com/multichain/<apiKey>
```

Replace `<apiKey>` with your project API key. In the examples below, store the full URL as `YOUR_ADVANCED_API_ENDPOINT`.

---

## Make a Request with curl

Use `ankr_getTokenPrice` to request the current price for the ANKR token on Ethereum:

```bash
curl -X POST YOUR_ADVANCED_API_ENDPOINT \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "method": "ankr_getTokenPrice",
    "params": {
      "blockchain": "eth",
      "contractAddress": "0x990f341946a3fdb507ae7e52d17851b87168017c"
    },
    "id": 1
  }'
```

A successful response returns a JSON-RPC `result` object with token price data:

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "usdPrice": "0.0123",
    "blockchain": "eth",
    "contractAddress": "0x990f341946a3fdb507ae7e52d17851b87168017c"
  }
}
```