@quicknode/sdk
Advanced tools
Comparing version 0.4.0 to 0.5.0
@@ -9,3 +9,3 @@ { | ||
"license": "MIT", | ||
"version": "0.4.0", | ||
"version": "0.5.0", | ||
"main": "./src/index.js", | ||
@@ -12,0 +12,0 @@ "module": "./src/index.esm.js", |
@@ -196,3 +196,2 @@ ![npm](https://img.shields.io/npm/dm/@quicknode/sdk) | ||
address: '0x60E4d786628Fea6478F785A6d7e704777c86a7c6', | ||
tokenId: '100', | ||
types: ['TRANSFER', 'ORDER'], | ||
@@ -203,2 +202,29 @@ }) | ||
### nft.getNFTsByWalletAndContracts | ||
Gets NFTs from specified collections held by a wallet | ||
| Argument | Values | Optional | Description | Example | | ||
| --------- | ---------------- | -------- | ------------------------------- | ---------------------------------------------- | | ||
| address | string | ❌ | Wallet address | 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 | | ||
| contracts | array of strings | ❌ | NFT contract addresses | ['0xba30e5f9bb24caa003e9f2f0497ad287fdf95623'] | | ||
| 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 | ||
.getNFTsByWalletAndContracts({ | ||
address: '0x13928eb9a86c8278a45b6ff2935c7730b58ac675', | ||
contracts: [ | ||
'0xba30e5f9bb24caa003e9f2f0497ad287fdf95623', | ||
'0xbce3781ae7ca1a5e050bd9c4c77369867ebc307e', | ||
], | ||
}) | ||
.then((response) => console.log(response)); | ||
``` | ||
## Pagination | ||
@@ -205,0 +231,0 @@ |
@@ -10,2 +10,3 @@ import { ApolloQueryResult } from '@apollo/client'; | ||
import { ContractEventLogQueryVariables } from './getContractEventLogs/getContractEventLogs'; | ||
import { NFTWalletAndContractQueryVariables } from './getNFTsByWalletAndContracts/getNFTsByWalletAndContracts'; | ||
import { ContractNFTsQueryResponse, WalletNFTsQueryResponse, CollectionDetailsQueryResponse, EventLogsQueryResponse, NFTDetailsQueryResponse, ContractEventLogsQueryResponse } from './sharedTypes'; | ||
@@ -22,2 +23,3 @@ export declare class NFTQueries { | ||
getContractEventLogs(variables: ContractEventLogQueryVariables): Promise<ApolloQueryResult<ContractEventLogsQueryResponse>>; | ||
getNFTsByWalletAndContracts(variables: NFTWalletAndContractQueryVariables): Promise<ApolloQueryResult<WalletNFTsQueryResponse>>; | ||
} |
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
678778
20
16518
270