> ## Documentation Index
> Fetch the complete documentation index at: https://docs.spaceport.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Quick Start

> Get started quickly with the Spaceport SDK.

A JavaScript/TypeScript SDK for licensing user-generated content. Streamlines digital asset licensing with smart license templates, automated agreement creation, and seamless
royalty management.

## Installation

```bash theme={null}
pnpm add @spaceport/sdk
# or
yarn add @spaceport/sdk
# or
npm install @spaceport/sdk
```

## Initialization

The SDK supports the same networks as Cultura SDK: `local`, `devnet`, and `testnet`. You can initialize the client using either the network name or chain ID:

```typescript theme={null}
import { SpaceportSDK, Network, createChainConfig } from "@spaceport/sdk";
import { privateKeyToAccount } from "viem/accounts";

// Initialize SDK for local development (read-only)
const client = SpaceportSDK.create({
  chain: Network.LOCAL, // or use chain ID: 31337
});

// Initialize with wallet for local development
const account = privateKeyToAccount(`0x${process.env.YOUR_PRIVATE_KEY}`);
const client = SpaceportSDK.createWithAccount(account, {
  chain: Network.LOCAL,
});

// Initialize with API key for backend service authentication
const client = SpaceportSDK.create({
  chain: Network.DEVNET,
  apiKey: process.env.SDK_API_KEY, // Load from environment variable
});

// Initialize for Cultura Devnet with API key from environment
const account = privateKeyToAccount(`0x${process.env.YOUR_PRIVATE_KEY}`);
const client = SpaceportSDK.createWithAccount(account, {
  chain: Network.DEVNET, // or use chain ID: 26156
  apiKey: process.env.SDK_API_KEY, // Add API key for authenticated requests
});
```

## Next Steps

For detailed examples and complete code, check out our workflow guides:

### Core Workflows

* [Creating Assets and Listings](https://docs.spaceport.xyz/sdk-reference/v0.1.0/guides/creating-assets-and-listings.md)
* [Signing License Agreements](https://docs.spaceport.xyz/sdk-reference/v0.1.0/guides/signing-license-agreements.md)
* [Product Creation](https://docs.spaceport.xyz/sdk-reference/v0.1.0/guides/product-creation.md)
* [Royalty Management](https://docs.spaceport.xyz/sdk-reference/v0.1.0/guides/royalty-management.md)

### Additional Guides

* [User Management](https://docs.spaceport.xyz/sdk-reference/v0.1.0/guides/user-management.md)
* [API Authentication](https://docs.spaceport.xyz/sdk-reference/v0.1.0/guides/api-authentication.md)
* [Job Monitoring](https://docs.spaceport.xyz/sdk-reference/v0.1.0/guides/job-monitoring.md)
* [Querying Data](https://docs.spaceport.xyz/sdk-reference/v0.1.0/guides/querying-data.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.