Quantcast
Channel: Recent Questions - Solana Stack Exchange
Viewing all articles
Browse latest Browse all 7961

How to decode `solana_sdk::instruction::CompiledInstruction` (rust solana sdk)?

$
0
0

I want to extract some user readable data from CompiledInstruction. Specifically, I want to understand if CompiledInstruction is native token transfer (SOL), and print sender, recipient, and amount. I looked at sdk docs, and didn't found methods which can extract such high level information from it. Probably, convert CompiledInstruction to Instruction can help, but I didn't find functions for this as well.


Viewing all articles
Browse latest Browse all 7961

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>