I wanna show a sign message modal while running signMessage() function. Current function I’m using is -
const signMessage = async (message: string) => {
if (!provider) {
return “provider not initialized yet”;
}
const solanaWallet = new SolanaWallet(provider);
const msg = Buffer.from(message, "utf8");
const msgUint8Array = new Uint8Array(msg);
const result = await solanaWallet.signMessage(msgUint8Array);
return;
};
I’m not able to see any modal that asks users to sign this message. Is it possible by any chance?
If not, can I create a dummy transaction withoout acually moving any crypto, so that my users can get the feel of how exactly they’ll have to sign a transaction to accept my propsal.
Hey @singhdon85 we don’t support transaction confirmation screen in Solana as of now. What you are using is just Solana library to sign the transaction. Ideally, you can create your own modal, and then on confirm you can call the signMesssage.
Wallet Service Confirmation screens are only available for the EVM chains as of now. Solana support is in our roadmap, but we don’t have a timeline yet.