Zky Toolkit
  • Welcome to Zky Toolkit
  • Getting Started
    • Quickstart
  • useZky Hook
  • useBitcoin Hook
    • Create And Sign PSBT
  • UseEvm Hook
  • Utils
  • Updating Zky Toolkit
  • Page
Powered by GitBook
On this page
  • 1. Obtain Your API Key
  • 2. Install Zky Toolkit
  • 3. Set Up Tailwind CSS
  • 4. Set Up Zky Toolkit as a Provider
  1. Getting Started

Quickstart

Follow these steps to set up Zky Toolkit and start using it in your project.

PreviousWelcome to Zky ToolkitNextuseZky Hook

Last updated 7 months ago

1. Obtain Your API Key

To use Zky Toolkit, you’ll need an API key. Head over to the to sign up or log in, and create a new project to get your API key.

Once you’re logged in:

  1. Go to the Dashboard.

  2. Select Create New Project.

  3. Copy your API key from the project details.

2. Install Zky Toolkit

In your project directory, install Zky Toolkit from npm:

npm install @kondor-finance/zky-toolkit

3. Set Up Tailwind CSS

If you haven’t already, install Tailwind CSS by following the . Once installed, configure Tailwind to include Zky Toolkit components by adding the following to your tailwind.config.js file:

import type { Config } from "tailwindcss";

const config: Config = {
  content: ['./node_modules/@kondor-finance/zky-toolkit/**/*.{html,js,ts,tsx,jsx}'],
};

export default config;

This configuration ensures that Tailwind processes the styles from Zky Toolkit components correctly.

4. Set Up Zky Toolkit as a Provider

Import Zky Toolkit into your application and wrap your root component with the ZkyProvider component. Pass your API key as a prop:

import { ZkyToolkitProvider, ConnectButton } from "@kondor-finance/zky-toolkit";

const apiKey = "YOUR_API_KEY_HERE";

export default function Home() {
  return (
    <ZkyToolkitProvider apiKey={apiKey}>
      <YourApp>
        <ConnectButton />
      </YourApp>
    </ZkyToolkitProvider>
  );
}

Now, with Zky Toolkit set up as a provider, you can start utilizing wallet functionalities within your app.

To use your Bitcoin Testnet account, go to your Xverse wallet > Settings > Network > Testnet

Zky Wallet Dashboard
official Tailwind CSS installation guide