espresso-cash-public icon indicating copy to clipboard operation
espresso-cash-public copied to clipboard

Implementation/use of the libraries

Open dcoldeira opened this issue 2 years ago • 6 comments

Hi guys, just wondering how would you implement/use these libraries on Dart/Flutter? There isn't any example or guide, I will be more than happy to work on the documentation once somebody kindly sends me examples of how to use them and what you (currently) actually can do with them, if that makes sence? - Thanks

dcoldeira avatar Sep 17 '21 14:09 dcoldeira

👍

zelmkhan avatar Sep 19 '21 22:09 zelmkhan

@iharob i believe this is the good time now as the library is quite complete, can you send some examples?

romeo4934 avatar Jan 29 '22 09:01 romeo4934

"Manually writing anchor compatible programs through a simple API". hey, can you guys provide a simple example for this. have been trying to do it all day but had no luck so far

Nithsua avatar Feb 05 '22 21:02 Nithsua

did you look at this file?

https://github.com/cryptoplease/cryptoplease-dart/blob/master/packages/solana/test/anchor_instruction_test.dart

romeo4934 avatar Feb 05 '22 22:02 romeo4934

Yeah, I was using it but having an issue with passing the accountData. I'm using getAccountInfo() to get account data but the data returned is of type BinaryAccountData and I'm unable to parse it to string or codeunits so that I can deserialize it with borsh

Nithsua avatar Feb 07 '22 08:02 Nithsua

@Nithsua I DM you on twitter

romeo4934 avatar Feb 07 '22 08:02 romeo4934