Skip to main content

Overview

The Embedded Wallet Kit provides a simple way to sign messages and transactions in your React Native application using Turnkey’s Embedded Wallets.

Signing messages

To sign messages, use the signMessage function from the useTurnkey hook. First pick a wallet account from wallets (for example, the first wallet’s first account), then sign your message.

Signing transactions

To sign transactions, use the signTransaction function. Select a wallet account, prepare an unsigned transaction, and specify a transaction type (for example, TRANSACTION_TYPE_ETHEREUM).

Sign and send transactions

If you want Turnkey to submit the transaction on your behalf, use signAndSendTransaction. Provide an RPC URL if needed.