Skip to content

pyth-network/staking-sdk-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 [email protected]. 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.

About

An example repo consuming the staking sdk

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published