solana-developers / solana-cookbook

https://solanacookbook.com/
606 stars 340 forks source link

[Snippet] Read multiple instructions from a transaction #197

Open jacobcreech opened 2 years ago

jacobcreech commented 2 years ago

Would be great to add an example of reading multiple instructions from a transaction when in a program.

Example: https://github.com/metaplex-foundation/metaplex-program-library/blob/c340ba27560ee101f0f688ee47baa80be006f380/nft-candy-machine/program/src/lib.rs#L385-L409

This would be a new reference under the Program reference section

migui3230 commented 2 years ago

@jacobcreech first issue for me! can i take this on?

jacobcreech commented 2 years ago

@migui3230 sounds great! Looking forward to your contribution

migui3230 commented 2 years ago

321 @jacobcreech

Preview image

Full Source image