@turnkey/sdk-browser
A SDK client with browser-specific abstractions for interacting with Turnkey API. Also includes @turnkey/http, a lower-level, fully typed HTTP client.
Turnkey API documentation lives here: https://docs.turnkey.com.
Getting started
$ npm install @turnkey/sdk-browser
import {
TurnkeyBrowserSDK,
TurnkeySDKBrowserConfig,
TurnkeySDKBrowserClient,
} from "@turnkey/sdk-browser";
import turnkeyConfig from "./turnkey.json";
const turnkeyClient = new TurnkeyBrowserSDK(turnkeyConfig);
const response = await turnkeyClient?.passkeySign.login();
Helpers
@turnkey/sdk-browser
provides TurnkeySDKBrowserClient
, which offers wrappers around commonly used Turnkey activities, such as creating new wallets and wallet accounts.
// TODO:
// - explain subtypes within sdk-client.ts
// - point to demo wallet