Overview
Turnkey’s Flutter SDK makes it simple to sign messages and transactions using embedded wallets managed by theTurnkeyProvider.
Signing messages
To sign a message, select a wallet account and callsignMessage from the TurnkeyProvider. You can optionally pass in the payload’s encoding and hashFunction if needed.
lib/widgets/sign_message_button.dart
Signing transactions
To sign transactions, use thesignTransaction function. Select a wallet account’s address, prepare an unsigned transaction, and specify a transaction type.
lib/widgets/sign_transaction_button.dart