Followed this doc to start the MPC key generation, but gives error while initializing FireblocksSDK with apiKey, privateKey
const secretKey = readFileSync(NCW_ADMIN_PRIVATE_KEY_PATH, "utf8");
const fireblocks = new FireblocksSDK({
apiKey: apiKey,
apiBaseUrl: "https://sandbox-api.fireblocks.io/v1", // or assign directly to "https://sandbox-api.fireblocks.io/v1";
privateKey: secretKey,
});
What I did wrong? please verify the attachment as well
Hi @rajesh-bridge-port , the secret key should be a path to you fireblocks_secret.key file
Here is an example of how I fetch my secretKey
const secretKey = fs.readFileSync(path.resolve("./key/fireblocks_secret.key"), "utf8");
Hi @Mohammed ,
I tried the same as you said but raising same issue. Please verify the attached screenshot.
Hi @Mohammed ,
Could you please share jsonwebtoken module version currently using in your code? I believe its due to version issue
Thanks,
Rajesh