Authentication

An API key is required to make use of our API

You can fetch your API key(s) from the Pier Two Control Centre settings page.

You must include your API key in your requests under the api-key header.

📘

Use our Typescript SDK

The easiest way to interact with our API is using our Typescript SDK:

import { URL, PierTwoStakingApi } from '@pier_two/staking-ts'

const piertwo = new PierTwoStakingApi({
  baseUrl: URL.MAINNET,
  apiKey: 'yourApiKey'
});