Answer by Whiteseal for is it possible to know the caller of an instruction
Your best bet is probably to add a Signer if you want this functionality. However, even if you have a Signer, a blocked wallet can always sign with another account and send the tx, you can't see which...
View ArticleAnswer by Jon C for is it possible to know the caller of an instruction
The answer is unfortunately simple: you can't! The fee payer for the transaction is not exposed to a program.
View ArticleAnswer by toastx for is it possible to know the caller of an instruction
I think you can pass the list of blocked addresses, lets say _access_control, then check whether the payer address is in the list of addresses. Something along the lines ofif...
View Articleis it possible to know the caller of an instruction
TL;DR, how can I get the address of the person calling an instruction inside my anchor program.In my anchor program, I want to know the person who is calling my program.Say I have an instruction that...
View Article
More Pages to Explore .....