Skip to content

Error: You cannot sign hex strings using sign message #189

Discussion options

You must be logged in to vote

Phantom's signMessage function on its Solana provider will always check if the input could be decoded as a Solana transaction. If it can be, Phantom will reject with this error message. We do this to protect users from malicious Solana dapps that try and pass transactions to signMessage, when they should be using signAndSendTransaction instead.

Solana does not currently support any initiatives like EIP-2612 that delegate spending with just a signed message. If you're looking for something like that, I would suggest leveraging our Ethereum provider instead.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@matt-user
Comment options

@bfriel
Comment options

Answer selected by adamdelphantom
@xgreenx
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants