Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 1 addition & 34 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,34 +1 @@
# Piertwo Staking API SDK
A JS development kit with supported TypeScript typings.

## Installation
`yarn add @pier_two/staking-ts`

## Documentation
`yarn` or `npm run install`
`yarn build:docs` or `npm run build:docs`
`npx serve ./docs`

### PierTwoStakingApi
The main class for interacting with the Pier Two staking platform.
All endpoints in the [Pier Two Staking Api](https://gw-1.api.piertwo.io/docs) are implemented.
Read [full documentation here](https://sdk.piertwo.com/).

```javascript

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

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

async function main() {
const accountDetails = await piertwo.account.getAccount();

console.log(accountDetails.data)
}

main()

```
You really shouldnt be looking here