nftscan-api
Advanced tools
Comparing version 1.12.0 to 1.13.0
@@ -269,2 +269,6 @@ interface Price7d { | ||
/** | ||
* symbol | ||
*/ | ||
symbol: string; | ||
/** | ||
* Whether the collection is verified on NFTScan | ||
@@ -271,0 +275,0 @@ */ |
@@ -20,3 +20,5 @@ /** | ||
VICTION = "viction", | ||
STARKNET = "starknet" | ||
STARKNET = "starknet", | ||
MANTLE = "mantle", | ||
BLAST = "blast" | ||
} | ||
@@ -67,2 +69,3 @@ /** | ||
API_CHAIN_ERROR = "api_chain_error", | ||
API_BASE_URL_ERROR = "api_base_url_error", | ||
REQUEST_ERROR = "request_error", | ||
@@ -100,3 +103,7 @@ RESPONSE_DATA_EMPTY = "response_data_empty", | ||
*/ | ||
chain: EvmChain; | ||
chain?: EvmChain; | ||
/** | ||
* The base url of NFTScan API | ||
*/ | ||
baseUrl?: string; | ||
} | ||
@@ -103,0 +110,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
export declare function isEmpty(obj: unknown): boolean; | ||
export declare function isEmpty(value: unknown): value is undefined | null; | ||
export declare function isJson(str: string): boolean; |
@@ -23,2 +23,4 @@ export default class NftscanConst { | ||
starknet: string; | ||
mantle: string; | ||
blast: string; | ||
}; | ||
@@ -25,0 +27,0 @@ /** |
{ | ||
"name": "nftscan-api", | ||
"version": "1.12.0", | ||
"version": "1.13.0", | ||
"description": "js/ts SDK for NFTScan APIs", | ||
@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js", |
@@ -26,2 +26,4 @@ # NFTScan API SDK (JavaScript / TypeScript) | ||
| Starknet | starknetapi.nftscan.com | starknet | | ||
| Mantle | mantleapi.nftscan.com | mantle | | ||
| Blast | blastapi.nftscan.com | blast | | ||
| Solana | solanaapi.nftscan.com | solana | | ||
@@ -57,4 +59,16 @@ | ||
``` | ||
The `new NftscanEvm()` returns an object that can query the EVM-like chain, for here it is `EvmChain.ETH`, which stand for the Ethereum blockchain. | ||
or | ||
```ts | ||
import { ErcType, NftscanEvm } from "nftscan-api"; | ||
const config = { | ||
apiKey: "<YOUR_API_KEY>", // Replace with your NFTScan API key. | ||
baseUrl: "<HTTPS_URL>" + "/api", // Or replace with a valid https URL. | ||
}; | ||
const evm = new NftscanEvm(config); | ||
``` | ||
The `new NftscanEvm()` returns an object that can query the EVM-like chain, for here it is `EvmChain.ETH`, which stand for the Ethereum blockchain. It must be ensured that one of the `chain` or `baseUrl` attribute is valid. A valid `baseUrl` supported by NFTSCAN can be found here: [EVM chains](https://docs.nftscan.com/guides/Overview/1#evm_chains). | ||
The complete enumeration value of `EvmChain` includes the following: | ||
@@ -61,0 +75,0 @@ ```ts |
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
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
462491
10143
227