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

nftscan-api

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nftscan-api - npm Package Compare versions

Comparing version 1.10.0 to 1.11.0

11

dist/src/api/evm/statistic/index.d.ts
import { QueryCollectionRankingParams, QueryMarketplaceRankingParams, QueryTradeRankingParams, QueryTradeWalletRankingParams, QueryWalletRankingParams } from '../../../types/evm/statistic/request-params';
import { AccountHoldingDistributionResponse, CollectionBlueChipListResponse, CollectionHoldingDistributionResponse, CollectionOverviewResponse, QueryAccountOverviewResponse, QueryBlueChipStatisticsResponse, QueryCollectionRankingResponse, QueryCollectionStatisticsResponse, QueryCollectionTopHolderResponse, QueryCollectionTradeResponse, QueryCollectionTrendingResponse, QueryGasRankingResponse, QueryMarketCapRankingResponse, QueryMarketplaceRankingResponse, QueryMintAmountResponse, QueryMintRankingResponse, QueryTradeRankingResponse, QueryTradersRankingResponse, TradeWalletRankingResponse, WalletRankingResponse } from '../../../types/evm/statistic/response-data';
import { AccountHoldingDistributionResponse, AccountHoldingTrendingResponse, CollectionBlueChipListResponse, CollectionHoldingDistributionResponse, CollectionOverviewResponse, QueryAccountOverviewResponse, QueryBlueChipStatisticsResponse, QueryCollectionRankingResponse, QueryCollectionStatisticsResponse, QueryCollectionTopHolderResponse, QueryCollectionTradeResponse, QueryCollectionTrendingResponse, QueryGasRankingResponse, QueryMarketCapRankingResponse, QueryMarketplaceRankingResponse, QueryMintAmountResponse, QueryMintRankingResponse, QueryTradeRankingResponse, QueryTradersRankingResponse, TradeWalletRankingResponse, WalletRankingResponse } from '../../../types/evm/statistic/response-data';
import { NftscanConfig, RangeType, SortDirection, TradeType } from '../../../types/nftscan-type';

@@ -182,2 +182,11 @@ import BaseApi from '../../base-api';

getAccountHoldingDistribution(accountAddress: string, distributionType?: 'volume' | 'amount'): Promise<AccountHoldingDistributionResponse>;
/**
* Account Holding NFT Trending
* - This endpoint returns NFT holding amount(or volume) statistics for an account address referring to NFTScan Portfolio({@link https://portfolio.nftscan.com/account/0xca1257ade6f4fa6c6834fdc42e030be6c0f5a813}).
* - details: {@link https://docs.nftscan.com/reference/evm/account-holding-nft-trending}
* @param accountAddress The account address
* @param trendingType Can be volume or amount
* @returns Promise<{@link AccountHoldingTrendingResponse}>
*/
getAccountHoldingTrending(accountAddress: string, trendingType?: 'volume' | 'amount'): Promise<AccountHoldingTrendingResponse>;
}

@@ -115,2 +115,6 @@ interface AttributesValues {

/**
* The slug of the collection on opensea
*/
opensea_slug: string;
/**
* Whether the collection is verified on OpenSea

@@ -117,0 +121,0 @@ */

@@ -895,2 +895,15 @@ interface Price7d {

}
/**
* The response data of EVM API 'getAccountHoldingTrending'
*/
export interface AccountHoldingTrendingResponse {
/**
* The timestamp held
*/
timestamp: number;
/**
* The quantity(or volume) held
*/
value: number;
}
export {};

4

dist/src/types/nftscan-type.d.ts

@@ -18,3 +18,5 @@ /**

FANTOM = "fantom",
GNOSIS = "gnosis"
GNOSIS = "gnosis",
VICTION = "viction",
STARKNET = "starknet"
}

@@ -21,0 +23,0 @@ /**

@@ -43,2 +43,6 @@ interface AttributesValues {

/**
* The token address for the collection
*/
collection_token_address: string;
/**
* The first block number for the occurrence of the collection

@@ -45,0 +49,0 @@ */

@@ -21,2 +21,4 @@ export default class NftscanConst {

base: string;
viction: string;
starknet: string;
};

@@ -73,2 +75,3 @@ /**

getAccountHoldingDistribution: string;
getAccountHoldingTrending: string;
};

@@ -75,0 +78,0 @@ refresh: {

{
"name": "nftscan-api",
"version": "1.10.0",
"version": "1.11.0",
"description": "js/ts SDK for NFTScan APIs",

@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js",

@@ -24,2 +24,4 @@ # NFTScan API SDK (JavaScript / TypeScript)

| Gnosis | gnosisapi.nftscan.com | gnosis |
| Viction | victionapi.nftscan.com | viction |
| Starknet | starknetapi.nftscan.com | starknet |
| Solana | solanaapi.nftscan.com | solana |

@@ -74,2 +76,4 @@

GNOSIS = 'gnosis',
VICTION = 'viction',
STARKNET = 'starknet',
}

@@ -76,0 +80,0 @@ ```

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

Sorry, the diff of this file is not supported yet

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

Sorry, the diff of this file is not supported yet

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

Sorry, the diff of this file is not supported yet

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

Sorry, the diff of this file is not supported yet

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