I was wondering how is it possible to show a message while signing an anchor transaction since it creates a transaction by itself unlike how you do using @solana/web3.js. I just want to let user know why he/she is signing the transaction.
For eg:
const tx = await program.methods.initialize().accounts({
baseAccount: programPDA,
authority: user.publicKey
}).rpc();
So the above the method would direcly open the mobile wallet and ask the user to sign. But along with this i want to show the message why the person has to sign. A message like this Sign the transaction to initialize the PDA
while signing the tx is what i want.
Can anybody tell me how is this possible?