Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@quicknode/sdk

Package Overview
Dependencies
Maintainers
4
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@quicknode/sdk - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

src/queries/nft/getNFTDetails/getNFTDetails.d.ts

2

package.json

@@ -9,3 +9,3 @@ {

"license": "MIT",
"version": "0.2.0",
"version": "0.3.0",
"main": "./src/index.js",

@@ -12,0 +12,0 @@ "module": "./src/index.esm.js",

@@ -132,2 +132,47 @@ ![npm](https://img.shields.io/npm/dm/@quicknode/sdk)

### nft.getNFTEventLogs
| 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= |
```ts
import { QuickNodeSDK } from '@quicknode/sdk';
const client = new QuickNodeSDK();
client.nft
.getNFTEventLogs({
address: '0x60E4d786628Fea6478F785A6d7e704777c86a7c6',
tokenId: '100',
types: ['TRANSFER', 'ORDER'],
})
.then((response) => console.log(response));
```
### nft.getNFTDetails
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 |
```ts
import { QuickNodeSDK } from '@quicknode/sdk';
const client = new QuickNodeSDK();
client.nft
.getNFTDetails({
contractAddress: '0x23581767a106ae21c074b2276D25e5C3e136a68b',
tokenId: '400',
})
.then((response) => console.log(response));
```
## Pagination

@@ -134,0 +179,0 @@

@@ -7,3 +7,5 @@ import { ApolloQueryResult } from '@apollo/client';

import { CollectionDetailsQueryVariables } from './getCollectionDetails/getCollectionDetails';
import { ContractNFTsQueryResponse, WalletNFTsQueryResponse, CollectionDetailsQueryResponse } from './sharedTypes';
import { EventLogsQueryVariables } from './getNFTEventLogs/getNFTEventLogs';
import { NFTDetailsQueryVariables } from './getNFTDetails/getNFTDetails';
import { ContractNFTsQueryResponse, WalletNFTsQueryResponse, CollectionDetailsQueryResponse, EventLogsQueryResponse, NFTDetailsQueryResponse } from './sharedTypes';
export declare class NFTQueries {

@@ -16,2 +18,4 @@ private client;

getCollectionDetails(variables: CollectionDetailsQueryVariables): Promise<ApolloQueryResult<CollectionDetailsQueryResponse>>;
getNFTEventLogs(variables: EventLogsQueryVariables): Promise<ApolloQueryResult<EventLogsQueryResponse>>;
getNFTDetails(variables: NFTDetailsQueryVariables): Promise<ApolloQueryResult<NFTDetailsQueryResponse>>;
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc