Open mugveiga opened 2 years ago
Is your feature request related to a problem? Please describe. Im trying to fetch account data from my candy machine v2. Ex:
var accountInfo = await _solanaClient.rpcClient.getAccountInfo("CQvEEpwKVhmBevmdUxjSAaFWjbVrqiumdaupNa8pFCuW", encoding: Encoding.base64); List<int> candyMachineBinary = (accountInfo!.data! as BinaryAccountData).data;
Is this the right way of retrieving my candyMachine account data? i mean, im aiming to retrieve this portion of the IDL:
but i get this huge byte array that i cannot decode manually (i tried the same strategy as on metadata.fromBinary without success.
metadata.fromBinary
A nice feature to have would be to pass as a parameter the IDL specs and the binary.. and receive a nice json.
the IDL spec for this byte array, for example, is here: https://github.com/metaplex-foundation/metaplex-program-library/blob/master/candy-machine/js/idl/candy_machine.json
Describe the solution you'd like a new parameter on getAccountInfo passing the IDL spec.
Hi, not sure if we will have time to implement it in the near future, so feel free to create a PR in the meantime :)
Is your feature request related to a problem? Please describe. Im trying to fetch account data from my candy machine v2. Ex:
Is this the right way of retrieving my candyMachine account data? i mean, im aiming to retrieve this portion of the IDL:
but i get this huge byte array that i cannot decode manually (i tried the same strategy as on
metadata.fromBinary
without success.A nice feature to have would be to pass as a parameter the IDL specs and the binary.. and receive a nice json.
the IDL spec for this byte array, for example, is here: https://github.com/metaplex-foundation/metaplex-program-library/blob/master/candy-machine/js/idl/candy_machine.json
Describe the solution you'd like a new parameter on getAccountInfo passing the IDL spec.