A SDK from QuickNode making it easy for developers to interact with QuickNode's services.
QuickNode's SDK is a JavaScript and TypeScript framework-agnostic library that supports both CommonJS and ES module systems.
❔ We want to hear from you! Please take a few minutes to fill out our QuickNode SDK feedback form and let us know what you currently think about the SDK. This helps us further improve the SDK.
- Requires Node.js v16 or higher
-
npm install @quicknode/sdk
oryarn add @quicknode/sdk
import Core from '@quicknode/sdk/core';
const core = new Core({ endpointUrl: 'replaceme' });
const blockNumber = core.client.getBlockNumber().then((response) => console.log(response));
Full example app implementation here
Please see the official QuickNode SDK documentation for the full documentation of SDK functions.
Please submit any issues or feature requests as an issue in Github.
We recommend using the example application to develop
- In
qn-oss
monorepo root directory, runyarn install
- cd
packages/apps/examples/sdk-api
fromqn-oss
monorepo root -
cp .env.example .env
and add api key nx serve apps-examples-sdk-api
- Then you can send requests to the API, for example:
curl http://localhost:3333/api/nftsByAddress/0xbc08dadccc79c00587d7e6a75bb68ff5fd30f9e0
Run nx test libs-sdk
to execute the tests via Jest.
API responses are recorded using polly.js. You can re-record live requests by passing in an API key, copy .env.test.example
to .env.test
and fill out with your API key.
Run nx lint libs-sdk
to execute the lint via ESLint.