Coins SDK
Getting started
The Coins SDK is a library that allows you to create, manage, and query data for Zora coins.
Most features available on the Zora product on web and native mobile apps are available in the SDK and API.
Installation
This SDK is designed to work with both client and server environments running both js and typescript.
The SDK can be installed from NPM by running:
npm install @zoralabs/coins-sdkAdditionally, the SDK requires viem to be installed as a peer dependency:
npm install viemOn-chain write operations will not work without viem installed.
Usage
The SDK integrates with fetch and viem for on-chain interactions and writes.
It can be used on both client and server environments.
API Key
The Coins SDK should be used with an API key to prevent rate limiting and unlock all features.
The API key can be set using the setApiKey function:
import { setApiKey } from "@zoralabs/coins-sdk";
// Set up your API key before making any SDK requests
setApiKey("your-api-key-here");To obtain an API key:
- Log in or create an account on Zora
- Navigate to Developer Settings
- Create an API key
For REST API usage from other programming languages, see the Public REST API documentation.
