Const
Self-contained message signing button with wallet verification.
Handles wallet connection status internally — shows a connect button if not connected, a switch chain button if on the wrong chain, or the sign button when ready.
<SignButton message="Hello, world!" onError={(error) => console.error(error)} onSign={(signature) => console.log(signature)}/> Copy
<SignButton message="Hello, world!" onError={(error) => console.error(error)} onSign={(signature) => console.log(signature)}/>
Self-contained message signing button with wallet verification.
Handles wallet connection status internally — shows a connect button if not connected, a switch chain button if on the wrong chain, or the sign button when ready.