0

I'm noob in Solana so sorry for dumb question.

Using rust sdk I got EncodedTransactionWithStatusMeta from the network. I want to filter out all transactions which are not native token transfers (SOL), how can I understand type of transaction? Are there any beautiful methods or I should parse instructions for it? Fields in EncodedTransactionWithStatusMeta look a bit low level for such task...

1 Answer 1

2

a transaction can't really be a native token transfer. Instruction can. Transactions can have multiples instructions. So you have to check instruction by instruction. Also, some instruction may not look like native token transfer (like a buy transaction on an NFT marketplace for example), so you also have to check inner instructions.

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.