メインコンテンツへスキップ

SDK

更新日:
Jul 14, 2026

概要

The SDK is a single SDK for working with Quicknode product APIs from the language you already use: Rust, Python, Node.js, and Ruby.

Use it to build Quicknode product workflows, operational services, scripts, and AI agents that need typed access to:


  • Admin API: Manage endpoints, usage, billing, teams, endpoint security, rate limits, logs, metrics, and account tags.
  • RPC: Make on-chain JSON-RPC calls to any supported network without provisioning an endpoint.
  • Streams: Create, update, pause, activate, test, and delete Streams.
  • Webhooks: Create and manage webhook subscriptions from Quicknode webhook templates.
  • Key-Value Store: Store and retrieve sets and lists for application state, stream filters, watchlists, cursors, and agent memory.
  • SQL Explorer: インデックス化されたブロックチェーンデータに対してSQLクエリを実行し、テーブルのスキーマを取得します。

When to use the SDK

Use the SDK when you want one consistent client for Quicknode product APIs, especially when your app or agent needs to coordinate multiple products in one workflow.

一般的なワークフローには、次のようなものがあります:


  • Create or manage endpoints with the Admin API.
  • Make on-chain JSON-RPC calls to any supported network.
  • ストリームを作成し、フィルタリング済みのオンチェーンデータをWebhookの宛先に配信します。
  • 処理状態やウォッチリストをキーバリューストアに保存する。
  • Create webhooks from templates and manage their lifecycle.
  • SQL Explorer を使用して、インデックス化されたブロックチェーンデータに対して SQL クエリを実行します。
  • Build agent workflows that can inspect account state, provision resources, and clean up test infrastructure.

パッケージ

言語パッケージインストール
Node.js / TypeScript@quicknode/sdknpm install @quicknode/sdk
Pythonquicknode-sdkpip install quicknode-sdk
Rustquicknode-sdkcargo add quicknode-sdk --features rust
ルビーquicknode_sdkgem install quicknode_sdk

プラットフォームの対応状況

The SDK is built around a shared Rust core with bindings for specific languages. The core compiles to native libraries for each supported platform, giving you predictable performance and a small dependency footprint. The trade-off is that we publish binaries for a specific set of targets rather than running in every environment our host languages support.

対応対象

プリコンパイル済みのネイティブモジュールは、以下のプラットフォーム向けに公開されています:

プラットフォーム目標
Linux (glibc)glibc 2.17 以降上の x86_64、aarch64 (manylinux2014)
Linux (musl)Alpine およびその他の musl ディストリビューションにおける x86_64、aarch64
macOSApple Silicon (arm64)

Linuxのglibcバイナリはglibc 2.17に基づいてビルドされているため、2014年以降にリリースされたあらゆるディストリビューション(RHEL 7以降、Ubuntu 14.04以降、Debian 8以降、Amazon Linux 2以降、SLES 12以降、Fedora 19以降など)で動作します。

対応していません


  • Browsers: The SDK is not browser-compatible. It uses a Rust core through native bindings, which require Node.js or another runtime that supports native add-ons. Standard browser bundles cannot load these bindings.
  • Windows:プリコンパイル済みのバイナリは公開されていません。WSL2は正常に動作しており、Windows開発者にはこちらを推奨します。
  • Intel版 macOS:Apple Silicon のみ対応。
  • 古いLinuxディストリビューション:glibcの最低要件を下回るもの:RHEL/CentOS 6(glibc 2.12)、Debian 7(glibc 2.13)、Ubuntu 12.04(glibc 2.15)、SLES 11(glibc 2.11)。

On an unsupported platform, importing the SDK fails fast at load time with an error listing the available targets. The failure surfaces at install or import, not at first call.

製品クライアント

Construct the SDK once, then use the product clients exposed from that shared configuration.

クライアント目的REST API
adminエンドポイント、チーム、利用状況、ログ、課金、メトリクス、セキュリティ、レート制限https://api.quicknode.com/v0/
rpcOn-chain JSON-RPC calls to any supported network via Tooling AccessAccount Tooling Access endpoint
streamsStreams creation, updates, lifecycle, and filter testinghttps://api.quicknode.com/streams/rest/v1/
webhooksWebhookのテンプレート、送信先、ライフサイクル、およびカウントhttps://api.quicknode.com/webhooks/rest/v1/
kvstore永続化された状態のためのセットとリストhttps://api.quicknode.com/kv/rest/v1/
sqlインデックス化されたブロックチェーンデータに対するSQLクエリhttps://api.quicknode.com/sql/rest/v1/

The SDK entry point is QuicknodeSdk 各言語のバインディングにおいて。Rubyではこれを QuicknodeSdk::SDK.

SQL Explorer のメソッド

その sql クライアントは2つのメソッドを提供しています:

  • query(sql, clusterId): インデックスが設定されたブロックチェーンデータに対してSQLクエリを実行します。型指定された行とクエリの統計情報(クレジット、スキャンされた行数、読み込まれたバイト数)を返します。
  • getSchema(clusterId): クラスタのテーブルスキーマを取得します。
const qn = new QuicknodeSdk();

// Run a SQL query
const resp = await qn.sql.query(
"SELECT action_type, user FROM hyperliquid_system_actions LIMIT 3",
"hyperliquid-core-mainnet"
);
console.log(`${resp.rows} rows, ${resp.credits} credits`);

// Get the schema for a cluster
const schema = await qn.sql.getSchema("hyperliquid-core-mainnet");

認証

でAPIキーを作成します。 Quicknode dashboard, then configure the SDK with the QN_SDK__API_KEY 環境変数。

エクスポート QN_SDK__API_KEY="YOUR_API_KEY"

The SDK also supports base URL overrides for local development, staging, and agent sandboxes:

環境変数デフォルト
QN_SDK__ADMIN__BASE_URLhttps://api.quicknode.com/v0/
QN_SDK__STREAMS__BASE_URLhttps://api.quicknode.com/streams/rest/v1/
QN_SDK__WEBHOOKS__BASE_URLhttps://api.quicknode.com/webhooks/rest/v1/
QN_SDK__KVSTORE__BASE_URLhttps://api.quicknode.com/kv/rest/v1/
QN_SDK__SQL__BASE_URLhttps://api.quicknode.com/sql/rest/v1/
QN_SDK__HTTP__TIMEOUT_SECS30

For agents

The SDK is designed to be useful for humans and agents. Agents can initialize one SDK handle, reuse the same credentials across product clients, and rely on typed method inputs and responses instead of composing raw REST calls for each workflow.

今後の手順


皆様からのフィードバックを心よりお待ちしております❤️

Share feedback on missing methods, naming, examples, and agent workflows so we can keep improving the SDK.

このドキュメントを共有する