orca-so / typescript-sdk

The Orca SDK contains a set of simple to use APIs to allow developers to integrate with the Orca platform.
159 stars 49 forks source link

Add devnet #63

Closed ghost closed 2 years ago

ghost commented 2 years ago

Changes

Usage

const connection = new Connection("https://api.devnet.solana.com", "singleGossip");
const orca = getOrca(connection, Network.DEVNET);

One caveat to note is that there are only a few devnet pools avaialble, so if you try to access pools that are only available on mainnet, the code will throw an error.