Skillz Market SDK
Getting Started

Installation

Install the Skillz Market SDK in your project.

Installation

Requirements

  • Node.js >= 18.0.0
  • pnpm >= 8.0.0 (recommended) or npm

Install the SDK

The SDK requires viem as a peer dependency for wallet operations.

# Using pnpm (recommended)
pnpm add @skillzmarket/sdk viem
 
# Using npm
npm install @skillzmarket/sdk viem

TypeScript Support

The SDK is written in TypeScript and includes type definitions. No additional @types packages are needed.

// Types are automatically available
import type { Skill, SkillOptions } from '@skillzmarket/sdk';

Package Exports

The SDK provides two entry points:

// Consumer API - for calling paid skills
import { SkillzMarket } from '@skillzmarket/sdk';
 
// Creator API - for creating monetized skills
import { skill, serve, init, checkConfig } from '@skillzmarket/sdk/creator';

Creator Setup

For creators, run the interactive setup wizard:

npx @skillzmarket/sdk init

This will guide you through:

  1. Getting an API key from skillz.market/dashboard
  2. Configuring your wallet address for receiving payments
  3. Saving to .env

Or manually set environment variables:

# API key for registration
export SKILLZ_API_KEY=sk_...
 
# Wallet address for receiving payments
export SKILLZ_WALLET_ADDRESS=0x...

Consumer Setup

For consumers, you'll pass your wallet private key to the SDK constructor (see Quick Start).

Next Steps

On this page