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. |
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: <...>'
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": "<...>"
}
}