-
Notifications
You must be signed in to change notification settings - Fork 12
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
wallet.AccountInfo is null #21
Comments
Hi, Did you tried with an Account that exists? |
I'm confused) Could you provide example of code with your SDK how to create account/wallet from scratch and check balance. Another interesting point is that looks like
Regards) |
That's correct the private key is generated client-side and is encrypted with a seed you provide. This will not create an account on the blockchain itself for that purpose you will need to create a transaction sending you some tokens at that point your public key will be registered on the chain as an account. maybe that can clarify some of your questions, https://support.polkadot.network/support/solutions/articles/65000168651-what-is-the-existential-deposit- |
Here is an example of how to create a transaction.
As we are currently heavily refactoring the API, you might wait for one a few days then I will provide more code snippets with the most actual monthly release which makes everything much more smooth with the newest API release. |
Hello, could you please also provide the example how to get the current balance? |
Sure, Use this step-by-step https://github.com/ajuna-network/Ajuna.SDK#installing-the-template If you exchange here SystemStorage.Number with SystemStorageAccountInfo your are good to go. |
Hi!
I'm new in crypto.
Trying to use your SDK
Idea its to create wallets and manage them- at least see balances and transfer 'money' between wallets.
As I understood - balance information is placed at
wallet.AccountInfo.AccountData
Problem that when wallet is created or loaded -
wallet.AccountInfo is null
Using different domains
I debug SDK code and looks like my problem here (class Wallet)
![image](https://user-images.githubusercontent.com/68066163/136535269-2ab343a9-f3b6-45f5-953e-8f2ab22f91d6.png)
So what should I do to have wallet.AccountInfo?
Regards)
The text was updated successfully, but these errors were encountered: