Skip to content

Latest commit

 

History

History
53 lines (43 loc) · 1.42 KB

quickstart.mdx

File metadata and controls

53 lines (43 loc) · 1.42 KB
title description og:image twitter:image og:description
Quickstart
Get started with Pinax API in just a few steps.
Get started with Pinax API in just a few steps.
This product is currently in Beta and under active development. If you have any feedback, please reach out to us on [Discord](https://discord.gg/pinax).

Quickstart

Make an API request using Javascript and cURL.

const address = "0x2a0c0dbecc7e4d658f48e01e3fa353f44050c208";
const options = {
  method: 'GET',
  headers: {
    'Accept': 'application/json',
    'X-Api-Key': '<...>'
  }
};

fetch(`https://beta.api.pinax.network/balances/evm/${address}`, options)
  .then(response => response.json())
  .then(response => console.log(response))
  .catch(err => console.error(err));
curl --request GET \
  --url https://beta.api.pinax.network/v1/balances/evm/0x2a0c0dbecc7e4d658f48e01e3fa353f44050c208 \
  --header 'Accept: application/json' \
  --header 'X-Api-Key: <...>'

Authentication

All API endpoints are authenticated using an API key inserted in header as X-Api-Key.

You can obtain an API key by signing up on the The Graph Market.

{
  "headers": {
    "X-Api-Key": "<...>"
  }
}