Skip to main content
6 events
when toggle format what by license comment
Dec 10, 2022 at 13:07 comment added guillermo Yeah that's what I was attempting. It would be nice if the Instruction Introspection methods could expand to handle that, but yeah no way to do it at the moment as you mentioned from a client side it appears. Will indeed have to just build it into a program.
Dec 9, 2022 at 1:30 comment added HelmetFace If I'm following what you mean by that, you're saying you have instruction 1 that you expect results in a token balance change of X, the value of which can't be predicted ahead of time, and then you want X to be an input to instruction 2? And you want to construct this transaction entirely client-side? If I have that right, then I believe there's currently not even an in-principle way to do that. The only way would be to roll your own program with the instructions as CPIs, and call .reload as described above.
Dec 6, 2022 at 18:53 comment added guillermo Right it's not within an anchor program unfortunately. Just creating a tx within a rust client.
Dec 6, 2022 at 0:01 history undeleted HelmetFace
Dec 5, 2022 at 23:58 history deleted HelmetFace via Vote
Dec 5, 2022 at 23:58 history answered HelmetFace CC BY-SA 4.0