Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 855 Bytes

File metadata and controls

23 lines (15 loc) · 855 Bytes

This repository contains a sample for using the @pythnetwork/staking-sdk client.

Setup

First, ensure you have node installed. Then run npm install.

Running

To run the example, run npm run example -- <wallet pubkey> <stake account pubkey>.

Gotchas

There a few gotchas caused by underlying issues in some upstream dependencies -- these unfortunately must be handled by consumers. You'll see these things in this example repo:

  1. You must install rpc-websockets@7.11.0. This is due to a breaking change that was introduced in rpc-websockets without a major version revision.

  2. You must set the skipLibCheck tsconfig option. This is because there are typing errors in some underlying libraries, but these errors are not anything that end users can control and they do not affect the type safety of consuming code.