Created
January 31, 2023 18:14
-
-
Save staccDOTsol/0119390c290e7e300470be4972e18f9e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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