Skip to main content

Overview

Turnkey’s Flutter SDK makes it simple to sign messages and transactions using embedded wallets managed by the TurnkeyProvider.

Signing messages

To sign a message, select a wallet account and call signMessage 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 the signTransaction function. Select a wallet account’s address, prepare an unsigned transaction, and specify a transaction type.
lib/widgets/sign_transaction_button.dart