Installation
npm
yarn
pnpm
Requirements
- Node.js 18 or later
- TypeScript 5.0+ (optional but recommended)
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Install the ShadowFeed Agent SDK
npm install shadowfeed-agent
yarn add shadowfeed-agent
pnpm add shadowfeed-agent
| Package | Purpose |
|---|---|
axios | HTTP client for API requests |
x402-stacks | x402 payment protocol for Stacks blockchain |
import { ShadowFeed } from 'shadowfeed-agent';
const sf = new ShadowFeed({
privateKey: 'your-private-key-hex',
network: 'mainnet',
});
// Should log your SP... address
console.log(sf.address);
import type {
ShadowFeedConfig,
FeedId,
FeedInfo,
PurchaseResult,
ChainResult,
DiscoverOptions,
} from 'shadowfeed-agent';