Skip to content

internet-court/internet-court-skill / vendored/quicknode/quicknode-skill

quicknode-skill

Verified

Quicknode blockchain infrastructure for 80+ chains: Core RPC API, Streams, Webhooks, Blazar WSS, Solana gRPC, HyperCore gRPC, SQL Explorer, Metaplex DAS API, Blockbook, Ordinals & Runes API, Swap API, x402, MPP, Agent Subscriptions, CLI, and MCP. Use for any Quicknode product, blockchain data access, or wallet-paid agent access.

references/kv-reference.md

View on GitHub
# Key-Value Store Reference (Beta)

Quicknode KV Store is a serverless storage service for lists and key-value sets. It is primarily used from inside Streams filter functions via the `qnLib` helper library but is also accessible via REST API and the `qn kv` CLI commands.

**Docs:** https://www.quicknode.com/docs/key-value-store

## Access Methods

| Method | When to Use |
|--------|-------------|
| `qnLib` (inside Streams) | Read/write KV from a Streams filter function |
| REST API | Read/write KV from any external application |
| CLI (`qn kv`) | Inspect and manage KV from the terminal |

## qnLib — Stream Integration

`qnLib` is available inside Streams filter functions without any import. All calls are asynchronous and should be awaited from an `async function main(...)` filter.

### List Operations

Manage ordered lists of string items (e.g., a watchlist of wallet addresses).

```javascript
// Create or overwrite a list
await qnLib.qnUpsertList('my-watchlist', {
  add_items: ['0xAddr1', '0xAddr2'],
});

// Add a single item
await qnLib.qnAddListItem('my-watchlist', '0xAddr3');

// Remove a single item
await qnLib.qnRemoveListItem('my-watchlist', '0xAddr1');

// Check membership (returns array of booleans, one per address)
const results = await qnLib.qnContainsListItems('my-watchlist', ['0xAddr2', '0xAddr3']);
// results → [true, true]

// Delete the entire list
await qnLib.qnDeleteList('my-watchlist');
```

### Set Operations

Manage key-value pairs (string keys, string values).

```javascript
// Create a key-value set entry
await qnLib.qnAddSet('threshold', '500000');

// Read a value by key
const threshold = await qnLib.qnGetSet('threshold');
// threshold → "500000"

// Bulk create or update multiple pairs
await qnLib.qnBulkSets({
  add_sets: {
    threshold: '500000',
    alertEmail: 'ops@example.com',
  },
  delete_sets: [],
});

// List all set keys
const setKeys = await qnLib.qnListAllSets();

// Delete a single set entry
await qnLib.qnDeleteSet('threshold');
```

## REST API

All REST requests use `https://api.quicknode.com/kv/rest/v1/` and authenticate via the `x-api-key` header.

### Read a value

```typescript
const response = await fetch(
  'https://api.quicknode.com/kv/rest/v1/sets/threshold',
  { headers: { 'x-api-key': process.env.QUICKNODE_API_KEY! } }
);
const { value } = await response.json();
```

### Write a value

```typescript
const response = await fetch('https://api.quicknode.com/kv/rest/v1/sets', {
  method: 'POST',
  headers: {
    'x-api-key': process.env.QUICKNODE_API_KEY!,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    key: 'threshold',
    value: '750000',
  }),
});
```

### List all set keys

```typescript
const response = await fetch(
  'https://api.quicknode.com/kv/rest/v1/sets',
  { headers: { 'x-api-key': process.env.QUICKNODE_API_KEY! } }
);
const { keys } = await response.json();
```

### List operations

```typescript
// Create a list
await fetch('https://api.quicknode.com/kv/rest/v1/lists', {
  method: 'POST',
  headers: {
    'x-api-key': process.env.QUICKNODE_API_KEY!,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    key: 'allowlist',
    items: ['0xabc', '0xdef'],
  }),
});

// Check one item from outside a Stream filter
const response = await fetch(
  'https://api.quicknode.com/kv/rest/v1/lists/allowlist/contains/0xabc',
  { headers: { 'x-api-key': process.env.QUICKNODE_API_KEY! } }
);
const { contains } = await response.json();
```

## CLI — `qn kv`

```bash
# Get a value
qn kv set get threshold

# Set a value
qn kv set put threshold 750000

# List all set keys
qn kv set ls

# Delete a key
qn kv set delete threshold

# Manage lists
qn kv list create allowlist 0xabc 0xdef
qn kv list append allowlist 0x123
qn kv list contains allowlist 0xabc
qn kv list get allowlist
qn kv list delete allowlist
```

## Limits

| Limit | Value |
|-------|-------|
| Max value size | 64 KB |
| Max list size | 10,000 items |
| Max key length | 256 bytes |

Limits are subject to change — check https://www.quicknode.com/docs/key-value-store for current values.

## Documentation

- **Key-Value Store Docs**: https://www.quicknode.com/docs/key-value-store
- **Quicknode CLI**: https://www.quicknode.com/docs/quicknode-cli
- **Streams Integration**: https://www.quicknode.com/docs/streams
writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deploymentStars: 322kUpdated Claude CodeCodexVerifiedInstall
xlsxanthropics/skillsUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
shipping-and-launchaddyosmani/agent-skillsPrepares production launches. Use when preparing to deploy to production, or when asking what needs to be in place before shipping. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy.Stars: 119kUpdated Claude CodeCodexVerifiedInstall
childhoodthedotmack/claude-memBabysit a shipped release after merge, publication, or deployment. Verify published packages, production behavior, installed plugins, and late CI or user reports until the observation window is clean; use babysit for PR readiness before release.Stars: 118kUpdated Claude CodeCodexVerifiedInstall