@quicknode/sdk
Advanced tools
Comparing version 0.2.0 to 0.3.0
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
669953
18
16308
220