Skip to content

Instantly share code, notes, and snippets.

@staccDOTsol
Created January 31, 2023 18:14
Show Gist options
  • Save staccDOTsol/0119390c290e7e300470be4972e18f9e to your computer and use it in GitHub Desktop.
Save staccDOTsol/0119390c290e7e300470be4972e18f9e to your computer and use it in GitHub Desktop.
let connection = new Connection ("https://rpc.helius.xyz/?api-key=helius-is-cool")
// @ts-ignore
const fetcher = new AccountFetcher(connection);
// @ts-ignore
const provider = new AnchorProvider( connection, new NodeWallet(Keypair.fromSecretKey(bs58.decode(process.env.SOLANA_KEY!))), {})
// @ts-ignore
const ctx = WhirlpoolContext.from(connection, new NodeWallet(Keypair.fromSecretKey(bs58.decode(process.env.SOLANA_KEY!))),ORCA_WHIRLPOOL_PROGRAM_ID,fetcher)// (provider, ORCA_WHIRLPOOL_PROGRAM_ID);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment