Closed aniketambore closed 2 years ago
@aniketambore Thanks for this, the readme has been updated a lot due to new methods added. So this PR may need to be updated. Also, I would suggest make the PR for the ffi branch if you can, as thats the branch which will be merged to main.
I am happy for you to update it and I will merge when its done. You can use this as a reference to save you some trouble: https://github.com/LtbLightning/bdk-rn/blob/main/README.md
After testing bdk-flutter, I noticed that there are several errors / typos in readme.md. The usage has been fixed.
For
genSeed()
andgetBalance()
method.: Error: Undefined name 'BdkRn'.
BdkRn
usedBdkWallet
For all the methods,
response
is declared asconst
which throws.: Error: Not a constant expression.
final response = await BdkWallet().methodName();
Also, static access to instance member is not allowed, like
final response = await BdkWallet.genSeed();
final response = await BdkWallet().genSeed();
For
confirmedTransactions()
method.The method 'confirmedTransactions' isn't defined for the type 'BdkWallet'. Try correcting the name to the name of an existing method, or defining a method named 'confirmedTransactions'.
final response = await BdkWallet().getConfirmedTransactions();
Amazing Project, Thanks !