Skip to main content

New answers tagged

0 votes

How to fix sb.AnchorUtils.loadEnv() wrong keyfile path?

sb.AnchorUtils.initKeypairFromFile('./sb-randomness/target/deploy/sb_randomness-keypair.json'); Please make sure your project structure. https://github.com/switchboard-xyz/sb-on-demand-examples/tree/...
pizzza1bit's user avatar
0 votes

Error: expected environment variable `ANCHOR_WALLET` is not set

You need to override the default provider. import { Program, type Provider } from "@coral-xyz/anchor"; const myProgram = new Program<ProgramType>(IDL, programID, {} as Provider); @...
Kelvin's user avatar
  • 101

Top 50 recent answers are included