Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KavaClient constructor is out of date #112

Open
cipherzzz opened this issue Dec 18, 2023 · 1 comment
Open

KavaClient constructor is out of date #112

cipherzzz opened this issue Dec 18, 2023 · 1 comment

Comments

@cipherzzz
Copy link

Summary

I expected to be able to run the samples to initialize a KavaClient using the README

import Kava from '@kava-labs/javascript-sdk';

const initialize = async () => {
  const mnemonic = 'secret words that unlock a kava address';
  const testnetUrl = 'https://api.data-testnet-14000.kava.io'; // testnet REST api endpoint

  // Declare a new Kava client, set wallet, and initialize
  const client = new Kava.KavaClient(testnetUrl);
  client.setWallet(mnemonic);
  client.setBroadcastMode('async');
  await client.initChain();
};

const main = () => {
  initialize()
    .then((client) => console.log(client))
    .catch((error) => console.log(error));
};

main();

Outcome

The KavaClient expects two constructor arguments and not one - it also seems that rpc is labeled as rcp
image

@shortthefomo
Copy link

any word on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants