# @turnkey/core

> A core JavaScript web and React Native package for interfacing with Turnkey's infrastructure.

Latest version **2.15.0** (published 2026-11-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install @turnkey/core
pnpm add @turnkey/core
yarn add @turnkey/core
bun add @turnkey/core
```

## Health

**Score 75/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 2.15.0 |
| Published | 2026-11-20 |
| First published | 2025-08-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=18.0.0 |
| Dependencies | 15 |
| Unpacked size | 3.2 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 104 |
| Author | Turnkey |
| Maintainers | andrewtk, r-n-o, jack-kearney-tkhq |
| Keywords | turnkey |

## Links

- npm: https://www.npmjs.com/package/@turnkey/core
- Repository: https://github.com/tkhq/sdk
- Issues: https://github.com/tkhq/sdk/issues
- npm.io page: https://npm.io/package/@turnkey/core

## Dependencies (15)

- [uuid](https://npm.io/package/uuid.md) ^11.1.1
- [viem](https://npm.io/package/viem.md) 2.57.10
- [ethers](https://npm.io/package/ethers.md) ^6.10.0
- [jwt-decode](https://npm.io/package/jwt-decode.md) 4.0.0
- [cross-fetch](https://npm.io/package/cross-fetch.md) ^3.1.5
- [@turnkey/http](https://npm.io/package/@turnkey/http.md) 6.9.0
- [@turnkey/crypto](https://npm.io/package/@turnkey/crypto.md) 2.14.0
- [@turnkey/encoding](https://npm.io/package/@turnkey/encoding.md) 0.6.0
- [@turnkey/sdk-types](https://npm.io/package/@turnkey/sdk-types.md) 1.13.0
- [@wallet-standard/app](https://npm.io/package/@wallet-standard/app.md) ^1.1.0
- [@walletconnect/types](https://npm.io/package/@walletconnect/types.md) ^2.23.0
- [@wallet-standard/base](https://npm.io/package/@wallet-standard/base.md) ^1.1.0
- [@turnkey/api-key-stamper](https://npm.io/package/@turnkey/api-key-stamper.md) 0.6.20
- [@turnkey/webauthn-stamper](https://npm.io/package/@turnkey/webauthn-stamper.md) 0.6.0
- [@walletconnect/sign-client](https://npm.io/package/@walletconnect/sign-client.md) ^2.23.6

## Recent versions

- 2.15.0 (latest) — 2026-11-20
- 1.3.0 (beta) — 2025-09-30
- 2.14.1 — 2026-11-13
- 2.14.0 — 2026-11-02
- 2.13.2 — 2026-10-24
- 2.13.1 — 2026-10-19
- 2.13.0 — 2026-10-16
- 2.12.2 — 2026-10-08
- 2.12.1 — 2026-09-30
- 2.12.0 — 2026-09-22
- 2.11.0 — 2026-09-22
- 2.10.0 — 2026-09-15
- 2.9.0 — 2026-09-04
- 2.8.1 — 2026-08-31
- 2.8.0 — 2026-08-27
- … 39 more at https://npm.io/package/@turnkey/core/versions

## README

---
title: "Turnkey SDK"
---

# Turnkey SDK

[![js-build](https://github.com/tkhq/sdk/actions/workflows/js-build.yml/badge.svg)](https://github.com/tkhq/sdk/actions/workflows/js-build.yml)

## Overview

The Turnkey SDK includes functionality to interact with Turnkey in various contexts and ecosystems. It consists of three main NPM package groups.

- the [Primary Turnkey SDK Packages](#primary-turnkey-sdk-packages) which expose the main functionality required to build Turnkey-powered applications in different web and mobile environments
- the [Chain/Ecosystem-Specific Signing Packages](#chainecosystem-specific-signing-sdk-packages) which expose signers with support for specific ecosystems, built on top of our SDK packages
- the [Advanced Functionality SDK Packages](#advanced-functionality-sdk-packages) which exposes lower level functionality that is leveraged by our Primary SDK Packages for those with highly-specific implementations looking to use them.

The diagram below helps visualize the packages in our SDK organized by the functionality they expose.

<img src="./img/sdk-map.png" alt="homepage screenshot" width="1000px" />

## Primary Turnkey SDK Packages

The following packages expose the main functionality required to build Turnkey-powered applications. Each package exposes functions, and/or client classes with methods that manage the process of authenticating requests to the Turnkey API in the contexts of a generic browser environment or react client environment, or a server environment.

While these higher level packages are the main points of reference to be used while designing and building Turnkey applications, they wrap other packages with lower level functionality which we also expose separately for those who would like to explore them for more specialized use cases. These packages are listed and described below in the [Advanced Functionality SDK Packages](#advanced-functionality-sdk-packages) section.

Our main web SDK packages are as follows:

| Package                                                                                                    | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | NPM                                                                                                                                                     | Changelog                                                   | Docs                                                        |
| ---------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- |
| [@turnkey/react-wallet-kit](https://github.com/tkhq/sdk/tree/main/packages/react-wallet-kit)               | `@turnkey/react-wallet-kit` is the easiest way to integrate Turnkey’s Embedded Wallets into React applications. It works without requiring you to run your own backend, using Turnkey’s managed Auth Proxy, while still supporting backend-based architectures if needed. Built on @turnkey/core, it provides UI components and ergonomic hooks for quickly building secure embedded wallet experiences. This package supersedes `@turnkey/sdk-react`.                                                                                                                                                                                                                                                                                                                                 | [![npm](https://img.shields.io/npm/v/@turnkey/react-wallet-kit?color=%234C48FF)](https://www.npmjs.com/package/@turnkey/react-wallet-kit)               | [CHANGELOG](/packages/react-wallet-kit/CHANGELOG.md)        | [Docs](https://docs.turnkey.com/sdks/react)                 |
| [@turnkey/react-native-wallet-kit](https://github.com/tkhq/sdk/tree/main/packages/react-native-wallet-kit) | `@turnkey/react-native-wallet-kit` is the easiest way to integrate Turnkey’s Embedded Wallets into React Native applications. It works without requiring you to run your own backend, using Turnkey’s managed Auth Proxy, while still supporting backend-based architectures if needed. Built on @turnkey/core, it provides ergonomic hooks and utilities for quickly building secure embedded wallet experiences. This package supersedes `@turnkey/sdk-react-native`.                                                                                                                                                                                                                                                                                                                | [![npm](https://img.shields.io/npm/v/@turnkey/react-native-wallet-kit?color=%234C48FF)](https://www.npmjs.com/package/@turnkey/react-native-wallet-kit) | [CHANGELOG](/packages/react-native-wallet-kit/CHANGELOG.md) | [Docs](https://docs.turnkey.com/sdks/react-native/overview) |
| [@turnkey/core](/packages/core)                                                                            | `@turnkey/core` is a low-level TypeScript client SDK that provides the foundational building blocks used by Turnkey’s higher-level wallet kits. It includes primitives for interacting with Turnkey’s APIs, session management, stampers, and a raw HTTP client for advanced or custom integrations. This package is primarily intended for framework environments that do not yet have an official Turnkey wallet kit, such as Angular, Vue, or Svelte, or for advanced use cases that require direct access to Turnkey’s lower-level APIs. In most cases you shouldn’t use @turnkey/core directly, React and React Native apps should use the dedicated wallet kits instead. This package supersedes `@turnkey/sdk-browser`.                                                         | [![npm](https://img.shields.io/npm/v/@turnkey/http?color=%234C48FF)](https://www.npmjs.com/package/@turnkey/core)                                       | [CHANGELOG](/packages/core/CHANGELOG.md)                    | [Docs](https://docs.turnkey.com/sdks/typescript-frontend)   |
| [@turnkey/sdk-server](https://github.com/tkhq/sdk/tree/main/packages/sdk-server)                           | The `@turnkey/sdk-server` package exposes functionality that lets developers build server-side functionality for applications that interact with the Turnkey API with different types of authentication – allowing applications to authenticate users, manage sessions, and perform organizational operations securely and efficiently. It consists of an API Client and API Proxies that enable requests to the Turnkey API to be authenticated with the appropriate credentials. Specifically, the API Client manages requests signed by the user's authentication details, and the API proxies handle requests signed by the parent organization's authentication details. Use this package to handle server-side interactions for applications that interact with the Turnkey API. | [![npm](https://img.shields.io/npm/v/@turnkey/sdk-server?color=%234C48FF)](https://www.npmjs.com/package/@turnkey/sdk-server)                           | [CHANGELOG](/packages/sdk-server/CHANGELOG.md)              | [Docs](https://docs.turnkey.com/sdks/javascript-server)     |

The diagram below helps visualize how each package can be used to devlop the appropriate service in your Turnkey Powered Application, and how Turnkey requests would flow between those services.

<img src="./img/sdk-diagram.png" alt="homepage screenshot" width="1000px" />

## Chain/Ecosystem-Specific Signing SDK Packages

The following packages contain chain or ecosystem specific signers that take some of our [Primary Turnkey SDK Packages](#primary-turnkey-sdk-packages) and add additional support based on the signing process or transaction structure relevant to that specific chain or ecosystem.

| Package                                                     | NPM                                                                                                                                         | Description                                                                                       | Changelog                                             |
| ----------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ----------------------------------------------------- |
| [`@turnkey/ethers`](/packages/ethers)                       | [![npm](https://img.shields.io/npm/v/@turnkey/ethers?color=%234C48FF)](https://www.npmjs.com/package/@turnkey/ethers)                       | Turnkey Signer for Ethers                                                                         | [CHANGELOG](/packages/ethers/CHANGELOG.md)            |
| [`@turnkey/viem`](/packages/viem)                           | [![npm](https://img.shields.io/npm/v/@turnkey/viem?color=%234C48FF)](https://www.npmjs.com/package/@turnkey/viem)                           | Turnkey Signer for Viem                                                                           | [CHANGELOG](/packages/viem/CHANGELOG.md)              |
| [`@turnkey/cosmjs`](/packages/cosmjs)                       | [![npm](https://img.shields.io/npm/v/@turnkey/cosmjs?color=%234C48FF)](https://www.npmjs.com/package/@turnkey/cosmjs)                       | Turnkey Signer for CosmJS                                                                         | [CHANGELOG](/packages/cosmjs/CHANGELOG.md)            |
| [`@turnkey/solana`](/packages/solana)                       | [![npm](https://img.shields.io/npm/v/@turnkey/solana?color=%234C48FF)](https://www.npmjs.com/package/@turnkey/solana)                       | Turnkey Signer for Solana                                                                         | [CHANGELOG](/packages/solana/CHANGELOG.md)            |
| [`@turnkey/eip-1193-provider`](/packages/eip-1193-provider) | [![npm](https://img.shields.io/npm/v/@turnkey/eip-1193-provider?color=%234C48FF)](https://www.npmjs.com/package/@turnkey/eip-1193-provider) | Turnkey-compatible EIP-1193 Provider                                                              | [CHANGELOG](/packages/eip-1193-provider/CHANGELOG.md) |
| [`@turnkey/gas-station`](/packages/gas-station)             | [![npm](https://img.shields.io/npm/v/@turnkey/gas-station?color=%234C48FF)](https://www.npmjs.com/package/@turnkey/gas-station)             | Implement gasless transactions using EIP-7702, Turnkey wallet management, and your own paymaster. | [CHANGELOG](/packages/gas-station/CHANGELOG.md)       |

## Advanced Functionality SDK Packages

For those with more specialized use cases, Turnkey exposes it's lower level-libraries stamping and encryption libraries to be used directly. Note: for most use-cases, these libraries are not meant to be used directly and we encourage working on designing your application mainly using our [Primary Turnkey SDK Packages](#primary-turnkey-sdk-packages) along with our [Chain and Ecosystem Specific SDK Packages](#chainecosystem-specific-signing-sdk-packages) as per your use case!

### Request Stamping

| Package                                                                                 | NPM                                                                                                                                                                   | Description                                                                                             | Changelog                                                          | Docs                                                                                  |
| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------ | ------------------------------------------------------------------------------------- |
| [`@turnkey/http`](/packages/http)                                                       | [![npm](https://img.shields.io/npm/v/@turnkey/http?color=%234C48FF)](https://www.npmjs.com/package/@turnkey/http)                                                     | Lower-level, fully typed HTTP client for interacting with Turnkey API                                   | [CHANGELOG](/packages/http/CHANGELOG.md)                           | [Docs](https://docs.turnkey.com/sdks/advanced/turnkey-client)                         |
| [`@turnkey/api-key-stamper`](/packages/api-key-stamper)                                 | [![npm](https://img.shields.io/npm/v/@turnkey/api-key-stamper?color=%234C48FF)](https://www.npmjs.com/package/@turnkey/api-key-stamper)                               | Provide API key signatures over Turnkey requests                                                        | [CHANGELOG](/packages/api-key-stamper/CHANGELOG.md)                | [Docs](https://docs.turnkey.com/sdks/advanced/api-key-stamper)                        |
| [`@turnkey/iframe-stamper`](/packages/iframe-stamper)                                   | [![npm](https://img.shields.io/npm/v/@turnkey/iframe-stamper?color=%234C48FF)](https://www.npmjs.com/package/@turnkey/iframe-stamper)                                 | Provide API key signatures over Turnkey requests within iframe contexts                                 | [CHANGELOG](/packages/iframe-stamper/CHANGELOG.md)                 | [Docs](https://docs.turnkey.com/sdks/advanced/iframe-stamper)                         |
| [`@turnkey/webauthn-stamper`](/packages/webauthn-stamper)                               | [![npm](https://img.shields.io/npm/v/@turnkey/webauthn-stamper?color=%234C48FF)](https://www.npmjs.com/package/@turnkey/webauthn-stamper)                             | Provide Webauthn signatures over Turnkey requests                                                       | [CHANGELOG](/packages/webauthn-stamper/CHANGELOG.md)               | [Docs](https://docs.turnkey.com/sdks/advanced/webauthn-stamper)                       |
| [`@turnkey/wallet-stamper`](/packages/wallet-stamper)                                   | [![npm](https://img.shields.io/npm/v/@turnkey/wallet-stamper?color=%234C48FF)](https://www.npmjs.com/package/@turnkey/wallet-stamper)                                 | Provide wallet signatures over Turnkey requests                                                         | [CHANGELOG](/packages/wallet-stamper/CHANGELOG.md)                 | [Docs](https://docs.turnkey.com/sdks/advanced/wallet-stamper)                         |
| [`@turnkey/sdk-react-native-passkey-stamper`](/packages/react-native-passkey-stamper/)  | [![npm](https://img.shields.io/npm/v/@turnkey/react-native-passkey-stamper?color=%234C48FF)](https://www.npmjs.com/package/@turnkey/react-native-passkey-stamper)     | Provide Passkey signatures over Turnkey requests in a React Native context                              | [CHANGELOG](/packages/react-native-passkey-stamper/CHANGELOG.md)   | [Docs](https://docs.turnkey.com/sdks/react-native)                                    |
| [`@turnkey/indexed-db-stamper/`](/packages/indexed-db-stamper/)                         | [![npm](https://img.shields.io/npm/v/@turnkey/indexed-db-stamper?color=%234C48FF)](https://www.npmjs.com/package/@turnkey/indexed-db-stamper)                         | Enables secure request stamping using an unextractable P-256 keypair stored in the browser’s IndexedDB. | [CHANGELOG](/packages/indexed-db-stamper/CHANGELOG.md)             | [Docs](https://docs.turnkey.com/authentication/sessions#indexeddb-web-only-:)         |
| [`@turnkey/telegram-cloud-storage-stamper/`](/packages/telegram-cloud-storage-stamper/) | [![npm](https://img.shields.io/npm/v/@turnkey/telegram-cloud-storage-stamper?color=%234C48FF)](https://www.npmjs.com/package/@turnkey/telegram-cloud-storage-stamper) | Handles stamping a Turnkey request with an API key stored within Telegram Cloud Storage.                | [CHANGELOG](/packages/telegram-cloud-storage-stamper/CHANGELOG.md) | [Docs](https://github.com/tkhq/sdk/tree/main/packages/telegram-cloud-storage-stamper) |

### Utilities

| Package                                   | NPM                                                                                                                       | Description                                                       | Changelog                                    |
| ----------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------- | -------------------------------------------- |
| [`@turnkey/encoding`](/packages/encoding) | [![npm](https://img.shields.io/npm/v/@turnkey/encoding?color=%234C48FF)](https://www.npmjs.com/package/@turnkey/encoding) | Encoding and decoding utilities, primarily for internal usage     | [CHANGELOG](/packages/encoding/CHANGELOG.md) |
| [`@turnkey/crypto`](/packages/crypto)     | [![npm](https://img.shields.io/npm/v/@turnkey/crypto?color=%234C48FF)](https://www.npmjs.com/package/@turnkey/crypto)     | Cryptographic utilities for P256 keys, encryption, and decryption | [CHANGELOG](/packages/crypto/CHANGELOG.md)   |

## Code Examples

### Instant examples (powered by Stackblitz)

The following code examples have been loaded into Stackblitz web environments so you can test them out immediately

| Example                                                                          | Description                                                                                                                             | Stackblitz Link                                                                      |
| -------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------ |
| [`email-auth-local-storage`](/examples/authentication/email-auth-local-storage/) | A NextJS app demonstrating a complete email auth flow using a locally stored target embedded key                                        | [Test it out on Stackblitz!](https://stackblitz.com/edit/stackblitz-starters-pyyw59) |
| [`with-eth-passkeys-galore`](/examples/demos/with-eth-passkeys-galore/)          | A NextJS app powering users to create suborgs and sign messages via Viem or Ethers                                                      | [Test it out on Stackblitz!](https://stackblitz.com/edit/stackblitz-starters-2psu3g) |
| [`with-solana`](/examples/chain-integrations/with-solana/)                       | Create a new Solana address, then sign and broadcast a transaction on Solana's devnet                                                   | [Test it out on Stackblitz!](https://stackblitz.com/edit/stackblitz-starters-xeb93i) |
| [`with-solana-passkeys`](/examples/authentication/with-solana-passkeys/)         | A NextJS app powering users to create suborgs, sign messages, and create transactions sponsored by the parent org using @turnkey/solana | [Test it out on Stackblitz!](https://stackblitz.com/edit/stackblitz-starters-h5pmnu) |

### Transaction management, Swap, and Earn

Examples built on Turnkey's own transaction products: Turnkey signs, broadcasts, and (optionally) sponsors gas.

| Example                                                                                    | Description                                                                                                                                                       |
| ------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [`with-evm-paymaster`](/examples/transaction-management/with-evm-paymaster/)               | Send an ERC-20 token on EVM networks with Turnkey gas sponsorship                                                                                                 |
| [`with-solana-paymaster`](/examples/transaction-management/with-solana-paymaster/)         | Send an SPL token on Solana with Turnkey fee sponsorship                                                                                                          |
| [`with-swap`](/examples/defi/with-swap/)                                                   | Quote, execute, and track a swap with Turnkey Swap: same-chain and cross-chain EVM, Solana, and EVM ↔ Solana routes                                              |
| [`with-earn`](/examples/defi/with-earn/)                                                   | Deploy a Turnkey Earn vault wrapper, then deposit, track positions, and withdraw                                                                                  |
| [`with-earn-delegated`](/examples/defi/with-earn-delegated/)                               | A platform's delegated key, limited by policy, automatically swaps a customer's stablecoins (EVM and Solana) into the best Earn vault and returns them on request |
| [`atomic-batch-with-aave`](/examples/defi/atomic-batch-with-aave/)                         | Open and unwind a leveraged Aave v3 position in single atomic, sponsored, policy-checked transactions                                                             |
| [`eth-usdc-swap`](/examples/defi/eth-usdc-swap/)                                           | Swap ETH for USDC on Base through Uniswap's Universal Router, with optional Turnkey gas sponsorship                                                               |
| [`solana-usdc-swap`](/examples/defi/solana-usdc-swap/)                                     | Swap SOL to USDC through Jupiter using Turnkey Solana sponsorship with rent-safe token account handling                                                           |
| [`sweeper`](/examples/transaction-management/sweeper/)                                     | Sweep funds from one address to a different address                                                                                                               |
| [`solana-cctp-bridge`](/examples/transaction-management/solana-cctp-bridge/)               | Bridge USDC from Solana to Base through Circle CCTP using three Turnkey-managed Solana signers (owner, MessageSent event account, rent payer)                     |
| [`with-transaction-webhooks`](/examples/transaction-management/with-transaction-webhooks/) | A NextJS app that receives transaction status and balance updates through Turnkey webhooks                                                                        |
| [`with-nonce-manager`](/examples/transaction-management/with-nonce-manager/)               | Create a new Ethereum address, then sign and broadcast multiple transactions in a sequential or optimistic manner                                                 |
| [`tk-gas-station`](/examples/transaction-management/tk-gas-station/)                       | Gasless EIP-7702 transactions with `@turnkey/gas-station`, paid for by your own paymaster                                                                         |

### Third-party DeFi integrations

Direct integrations with external protocols and routers. For swaps and yield, [`with-swap`](/examples/defi/with-swap/) and [`with-earn`](/examples/defi/with-earn/) are the Turnkey-native paths.

| Example                                                            | Description                                                                                                                 |
| ------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------- |
| [`with-0x`](/examples/defi/with-0x/)                               | EVM swaps between ETH and USDC using 0x                                                                                     |
| [`with-lifi`](/examples/defi/with-lifi/)                           | EVM and Solana bridging between ETH and SOL using Li.Fi                                                                     |
| [`with-jupiter`](/examples/defi/with-jupiter/)                     | Solana token swaps using Jupiter Ultra Swap                                                                                 |
| [`with-uniswap`](/examples/defi/with-uniswap/)                     | Sign and broadcast a Uniswap v3 trade using the Ethers signer with Infura                                                   |
| [`trading-runner`](/examples/defi/trading-runner/)                 | A sample application demonstrating a trading operation, using various private keys, users, and policies, powered by Uniswap |
| [`with-aave`](/examples/defi/with-aave/)                           | Supply and withdraw USDC on Aave v3, with a policy scoping a non-root user to the Aave contracts                            |
| [`with-morpho`](/examples/defi/with-morpho/)                       | Deposit into and withdraw from a Morpho USDC vault                                                                          |
| [`with-breeze`](/examples/defi/with-breeze/)                       | Solana USDC staking and yield through Breeze                                                                                |
| [`with-vaultsfyi`](/examples/defi/with-vaultsfyi/)                 | Discover, deposit into, and withdraw from yield vaults across protocols with the vaults.fyi SDK                             |
| [`with-yield-xyz`](/examples/defi/with-yield-xyz/)                 | Discover yields, deposit USDC, and check balances in Yield.xyz vaults on Base                                               |
| [`with-walletconnect-pay`](/examples/defi/with-walletconnect-pay/) | A React Native app making gasless USDC payments with WalletConnect Pay                                                      |
| [`with-x402`](/examples/defi/with-x402/)                           | Pay for HTTP requests with Coinbase's x402 protocol from a Turnkey embedded wallet                                          |

### Other Code Examples

The below examples will require a local installation of `node.js`. Follow the specific instructions in the respective README's of each examples to run them!

| Example                                                                                            | Description                                                                                                                                                                              |
| -------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [`demo-consumer-wallet`](https://github.com/tkhq/demo-consumer-wallet)                             | A minimal consumer wallet app powered by Turnkey and WalletConnect                                                                                                                       |
| [`demo-passkey-wallet`](https://github.com/tkhq/demo-passkey-wallet)                               | A minimal consumer wallet app powered by Turnkey and passkeys                                                                                                                            |
| [`demo-ethers-passkeys`](https://github.com/tkhq/demo-ethers-passkeys)                             | A NextJS app that demonstrates how to use `@turnkey/ethers` to build a passkey-powered application                                                                                       |
| [`demo-viem-passkeys`](https://github.com/tkhq/demo-viem-passkeys)                                 | A NextJS app that demonstrates how to use `@turnkey/viem` to build a passkey-powered application                                                                                         |
| [`react-native-demo-wallet`](https://github.com/tkhq/react-native-demo-wallet)                     | A React Native app that demonstrates how to use the Turnkey's JavaScript packages in a mobile environment to authenticate users, create wallets, export wallets, sign messages, and more |
| [`flutter-demo-app`](https://github.com/tkhq/dart-sdk/tree/main/examples/flutter-demo-app)         | A Flutter app that demonstrates how to use the Turnkey's Flutter packages to authenticate users, create wallets, export wallets, sign messages, and more                                 |
| [`deployer`](/examples/advanced/deployer/)                                                         | Compile and deploy a smart contract                                                                                                                                                      |
| [`email-auth`](/examples/authentication/email-auth/)                                               | A NextJS app demonstrating a complete email auth flow using Turnkey iframes                                                                                                              |
| [`import-export-with-iframe-stamper`](/examples/key-management/import-export-with-iframe-stamper/) | A NextJS app demonstrating wallet import, export, and retrieval using iframes                                                                                                            |
| [`import-export-with-rwk`](/examples/key-management/import-export-with-rwk/)                       | A NextJS app demonstrating wallet and private key import and export using React Wallet Kit                                                                                               |
| [`wallet-export-sign`](/examples/key-management/wallet-export-sign/)                               | A NextJS app demonstrating wallet and wallet account export, and signing with the exported key                                                                                           |
| [`rebalancer`](/examples/transaction-management/rebalancer/)                                       | A demo application which showcases an example of how to use Turnkey for managing multiple types of keys & users                                                                          |
| [`with-ethers`](/examples/chain-integrations/with-ethers/)                                         | Create a new Ethereum address, then sign and broadcast a transaction using the Ethers signer with Infura                                                                                 |
| [`with-viem`](/examples/chain-integrations/with-viem/)                                             | Sign and broadcast a transaction using the Turnkey Custom Account and Infura                                                                                                             |
| [`with-cosmjs`](/examples/chain-integrations/with-cosmjs/)                                         | Create a new Cosmos address, then sign and broadcast a transaction on Celestia testnet using the CosmJS signer                                                                           |
| [`with-bitcoin`](/examples/chain-integrations/with-bitcoin/)                                       | Create a new wallet, derive a BTC address, create, sign, and broadcast a transaction using BitcoinJS and other external APIs                                                             |
| [`with-biconomy-aa`](/examples/account-abstraction/with-biconomy-aa/)                              | Create a new wallet, connect a Turnkey wallet client to Biconomy Nexus, and create, sign, and broadcast an EIP-1559 transaction                                                          |
| [`with-zerodev-aa`](/examples/account-abstraction/with-zerodev-aa/)                                | Create a new wallet, instantiate a Turnkey signer, create a ZeroDev kernel account and client, and broadcast a UserOp                                                                    |
| [`with-gnosis`](/examples/account-abstraction/with-gnosis/)                                        | Create new Ethereum addresses, configure a 3/3 Gnosis safe, and create + execute a transaction from it                                                                                   |
| [`with-offline`](/examples/advanced/with-offline/)                                                 | Sign a Turnkey request in offline context                                                                                                                                                |
| [`with-federated-passkeys`](/examples/authentication/with-federated-passkeys/)                     | A NextJS app that demonstrates how to use Turnkey to build a federated, webauthn powered authentication flow                                                                             |
| [`with-eip-1193-provider`](/examples/chain-integrations/with-eip-1193-provider/)                   | A NextJS app that demonstrates how to use Turnkey the `@turnkey/eip-1193-provider` in your app                                                                                           |
| [`with-wallet-stamper`](/examples/authentication/with-wallet-stamper/)                             | A NextJS app that demonstrates how to use Turnkey the `@turnkey/wallet-stamper` in your app                                                                                              |

## Demos built with Turnkey

### Demo Consumer Wallet ([code](https://github.com/tkhq/demo-consumer-wallet))

A minimal consumer wallet app powered by Turnkey. Behind the scenes, it uses [`@turnkey/ethers`](https://www.npmjs.com/package/@turnkey/ethers) for signing and WalletConnect (v1) for accessing dapps.

https://github.com/tkhq/demo-consumer-wallet/assets/127255904/2c3409df-2d7c-4ec3-9aa8-e2944a0b0e0a

See https://github.com/tkhq/demo-consumer-wallet for the code.

### Demo Passkey Wallet ([code](https://github.com/tkhq/demo-passkey-wallet), [live link](https://wallet.tx.xyz))

A wallet application showing how users can register and authenticate using passkeys.
This demo uses the Turnkey API to create a new [Turnkey Sub-Organization](https://docs.turnkey.com/concepts/sub-organizations) for each user, create a testnet Ethereum address and send a transaction on Sepolia (ETH testnet).

<img src="./img/demo-passkey-wallet.png" alt="homepage screenshot" width="800px" />

See https://wallet.tx.xyz (and https://github.com/tkhq/demo-passkey-wallet for the code).

### Demo Ethers Passkeys ([code](https://github.com/tkhq/demo-ethers-passkeys))

A simple application demonstrating how to create sub-organizations, create private keys, and sign with the [`@turnkey/ethers`](https://github.com/tkhq/sdk/tree/main/packages/ethers) signer, using passkeys.

<img src="./img/ethers-ui-screenshot.png" alt="homepage screenshot" width="800px" />

See https://github.com/tkhq/demo-ethers-passkeys for the code.

### Demo Viem Passkeys ([code](https://github.com/tkhq/demo-viem-passkeys))

A similar, simple application demonstrating how to create sub-organizations, create private keys, and sign with the [`@turnkey/viem`](https://github.com/tkhq/sdk/tree/main/packages/viem) signer, using passkeys.

<img src="./img/viem-ui-screenshot.png" alt="homepage screenshot" width="800px" />

See https://github.com/tkhq/demo-viem-passkeys for the code.

### React Native Demo App ([code](https://github.com/tkhq/react-native-demo-wallet))

A React Native app that demonstrates how to use the Turnkey's JavaScript packages in a mobile environment to authenticate users, create wallets, export wallets, sign messages, and more

https://github.com/user-attachments/assets/e4cff012-11e9-4636-b67a-5dbf75355832

See https://github.com/tkhq/react-native-demo-wallet for the code.

### Flutter Demo App ([code](https://github.com/tkhq/dart-sdk/tree/main/examples/flutter-demo-app))

A Flutter app that demonstrates how to use the Turnkey's Flutter packages to authenticate users, create wallets, export wallets, sign messages, and more

https://github.com/user-attachments/assets/3d583ed8-1eff-4101-ae43-3c76c655e635

See https://github.com/tkhq/dart-sdk/tree/main/examples/flutter-demo-app for the code

---
_Source: https://npm.io/package/@turnkey/core · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
