Is it somehow possible to get and deserialize the owner of the token account if the owner is a PDA and off-curve around this line - https://github.com/metaplex-foundation/digital-asset-rpc-infrastructure/blob/main/nft_ingester/src/program_transformers/token/mod.rs#L34 without initializing a RpcClient?

And if not, then is it possible to pass a RpcClient to the function? Or how else can I achieve it?

Any help would be appreciated.

  • There's no way to do this on the existing DAS providers, you'll have to fork and run your own validator for this, which is not an easy task. Are you prepared to do that? Sep 21, 2023 at 9:33
  • Yes I am @KartikSoneji , I already forked the DAS RPC Infra and am ready to update with help if possible. Sep 21, 2023 at 12:31
  • OK, since you're running a validator, you won't need an rpc client to fetch account info, you should be able to query your local database. But before that, there might be an easier way by using an instruction parser github.com/metaplex-foundation/digital-asset-rpc-infrastructure/… Sep 22, 2023 at 6:28
  • This question unfortunately does not have a simple answer, if you want to work together to find a solution for your specific use case then please feel free to contact me on email/discord (@kartiksoneji) Sep 22, 2023 at 6:30
  • Not really. I'm trying to find out what will be the best way to achieve this. Do I need to create RpcClient and pass to the functions and use it to get the wallet data then deserialize? Or is there any other way to get the account data? Sep 24, 2023 at 7:00


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.