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

kda_requestAccount returns account info w/o balance in it. #41

Open
tuncatunc opened this issue Feb 6, 2023 · 0 comments
Open

kda_requestAccount returns account info w/o balance in it. #41

tuncatunc opened this issue Feb 6, 2023 · 0 comments

Comments

@tuncatunc
Copy link

kda_requestAccount returns account info w/o balance in it.
https://docs.kaddex.com/kaddex/getting-started/x-wallet/x-wallet-api#get-account-information

    kadena.request({
      method: 'kda_requestAccount',
      networkId: "testnet04"
    }).then((response) => {
      if (response.status === 'success') {
        if (response.wallet.balance > 0) {
          setKdaBalance(response.wallet.balance)
          console.log("Account request", response.wallet.balance);
        }
        // set button background to green and text to connected

      } else {
      }
    });

image

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

1 participant