Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@quicknode/sdk
Advanced tools
![npm](https://img.shields.io/npm/dm/@quicknode/sdk) ![npm](https://img.shields.io/npm/v/@quicknode/sdk?color=g) ![Maintenance](https://img.shields.io/maintenance/yes/2022?color=g) ![NPM](https://img.shields.io/npm/l/@quicknode/sdk?color=g) ![GitHub issue
Currently has support for getting started with Icy Tools GraphQL API in a blink!
import { QuickNodeSDK } from '@quicknode/sdk';
const client = new QuickNodeSDK();
client.nft
.getNFTsByWalletENS({
ensName: 'vitalik.eth',
first: 5,
})
.then((response) => console.log(response));
Full example implementation here
:warning: This client (and the underlying API) can be used without an icyApiKey, but its usage will be heavily rate limited, intended for trial and development purposes only.
import { QuickNodeSDK } from '@quicknode/sdk';
const client = new QuickNodeSDK({
icyApiKey: 'my-api-key', // which is obtained by signing up on https://developers.icy.tools/
});
Property | Values | Example |
---|---|---|
icyApiKey | string | 1c1t00ls-4p10-k3y0-lu21-43405e3310 |
Argument | Values | Optional | Description | Example |
---|---|---|---|---|
ensName | string | ❌ | Wallet ENS address | vitalik.eth |
first | number | ✅ | Number of results to return | 10 |
after | string | ✅ | Return results after end cursor | YXJyYXljb25uZWN0aW9uOjUwNQ= |
import { QuickNodeSDK } from '@quicknode/sdk';
const client = new QuickNodeSDK();
client.nft
.getNFTsByWalletENS({
ensName: 'vitalik.eth',
first: 5,
})
.then((response) => console.log(response));
Argument | Values | Optional | Description | Example |
---|---|---|---|---|
address | string | ❌ | Wallet address | 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 |
first | number | ✅ | Number of results to return | 10 |
after | string | ✅ | Return results after end cursor | YXJyYXljb25uZWN0aW9uOjUwNQ= |
import { QuickNodeSDK } from '@quicknode/sdk';
const client = new QuickNodeSDK();
client.nft
.getNFTsByWalletAddress({
address: '0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045',
first: 5,
})
.then((response) => console.log(response));
Argument | Values | Optional | Description | Example |
---|---|---|---|---|
address | string | ❌ | Contract address of NFT | 0x2106C00Ac7dA0A3430aE667879139E832307AeAa |
first | number | ✅ | Number of results to return | 10 |
after | string | ✅ | Return results after end cursor | YXJyYXljb25uZWN0aW9uOjUwNQ= |
import { QuickNodeSDK } from '@quicknode/sdk';
const client = new QuickNodeSDK();
client.nft
.getNFTsByContractAddress({
address: '0x2106C00Ac7dA0A3430aE667879139E832307AeAa',
first: 5,
})
.then((response) => console.log(response));
Argument | Values | Optional | Description | Example |
---|---|---|---|---|
address | string | ❌ | Contract address of NFT | 0x2106C00Ac7dA0A3430aE667879139E832307AeAa |
import { QuickNodeSDK } from '@quicknode/sdk';
const client = new QuickNodeSDK();
client.nft
.getCollectionDetails({
address: '0x2106C00Ac7dA0A3430aE667879139E832307AeAa',
})
.then((response) => console.log(response));
Argument | Values | Optional | Description | Example |
---|---|---|---|---|
address | string | ❌ | Contract address of NFT | 0x2106C00Ac7dA0A3430aE667879139E832307AeAa |
tokenId | string | ❌ | NFT ID | 100 |
types | array | ✅ | An array of event types 'TRANSFER', 'ORDER', and/or 'MINT'. Defaults to all types | ['TRANSFER', 'ORDER', 'MINT] |
first | number | ✅ | Number of results to return | 10 |
after | string | ✅ | Return results after end cursor | YXJyYXljb25uZWN0aW9uOjUwNQ= |
import { QuickNodeSDK } from '@quicknode/sdk';
const client = new QuickNodeSDK();
client.nft
.getNFTEventLogs({
address: '0x60E4d786628Fea6478F785A6d7e704777c86a7c6',
tokenId: '100',
types: ['TRANSFER', 'ORDER'],
})
.then((response) => console.log(response));
Returns the details for a single NFT
Argument | Values | Optional | Description | Example |
---|---|---|---|---|
contractAddress | string | ❌ | Contract address of NFT Collection | 0x2106C00Ac7dA0A3430aE667879139E832307AeAa |
tokenId | string | ❌ | NFT ID | 5020 |
import { QuickNodeSDK } from '@quicknode/sdk';
const client = new QuickNodeSDK();
client.nft
.getNFTDetails({
contractAddress: '0x23581767a106ae21c074b2276D25e5C3e136a68b',
tokenId: '400',
})
.then((response) => console.log(response));
Returns the log events for a NFT contract
Argument | Values | Optional | Description | Example |
---|---|---|---|---|
address | string | ❌ | Contract address of NFT | 0x2106C00Ac7dA0A3430aE667879139E832307AeAa |
types | array | ✅ | An array of event types 'TRANSFER', 'ORDER', and/or 'MINT'. Defaults to all types | ['TRANSFER', 'ORDER', 'MINT] |
first | number | ✅ | Number of results to return | 10 |
after | string | ✅ | Return results after end cursor | YXJyYXljb25uZWN0aW9uOjUwNQ= |
import { QuickNodeSDK } from '@quicknode/sdk';
const client = new QuickNodeSDK();
client.nft
.getContractEventLogs({
address: '0x60E4d786628Fea6478F785A6d7e704777c86a7c6',
tokenId: '100',
types: ['TRANSFER', 'ORDER'],
})
.then((response) => console.log(response));
For functions that support pagination, use the first
property to specify the amount of results to return.
The returned data.tokensPageInfo.endCursor
property in the response can be used to access subsequent results. This value can be passed in to the after
property and will return the results after that endCursor
.
hasNextPage
can be used to determine the end of the results, where it will be false
.
For example, if a response contains:
"data": {
"tokensPageInfo": {
"hasNextPage": true,
"endCursor": 'YXJyYXljb25uZWN0aW9uOlk='
}
}
calling the following will get the next page of results
client.nft.getNFTsByWalletENS({
ensName: 'vitalik.eth',
first: 5,
after: 'YXJyYXljb25uZWN0aW9uOlk=', // from data.tokensPageInfo.endCursor in response
});
Run nx build libs-api-sdk
to build the library.
Run nx test libs-api-sdk
to execute the unit tests via Jest.
Run nx lint libs-api-sdk
to execute the lint via ESLint.
FAQs
A SDK from [QuickNode](https://www.quicknode.com/) making it easy for developers to interact with QuickNode's services.
The npm package @quicknode/sdk receives a total of 648 weekly downloads. As such, @quicknode/sdk popularity was classified as not popular.
We found that @quicknode/sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 27 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.