Socket
Socket
Sign inDemoInstall

alchemy-sdk

Package Overview
Dependencies
Maintainers
2
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

alchemy-sdk - npm Package Compare versions

Comparing version 3.1.0 to 3.1.1

dist/cjs/alchemy-provider-b06e2748.js

13

CHANGELOG.md

@@ -7,2 +7,15 @@ # Changelog for Alchemy SDK for JavaScript

### Minor Changes
## 3.1.1
### Major Changes
### Minor Changes
- Added endpoints for `isAirdropNft()` and `reportSpam()` in `NftNamespace`.
- Added a missing `marketplaceAddress` field to the `NftSale` in `NftNamespace.getNftSales()`.
- Fixed an incorrect field name for `bannerImageUrl` in `OpenSeaCollectionMetadata`. Deprecated the old field name `imageBannerUrl`.
- Added support for Base networks in `NotifyNamespace`.
## 3.1.0

@@ -9,0 +22,0 @@

22

dist/cjs/api/src/api/nft-namespace.d.ts
import type { BigNumberish } from '@ethersproject/bignumber';
import { BaseNft, ComputeRarityResponse, GetBaseNftsForContractOptions, GetBaseNftsForOwnerOptions, GetContractMetadataBatchResponse, GetContractsForOwnerOptions, GetContractsForOwnerResponse, GetFloorPriceResponse, GetMintedNftsOptions, GetNftMetadataBatchResponse, GetNftMetadataOptions, GetNftSalesOptions, GetNftSalesOptionsByContractAddress, GetNftSalesResponse, GetNftsForContractOptions, GetNftsForOwnerOptions, GetOwnersForContractOptions, GetOwnersForContractResponse, GetOwnersForContractWithTokenBalancesOptions, GetOwnersForContractWithTokenBalancesResponse, GetOwnersForNftOptions, GetOwnersForNftResponse, GetSpamContractsResponse, GetTransfersForContractOptions, IsSpamContractResponse, Nft, NftAttributesResponse, NftCollection, NftContract, NftContractBaseNftsResponse, NftContractNftsResponse, NftMetadataBatchOptions, NftMetadataBatchToken, OwnedBaseNft, OwnedBaseNftsResponse, OwnedNft, OwnedNftsResponse, SearchContractMetadataResponse, TransfersNftResponse } from '../types/nft-types';
import { BaseNft, ComputeRarityResponse, GetBaseNftsForContractOptions, GetBaseNftsForOwnerOptions, GetContractMetadataBatchResponse, GetContractsForOwnerOptions, GetContractsForOwnerResponse, GetFloorPriceResponse, GetMintedNftsOptions, GetNftMetadataBatchResponse, GetNftMetadataOptions, GetNftSalesOptions, GetNftSalesOptionsByContractAddress, GetNftSalesResponse, GetNftsForContractOptions, GetNftsForOwnerOptions, GetOwnersForContractOptions, GetOwnersForContractResponse, GetOwnersForContractWithTokenBalancesOptions, GetOwnersForContractWithTokenBalancesResponse, GetOwnersForNftOptions, GetOwnersForNftResponse, GetSpamContractsResponse, GetTransfersForContractOptions, IsAirdropNftResponse, IsSpamContractResponse, Nft, NftAttributesResponse, NftCollection, NftContract, NftContractBaseNftsResponse, NftContractNftsResponse, NftMetadataBatchOptions, NftMetadataBatchToken, OwnedBaseNft, OwnedBaseNftsResponse, OwnedNft, OwnedNftsResponse, SearchContractMetadataResponse, TransfersNftResponse } from '../types/nft-types';
import { GetTransfersForOwnerOptions, GetTransfersForOwnerTransferType, RefreshContractResult } from '../types/types';

@@ -227,3 +227,2 @@ /**

* @param contractAddress - The contract address to check.
* @beta
*/

@@ -235,7 +234,22 @@ isSpamContract(contractAddress: string): Promise<IsSpamContractResponse>;

* https://docs.alchemy.com/alchemy/enhanced-apis/nft-api/nft-api-faq#nft-spam-classification.
*
* @beta
*/
getSpamContracts(): Promise<GetSpamContractsResponse>;
/**
* Returns whether a contract is marked as spam or not by Alchemy. For more
* information on how we classify spam, go to our NFT API FAQ at
* https://docs.alchemy.com/alchemy/enhanced-apis/nft-api/nft-api-faq#nft-spam-classification.
*
* @param contractAddress - The contract address to check.
*/
reportSpam(contractAddress: string): Promise<void>;
/**
* Returns whether a token is marked as an airdrop or not.
* Airdrops are defined as NFTs that were minted to a user address in a transaction
* sent by a different address.
*
* @param contractAddress - The contract address to check.
* @param tokenId - Token id of the NFT.
*/
isAirdropNft(contractAddress: string, tokenId: string): Promise<IsAirdropNftResponse>;
/**
* Returns the floor prices of a NFT contract by marketplace.

@@ -242,0 +256,0 @@ *

4

dist/cjs/api/src/internal/nft-api.d.ts
import { BigNumberish } from '@ethersproject/bignumber';
import { AlchemyConfig } from '../api/alchemy-config';
import { BaseNft, ComputeRarityResponse, GetBaseNftsForContractOptions, GetBaseNftsForOwnerOptions, GetContractMetadataBatchResponse, GetContractsForOwnerOptions, GetContractsForOwnerResponse, GetFloorPriceResponse, GetMintedNftsOptions, GetNftMetadataBatchResponse, GetNftMetadataOptions, GetNftSalesOptions, GetNftSalesOptionsByContractAddress, GetNftSalesResponse, GetNftsForContractOptions, GetNftsForOwnerOptions, GetOwnersForContractOptions, GetOwnersForContractResponse, GetOwnersForContractWithTokenBalancesOptions, GetOwnersForContractWithTokenBalancesResponse, GetOwnersForNftResponse, GetSpamContractsResponse, GetTransfersForContractOptions, IsSpamContractResponse, Nft, NftAttributesResponse, NftCollection, NftContract, NftContractBaseNftsResponse, NftContractNftsResponse, NftMetadataBatchOptions, NftMetadataBatchToken, OwnedBaseNft, OwnedBaseNftsResponse, OwnedNft, OwnedNftsResponse, SearchContractMetadataResponse, TransfersNftResponse } from '../types/nft-types';
import { BaseNft, ComputeRarityResponse, GetBaseNftsForContractOptions, GetBaseNftsForOwnerOptions, GetContractMetadataBatchResponse, GetContractsForOwnerOptions, GetContractsForOwnerResponse, GetFloorPriceResponse, GetMintedNftsOptions, GetNftMetadataBatchResponse, GetNftMetadataOptions, GetNftSalesOptions, GetNftSalesOptionsByContractAddress, GetNftSalesResponse, GetNftsForContractOptions, GetNftsForOwnerOptions, GetOwnersForContractOptions, GetOwnersForContractResponse, GetOwnersForContractWithTokenBalancesOptions, GetOwnersForContractWithTokenBalancesResponse, GetOwnersForNftResponse, GetSpamContractsResponse, GetTransfersForContractOptions, IsAirdropNftResponse, IsSpamContractResponse, Nft, NftAttributesResponse, NftCollection, NftContract, NftContractBaseNftsResponse, NftContractNftsResponse, NftMetadataBatchOptions, NftMetadataBatchToken, OwnedBaseNft, OwnedBaseNftsResponse, OwnedNft, OwnedNftsResponse, SearchContractMetadataResponse, TransfersNftResponse } from '../types/nft-types';
import { AssetTransfersResponse, GetTransfersForOwnerOptions, GetTransfersForOwnerTransferType, RefreshContractResult } from '../types/types';

@@ -34,2 +34,4 @@ /**

export declare function getSpamContracts(config: AlchemyConfig, srcMethod?: string): Promise<GetSpamContractsResponse>;
export declare function reportSpam(config: AlchemyConfig, contractAddress: string, srcMethod?: string): Promise<void>;
export declare function isAirdropNft(config: AlchemyConfig, contractAddress: string, tokenId: string, srcMethod?: string): Promise<IsAirdropNftResponse>;
export declare function getFloorPrice(config: AlchemyConfig, contractAddress: string, srcMethod?: string): Promise<GetFloorPriceResponse>;

@@ -36,0 +38,0 @@ export declare function getNftSales(config: AlchemyConfig, options?: GetNftSalesOptions | GetNftSalesOptionsByContractAddress, srcMethod?: string): Promise<GetNftSalesResponse>;

@@ -167,2 +167,3 @@ /**

marketplace: string;
marketplaceAddress: string;
contractAddress: string;

@@ -214,2 +215,5 @@ tokenId: string;

}
export interface RawIsAirdropNftResponse {
isAirdrop: boolean;
}
export interface RawDisplayNftForContract {

@@ -216,0 +220,0 @@ tokenId: string;

@@ -332,2 +332,5 @@ import { BlockTag } from '@ethersproject/abstract-provider';

}
export interface IsAirdropNftResponse {
isAirdrop: boolean;
}
export interface GetSpamContractsResponse {

@@ -628,2 +631,4 @@ contractAddresses: string[];

marketplace: NftSaleMarketplace;
/** The marketplace address the sale was on. */
marketplaceAddress: string;
/** The NFT contract address. */

@@ -964,4 +969,9 @@ contractAddress: string;

imageUrl?: string;
/**
* The banner image URL determined by OpenSea.
* @deprecated Use {@link bannerImageUrl} instead.
*/
imageBannerUrl?: string;
/** The banner image URL determined by OpenSea. */
imageBannerUrl?: string;
bannerImageUrl?: string;
/** The description of the collection on OpenSea. */

@@ -968,0 +978,0 @@ description?: string;

@@ -1,1 +0,1 @@

export declare const VERSION = "3.1.0";
export declare const VERSION = "3.1.1";

@@ -16,3 +16,3 @@ /// <reference types="jest" />

export declare function createOwnedNft(title: string, address: string, tokenId: string, balance: string, tokenType?: NftTokenType): OwnedNft;
export declare function createRawNftSale(contractAddress: string, tokenId: string, marketplace: NftSaleMarketplace, taker: NftSaleTakerType, buyerAddress: string, sellerAddress: string): RawNftSale;
export declare function createRawNftSale(marketplaceAddress: string, contractAddress: string, tokenId: string, marketplace: NftSaleMarketplace, taker: NftSaleTakerType, buyerAddress: string, sellerAddress: string): RawNftSale;
export declare function createRawContractForOwner(address: string, overrides?: Partial<RawNftContractForOwner>): RawNftContractForOwner;

@@ -19,0 +19,0 @@ export declare function verifyNftContractMetadata(actualNftContract: NftContract, expectedNftContract: NftContract, address: string, name: string, symbol: string, totalSupply: string, tokenType?: NftTokenType, openSea?: RawOpenSeaCollectionMetadata): void;

@@ -6,3 +6,3 @@ 'use strict';

var utils = require('./api/utils');
var index = require('./index-b1f4a2d9.js');
var index = require('./index-2b187e9d.js');
var bignumber = require('@ethersproject/bignumber');

@@ -9,0 +9,0 @@ require('axios');

import type { BigNumberish } from '@ethersproject/bignumber';
import { BaseNft, ComputeRarityResponse, GetBaseNftsForContractOptions, GetBaseNftsForOwnerOptions, GetContractMetadataBatchResponse, GetContractsForOwnerOptions, GetContractsForOwnerResponse, GetFloorPriceResponse, GetMintedNftsOptions, GetNftMetadataBatchResponse, GetNftMetadataOptions, GetNftSalesOptions, GetNftSalesOptionsByContractAddress, GetNftSalesResponse, GetNftsForContractOptions, GetNftsForOwnerOptions, GetOwnersForContractOptions, GetOwnersForContractResponse, GetOwnersForContractWithTokenBalancesOptions, GetOwnersForContractWithTokenBalancesResponse, GetOwnersForNftOptions, GetOwnersForNftResponse, GetSpamContractsResponse, GetTransfersForContractOptions, IsSpamContractResponse, Nft, NftAttributesResponse, NftCollection, NftContract, NftContractBaseNftsResponse, NftContractNftsResponse, NftMetadataBatchOptions, NftMetadataBatchToken, OwnedBaseNft, OwnedBaseNftsResponse, OwnedNft, OwnedNftsResponse, SearchContractMetadataResponse, TransfersNftResponse } from '../types/nft-types';
import { BaseNft, ComputeRarityResponse, GetBaseNftsForContractOptions, GetBaseNftsForOwnerOptions, GetContractMetadataBatchResponse, GetContractsForOwnerOptions, GetContractsForOwnerResponse, GetFloorPriceResponse, GetMintedNftsOptions, GetNftMetadataBatchResponse, GetNftMetadataOptions, GetNftSalesOptions, GetNftSalesOptionsByContractAddress, GetNftSalesResponse, GetNftsForContractOptions, GetNftsForOwnerOptions, GetOwnersForContractOptions, GetOwnersForContractResponse, GetOwnersForContractWithTokenBalancesOptions, GetOwnersForContractWithTokenBalancesResponse, GetOwnersForNftOptions, GetOwnersForNftResponse, GetSpamContractsResponse, GetTransfersForContractOptions, IsAirdropNftResponse, IsSpamContractResponse, Nft, NftAttributesResponse, NftCollection, NftContract, NftContractBaseNftsResponse, NftContractNftsResponse, NftMetadataBatchOptions, NftMetadataBatchToken, OwnedBaseNft, OwnedBaseNftsResponse, OwnedNft, OwnedNftsResponse, SearchContractMetadataResponse, TransfersNftResponse } from '../types/nft-types';
import { GetTransfersForOwnerOptions, GetTransfersForOwnerTransferType, RefreshContractResult } from '../types/types';

@@ -227,3 +227,2 @@ /**

* @param contractAddress - The contract address to check.
* @beta
*/

@@ -235,7 +234,22 @@ isSpamContract(contractAddress: string): Promise<IsSpamContractResponse>;

* https://docs.alchemy.com/alchemy/enhanced-apis/nft-api/nft-api-faq#nft-spam-classification.
*
* @beta
*/
getSpamContracts(): Promise<GetSpamContractsResponse>;
/**
* Returns whether a contract is marked as spam or not by Alchemy. For more
* information on how we classify spam, go to our NFT API FAQ at
* https://docs.alchemy.com/alchemy/enhanced-apis/nft-api/nft-api-faq#nft-spam-classification.
*
* @param contractAddress - The contract address to check.
*/
reportSpam(contractAddress: string): Promise<void>;
/**
* Returns whether a token is marked as an airdrop or not.
* Airdrops are defined as NFTs that were minted to a user address in a transaction
* sent by a different address.
*
* @param contractAddress - The contract address to check.
* @param tokenId - Token id of the NFT.
*/
isAirdropNft(contractAddress: string, tokenId: string): Promise<IsAirdropNftResponse>;
/**
* Returns the floor prices of a NFT contract by marketplace.

@@ -242,0 +256,0 @@ *

import { BigNumberish } from '@ethersproject/bignumber';
import { AlchemyConfig } from '../api/alchemy-config';
import { BaseNft, ComputeRarityResponse, GetBaseNftsForContractOptions, GetBaseNftsForOwnerOptions, GetContractMetadataBatchResponse, GetContractsForOwnerOptions, GetContractsForOwnerResponse, GetFloorPriceResponse, GetMintedNftsOptions, GetNftMetadataBatchResponse, GetNftMetadataOptions, GetNftSalesOptions, GetNftSalesOptionsByContractAddress, GetNftSalesResponse, GetNftsForContractOptions, GetNftsForOwnerOptions, GetOwnersForContractOptions, GetOwnersForContractResponse, GetOwnersForContractWithTokenBalancesOptions, GetOwnersForContractWithTokenBalancesResponse, GetOwnersForNftResponse, GetSpamContractsResponse, GetTransfersForContractOptions, IsSpamContractResponse, Nft, NftAttributesResponse, NftCollection, NftContract, NftContractBaseNftsResponse, NftContractNftsResponse, NftMetadataBatchOptions, NftMetadataBatchToken, OwnedBaseNft, OwnedBaseNftsResponse, OwnedNft, OwnedNftsResponse, SearchContractMetadataResponse, TransfersNftResponse } from '../types/nft-types';
import { BaseNft, ComputeRarityResponse, GetBaseNftsForContractOptions, GetBaseNftsForOwnerOptions, GetContractMetadataBatchResponse, GetContractsForOwnerOptions, GetContractsForOwnerResponse, GetFloorPriceResponse, GetMintedNftsOptions, GetNftMetadataBatchResponse, GetNftMetadataOptions, GetNftSalesOptions, GetNftSalesOptionsByContractAddress, GetNftSalesResponse, GetNftsForContractOptions, GetNftsForOwnerOptions, GetOwnersForContractOptions, GetOwnersForContractResponse, GetOwnersForContractWithTokenBalancesOptions, GetOwnersForContractWithTokenBalancesResponse, GetOwnersForNftResponse, GetSpamContractsResponse, GetTransfersForContractOptions, IsAirdropNftResponse, IsSpamContractResponse, Nft, NftAttributesResponse, NftCollection, NftContract, NftContractBaseNftsResponse, NftContractNftsResponse, NftMetadataBatchOptions, NftMetadataBatchToken, OwnedBaseNft, OwnedBaseNftsResponse, OwnedNft, OwnedNftsResponse, SearchContractMetadataResponse, TransfersNftResponse } from '../types/nft-types';
import { AssetTransfersResponse, GetTransfersForOwnerOptions, GetTransfersForOwnerTransferType, RefreshContractResult } from '../types/types';

@@ -34,2 +34,4 @@ /**

export declare function getSpamContracts(config: AlchemyConfig, srcMethod?: string): Promise<GetSpamContractsResponse>;
export declare function reportSpam(config: AlchemyConfig, contractAddress: string, srcMethod?: string): Promise<void>;
export declare function isAirdropNft(config: AlchemyConfig, contractAddress: string, tokenId: string, srcMethod?: string): Promise<IsAirdropNftResponse>;
export declare function getFloorPrice(config: AlchemyConfig, contractAddress: string, srcMethod?: string): Promise<GetFloorPriceResponse>;

@@ -36,0 +38,0 @@ export declare function getNftSales(config: AlchemyConfig, options?: GetNftSalesOptions | GetNftSalesOptionsByContractAddress, srcMethod?: string): Promise<GetNftSalesResponse>;

@@ -167,2 +167,3 @@ /**

marketplace: string;
marketplaceAddress: string;
contractAddress: string;

@@ -214,2 +215,5 @@ tokenId: string;

}
export interface RawIsAirdropNftResponse {
isAirdrop: boolean;
}
export interface RawDisplayNftForContract {

@@ -216,0 +220,0 @@ tokenId: string;

@@ -332,2 +332,5 @@ import { BlockTag } from '@ethersproject/abstract-provider';

}
export interface IsAirdropNftResponse {
isAirdrop: boolean;
}
export interface GetSpamContractsResponse {

@@ -628,2 +631,4 @@ contractAddresses: string[];

marketplace: NftSaleMarketplace;
/** The marketplace address the sale was on. */
marketplaceAddress: string;
/** The NFT contract address. */

@@ -964,4 +969,9 @@ contractAddress: string;

imageUrl?: string;
/**
* The banner image URL determined by OpenSea.
* @deprecated Use {@link bannerImageUrl} instead.
*/
imageBannerUrl?: string;
/** The banner image URL determined by OpenSea. */
imageBannerUrl?: string;
bannerImageUrl?: string;
/** The description of the collection on OpenSea. */

@@ -968,0 +978,0 @@ description?: string;

@@ -1,1 +0,1 @@

export declare const VERSION = "3.1.0";
export declare const VERSION = "3.1.1";

@@ -16,3 +16,3 @@ /// <reference types="jest" />

export declare function createOwnedNft(title: string, address: string, tokenId: string, balance: string, tokenType?: NftTokenType): OwnedNft;
export declare function createRawNftSale(contractAddress: string, tokenId: string, marketplace: NftSaleMarketplace, taker: NftSaleTakerType, buyerAddress: string, sellerAddress: string): RawNftSale;
export declare function createRawNftSale(marketplaceAddress: string, contractAddress: string, tokenId: string, marketplace: NftSaleMarketplace, taker: NftSaleTakerType, buyerAddress: string, sellerAddress: string): RawNftSale;
export declare function createRawContractForOwner(address: string, overrides?: Partial<RawNftContractForOwner>): RawNftContractForOwner;

@@ -19,0 +19,0 @@ export declare function verifyNftContractMetadata(actualNftContract: NftContract, expectedNftContract: NftContract, address: string, name: string, symbol: string, totalSupply: string, tokenType?: NftTokenType, openSea?: RawOpenSeaCollectionMetadata): void;

import type { BigNumberish } from '@ethersproject/bignumber';
import { BaseNft, ComputeRarityResponse, GetBaseNftsForContractOptions, GetBaseNftsForOwnerOptions, GetContractMetadataBatchResponse, GetContractsForOwnerOptions, GetContractsForOwnerResponse, GetFloorPriceResponse, GetMintedNftsOptions, GetNftMetadataBatchResponse, GetNftMetadataOptions, GetNftSalesOptions, GetNftSalesOptionsByContractAddress, GetNftSalesResponse, GetNftsForContractOptions, GetNftsForOwnerOptions, GetOwnersForContractOptions, GetOwnersForContractResponse, GetOwnersForContractWithTokenBalancesOptions, GetOwnersForContractWithTokenBalancesResponse, GetOwnersForNftOptions, GetOwnersForNftResponse, GetSpamContractsResponse, GetTransfersForContractOptions, IsSpamContractResponse, Nft, NftAttributesResponse, NftCollection, NftContract, NftContractBaseNftsResponse, NftContractNftsResponse, NftMetadataBatchOptions, NftMetadataBatchToken, OwnedBaseNft, OwnedBaseNftsResponse, OwnedNft, OwnedNftsResponse, SearchContractMetadataResponse, TransfersNftResponse } from '../types/nft-types';
import { BaseNft, ComputeRarityResponse, GetBaseNftsForContractOptions, GetBaseNftsForOwnerOptions, GetContractMetadataBatchResponse, GetContractsForOwnerOptions, GetContractsForOwnerResponse, GetFloorPriceResponse, GetMintedNftsOptions, GetNftMetadataBatchResponse, GetNftMetadataOptions, GetNftSalesOptions, GetNftSalesOptionsByContractAddress, GetNftSalesResponse, GetNftsForContractOptions, GetNftsForOwnerOptions, GetOwnersForContractOptions, GetOwnersForContractResponse, GetOwnersForContractWithTokenBalancesOptions, GetOwnersForContractWithTokenBalancesResponse, GetOwnersForNftOptions, GetOwnersForNftResponse, GetSpamContractsResponse, GetTransfersForContractOptions, IsAirdropNftResponse, IsSpamContractResponse, Nft, NftAttributesResponse, NftCollection, NftContract, NftContractBaseNftsResponse, NftContractNftsResponse, NftMetadataBatchOptions, NftMetadataBatchToken, OwnedBaseNft, OwnedBaseNftsResponse, OwnedNft, OwnedNftsResponse, SearchContractMetadataResponse, TransfersNftResponse } from '../types/nft-types';
import { GetTransfersForOwnerOptions, GetTransfersForOwnerTransferType, RefreshContractResult } from '../types/types';

@@ -227,3 +227,2 @@ /**

* @param contractAddress - The contract address to check.
* @beta
*/

@@ -235,7 +234,22 @@ isSpamContract(contractAddress: string): Promise<IsSpamContractResponse>;

* https://docs.alchemy.com/alchemy/enhanced-apis/nft-api/nft-api-faq#nft-spam-classification.
*
* @beta
*/
getSpamContracts(): Promise<GetSpamContractsResponse>;
/**
* Returns whether a contract is marked as spam or not by Alchemy. For more
* information on how we classify spam, go to our NFT API FAQ at
* https://docs.alchemy.com/alchemy/enhanced-apis/nft-api/nft-api-faq#nft-spam-classification.
*
* @param contractAddress - The contract address to check.
*/
reportSpam(contractAddress: string): Promise<void>;
/**
* Returns whether a token is marked as an airdrop or not.
* Airdrops are defined as NFTs that were minted to a user address in a transaction
* sent by a different address.
*
* @param contractAddress - The contract address to check.
* @param tokenId - Token id of the NFT.
*/
isAirdropNft(contractAddress: string, tokenId: string): Promise<IsAirdropNftResponse>;
/**
* Returns the floor prices of a NFT contract by marketplace.

@@ -242,0 +256,0 @@ *

import { BigNumberish } from '@ethersproject/bignumber';
import { AlchemyConfig } from '../api/alchemy-config';
import { BaseNft, ComputeRarityResponse, GetBaseNftsForContractOptions, GetBaseNftsForOwnerOptions, GetContractMetadataBatchResponse, GetContractsForOwnerOptions, GetContractsForOwnerResponse, GetFloorPriceResponse, GetMintedNftsOptions, GetNftMetadataBatchResponse, GetNftMetadataOptions, GetNftSalesOptions, GetNftSalesOptionsByContractAddress, GetNftSalesResponse, GetNftsForContractOptions, GetNftsForOwnerOptions, GetOwnersForContractOptions, GetOwnersForContractResponse, GetOwnersForContractWithTokenBalancesOptions, GetOwnersForContractWithTokenBalancesResponse, GetOwnersForNftResponse, GetSpamContractsResponse, GetTransfersForContractOptions, IsSpamContractResponse, Nft, NftAttributesResponse, NftCollection, NftContract, NftContractBaseNftsResponse, NftContractNftsResponse, NftMetadataBatchOptions, NftMetadataBatchToken, OwnedBaseNft, OwnedBaseNftsResponse, OwnedNft, OwnedNftsResponse, SearchContractMetadataResponse, TransfersNftResponse } from '../types/nft-types';
import { BaseNft, ComputeRarityResponse, GetBaseNftsForContractOptions, GetBaseNftsForOwnerOptions, GetContractMetadataBatchResponse, GetContractsForOwnerOptions, GetContractsForOwnerResponse, GetFloorPriceResponse, GetMintedNftsOptions, GetNftMetadataBatchResponse, GetNftMetadataOptions, GetNftSalesOptions, GetNftSalesOptionsByContractAddress, GetNftSalesResponse, GetNftsForContractOptions, GetNftsForOwnerOptions, GetOwnersForContractOptions, GetOwnersForContractResponse, GetOwnersForContractWithTokenBalancesOptions, GetOwnersForContractWithTokenBalancesResponse, GetOwnersForNftResponse, GetSpamContractsResponse, GetTransfersForContractOptions, IsAirdropNftResponse, IsSpamContractResponse, Nft, NftAttributesResponse, NftCollection, NftContract, NftContractBaseNftsResponse, NftContractNftsResponse, NftMetadataBatchOptions, NftMetadataBatchToken, OwnedBaseNft, OwnedBaseNftsResponse, OwnedNft, OwnedNftsResponse, SearchContractMetadataResponse, TransfersNftResponse } from '../types/nft-types';
import { AssetTransfersResponse, GetTransfersForOwnerOptions, GetTransfersForOwnerTransferType, RefreshContractResult } from '../types/types';

@@ -34,2 +34,4 @@ /**

export declare function getSpamContracts(config: AlchemyConfig, srcMethod?: string): Promise<GetSpamContractsResponse>;
export declare function reportSpam(config: AlchemyConfig, contractAddress: string, srcMethod?: string): Promise<void>;
export declare function isAirdropNft(config: AlchemyConfig, contractAddress: string, tokenId: string, srcMethod?: string): Promise<IsAirdropNftResponse>;
export declare function getFloorPrice(config: AlchemyConfig, contractAddress: string, srcMethod?: string): Promise<GetFloorPriceResponse>;

@@ -36,0 +38,0 @@ export declare function getNftSales(config: AlchemyConfig, options?: GetNftSalesOptions | GetNftSalesOptionsByContractAddress, srcMethod?: string): Promise<GetNftSalesResponse>;

@@ -167,2 +167,3 @@ /**

marketplace: string;
marketplaceAddress: string;
contractAddress: string;

@@ -214,2 +215,5 @@ tokenId: string;

}
export interface RawIsAirdropNftResponse {
isAirdrop: boolean;
}
export interface RawDisplayNftForContract {

@@ -216,0 +220,0 @@ tokenId: string;

@@ -332,2 +332,5 @@ import { BlockTag } from '@ethersproject/abstract-provider';

}
export interface IsAirdropNftResponse {
isAirdrop: boolean;
}
export interface GetSpamContractsResponse {

@@ -628,2 +631,4 @@ contractAddresses: string[];

marketplace: NftSaleMarketplace;
/** The marketplace address the sale was on. */
marketplaceAddress: string;
/** The NFT contract address. */

@@ -964,4 +969,9 @@ contractAddress: string;

imageUrl?: string;
/**
* The banner image URL determined by OpenSea.
* @deprecated Use {@link bannerImageUrl} instead.
*/
imageBannerUrl?: string;
/** The banner image URL determined by OpenSea. */
imageBannerUrl?: string;
bannerImageUrl?: string;
/** The description of the collection on OpenSea. */

@@ -968,0 +978,0 @@ description?: string;

@@ -1,1 +0,1 @@

export declare const VERSION = "3.1.0";
export declare const VERSION = "3.1.1";

@@ -16,3 +16,3 @@ /// <reference types="jest" />

export declare function createOwnedNft(title: string, address: string, tokenId: string, balance: string, tokenType?: NftTokenType): OwnedNft;
export declare function createRawNftSale(contractAddress: string, tokenId: string, marketplace: NftSaleMarketplace, taker: NftSaleTakerType, buyerAddress: string, sellerAddress: string): RawNftSale;
export declare function createRawNftSale(marketplaceAddress: string, contractAddress: string, tokenId: string, marketplace: NftSaleMarketplace, taker: NftSaleTakerType, buyerAddress: string, sellerAddress: string): RawNftSale;
export declare function createRawContractForOwner(address: string, overrides?: Partial<RawNftContractForOwner>): RawNftContractForOwner;

@@ -19,0 +19,0 @@ export declare function verifyNftContractMetadata(actualNftContract: NftContract, expectedNftContract: NftContract, address: string, name: string, symbol: string, totalSupply: string, tokenType?: NftTokenType, openSea?: RawOpenSeaCollectionMetadata): void;

import * as utils from './api/utils';
export { utils as Utils };
export { m as Alchemy, j as AlchemySubscription, r as AssetTransfersCategory, H as CommitmentLevel, o as Contract, p as ContractFactory, y as DebugCallType, J as DebugTracerType, x as DecodingAuthority, z as GasOptimizedTransactionStatus, G as GetTransfersForOwnerTransferType, N as Network, X as NftCollectionMarketplace, M as NftFilters, P as NftOrdering, U as NftRefreshState, Q as NftSaleMarketplace, R as NftSaleTakerType, L as NftSpamClassification, K as NftTokenType, O as OpenSeaSafelistRequestStatus, u as SimulateAssetType, w as SimulateChangeType, S as SortingOrder, T as TokenBalanceType, W as Wallet, F as WebhookType, B as WebhookVersion, f as fromHex, q as isHex, s as setLogLevel, t as toHex } from './index-1f2f6032.js';
export { m as Alchemy, j as AlchemySubscription, r as AssetTransfersCategory, H as CommitmentLevel, o as Contract, p as ContractFactory, y as DebugCallType, J as DebugTracerType, x as DecodingAuthority, z as GasOptimizedTransactionStatus, G as GetTransfersForOwnerTransferType, N as Network, X as NftCollectionMarketplace, M as NftFilters, P as NftOrdering, U as NftRefreshState, Q as NftSaleMarketplace, R as NftSaleTakerType, L as NftSpamClassification, K as NftTokenType, O as OpenSeaSafelistRequestStatus, u as SimulateAssetType, w as SimulateChangeType, S as SortingOrder, T as TokenBalanceType, W as Wallet, F as WebhookType, B as WebhookVersion, f as fromHex, q as isHex, s as setLogLevel, t as toHex } from './index-24dee0e9.js';
export { BigNumber } from '@ethersproject/bignumber';

@@ -5,0 +5,0 @@ import 'axios';

import type { BigNumberish } from '@ethersproject/bignumber';
import { BaseNft, ComputeRarityResponse, GetBaseNftsForContractOptions, GetBaseNftsForOwnerOptions, GetContractMetadataBatchResponse, GetContractsForOwnerOptions, GetContractsForOwnerResponse, GetFloorPriceResponse, GetMintedNftsOptions, GetNftMetadataBatchResponse, GetNftMetadataOptions, GetNftSalesOptions, GetNftSalesOptionsByContractAddress, GetNftSalesResponse, GetNftsForContractOptions, GetNftsForOwnerOptions, GetOwnersForContractOptions, GetOwnersForContractResponse, GetOwnersForContractWithTokenBalancesOptions, GetOwnersForContractWithTokenBalancesResponse, GetOwnersForNftOptions, GetOwnersForNftResponse, GetSpamContractsResponse, GetTransfersForContractOptions, IsSpamContractResponse, Nft, NftAttributesResponse, NftCollection, NftContract, NftContractBaseNftsResponse, NftContractNftsResponse, NftMetadataBatchOptions, NftMetadataBatchToken, OwnedBaseNft, OwnedBaseNftsResponse, OwnedNft, OwnedNftsResponse, SearchContractMetadataResponse, TransfersNftResponse } from '../types/nft-types';
import { BaseNft, ComputeRarityResponse, GetBaseNftsForContractOptions, GetBaseNftsForOwnerOptions, GetContractMetadataBatchResponse, GetContractsForOwnerOptions, GetContractsForOwnerResponse, GetFloorPriceResponse, GetMintedNftsOptions, GetNftMetadataBatchResponse, GetNftMetadataOptions, GetNftSalesOptions, GetNftSalesOptionsByContractAddress, GetNftSalesResponse, GetNftsForContractOptions, GetNftsForOwnerOptions, GetOwnersForContractOptions, GetOwnersForContractResponse, GetOwnersForContractWithTokenBalancesOptions, GetOwnersForContractWithTokenBalancesResponse, GetOwnersForNftOptions, GetOwnersForNftResponse, GetSpamContractsResponse, GetTransfersForContractOptions, IsAirdropNftResponse, IsSpamContractResponse, Nft, NftAttributesResponse, NftCollection, NftContract, NftContractBaseNftsResponse, NftContractNftsResponse, NftMetadataBatchOptions, NftMetadataBatchToken, OwnedBaseNft, OwnedBaseNftsResponse, OwnedNft, OwnedNftsResponse, SearchContractMetadataResponse, TransfersNftResponse } from '../types/nft-types';
import { GetTransfersForOwnerOptions, GetTransfersForOwnerTransferType, RefreshContractResult } from '../types/types';

@@ -227,3 +227,2 @@ /**

* @param contractAddress - The contract address to check.
* @beta
*/

@@ -235,7 +234,22 @@ isSpamContract(contractAddress: string): Promise<IsSpamContractResponse>;

* https://docs.alchemy.com/alchemy/enhanced-apis/nft-api/nft-api-faq#nft-spam-classification.
*
* @beta
*/
getSpamContracts(): Promise<GetSpamContractsResponse>;
/**
* Returns whether a contract is marked as spam or not by Alchemy. For more
* information on how we classify spam, go to our NFT API FAQ at
* https://docs.alchemy.com/alchemy/enhanced-apis/nft-api/nft-api-faq#nft-spam-classification.
*
* @param contractAddress - The contract address to check.
*/
reportSpam(contractAddress: string): Promise<void>;
/**
* Returns whether a token is marked as an airdrop or not.
* Airdrops are defined as NFTs that were minted to a user address in a transaction
* sent by a different address.
*
* @param contractAddress - The contract address to check.
* @param tokenId - Token id of the NFT.
*/
isAirdropNft(contractAddress: string, tokenId: string): Promise<IsAirdropNftResponse>;
/**
* Returns the floor prices of a NFT contract by marketplace.

@@ -242,0 +256,0 @@ *

import { BigNumberish } from '@ethersproject/bignumber';
import { AlchemyConfig } from '../api/alchemy-config';
import { BaseNft, ComputeRarityResponse, GetBaseNftsForContractOptions, GetBaseNftsForOwnerOptions, GetContractMetadataBatchResponse, GetContractsForOwnerOptions, GetContractsForOwnerResponse, GetFloorPriceResponse, GetMintedNftsOptions, GetNftMetadataBatchResponse, GetNftMetadataOptions, GetNftSalesOptions, GetNftSalesOptionsByContractAddress, GetNftSalesResponse, GetNftsForContractOptions, GetNftsForOwnerOptions, GetOwnersForContractOptions, GetOwnersForContractResponse, GetOwnersForContractWithTokenBalancesOptions, GetOwnersForContractWithTokenBalancesResponse, GetOwnersForNftResponse, GetSpamContractsResponse, GetTransfersForContractOptions, IsSpamContractResponse, Nft, NftAttributesResponse, NftCollection, NftContract, NftContractBaseNftsResponse, NftContractNftsResponse, NftMetadataBatchOptions, NftMetadataBatchToken, OwnedBaseNft, OwnedBaseNftsResponse, OwnedNft, OwnedNftsResponse, SearchContractMetadataResponse, TransfersNftResponse } from '../types/nft-types';
import { BaseNft, ComputeRarityResponse, GetBaseNftsForContractOptions, GetBaseNftsForOwnerOptions, GetContractMetadataBatchResponse, GetContractsForOwnerOptions, GetContractsForOwnerResponse, GetFloorPriceResponse, GetMintedNftsOptions, GetNftMetadataBatchResponse, GetNftMetadataOptions, GetNftSalesOptions, GetNftSalesOptionsByContractAddress, GetNftSalesResponse, GetNftsForContractOptions, GetNftsForOwnerOptions, GetOwnersForContractOptions, GetOwnersForContractResponse, GetOwnersForContractWithTokenBalancesOptions, GetOwnersForContractWithTokenBalancesResponse, GetOwnersForNftResponse, GetSpamContractsResponse, GetTransfersForContractOptions, IsAirdropNftResponse, IsSpamContractResponse, Nft, NftAttributesResponse, NftCollection, NftContract, NftContractBaseNftsResponse, NftContractNftsResponse, NftMetadataBatchOptions, NftMetadataBatchToken, OwnedBaseNft, OwnedBaseNftsResponse, OwnedNft, OwnedNftsResponse, SearchContractMetadataResponse, TransfersNftResponse } from '../types/nft-types';
import { AssetTransfersResponse, GetTransfersForOwnerOptions, GetTransfersForOwnerTransferType, RefreshContractResult } from '../types/types';

@@ -34,2 +34,4 @@ /**

export declare function getSpamContracts(config: AlchemyConfig, srcMethod?: string): Promise<GetSpamContractsResponse>;
export declare function reportSpam(config: AlchemyConfig, contractAddress: string, srcMethod?: string): Promise<void>;
export declare function isAirdropNft(config: AlchemyConfig, contractAddress: string, tokenId: string, srcMethod?: string): Promise<IsAirdropNftResponse>;
export declare function getFloorPrice(config: AlchemyConfig, contractAddress: string, srcMethod?: string): Promise<GetFloorPriceResponse>;

@@ -36,0 +38,0 @@ export declare function getNftSales(config: AlchemyConfig, options?: GetNftSalesOptions | GetNftSalesOptionsByContractAddress, srcMethod?: string): Promise<GetNftSalesResponse>;

@@ -167,2 +167,3 @@ /**

marketplace: string;
marketplaceAddress: string;
contractAddress: string;

@@ -214,2 +215,5 @@ tokenId: string;

}
export interface RawIsAirdropNftResponse {
isAirdrop: boolean;
}
export interface RawDisplayNftForContract {

@@ -216,0 +220,0 @@ tokenId: string;

@@ -332,2 +332,5 @@ import { BlockTag } from '@ethersproject/abstract-provider';

}
export interface IsAirdropNftResponse {
isAirdrop: boolean;
}
export interface GetSpamContractsResponse {

@@ -628,2 +631,4 @@ contractAddresses: string[];

marketplace: NftSaleMarketplace;
/** The marketplace address the sale was on. */
marketplaceAddress: string;
/** The NFT contract address. */

@@ -964,4 +969,9 @@ contractAddress: string;

imageUrl?: string;
/**
* The banner image URL determined by OpenSea.
* @deprecated Use {@link bannerImageUrl} instead.
*/
imageBannerUrl?: string;
/** The banner image URL determined by OpenSea. */
imageBannerUrl?: string;
bannerImageUrl?: string;
/** The description of the collection on OpenSea. */

@@ -968,0 +978,0 @@ description?: string;

@@ -1,1 +0,1 @@

export declare const VERSION = "3.1.0";
export declare const VERSION = "3.1.1";

@@ -16,3 +16,3 @@ /// <reference types="jest" />

export declare function createOwnedNft(title: string, address: string, tokenId: string, balance: string, tokenType?: NftTokenType): OwnedNft;
export declare function createRawNftSale(contractAddress: string, tokenId: string, marketplace: NftSaleMarketplace, taker: NftSaleTakerType, buyerAddress: string, sellerAddress: string): RawNftSale;
export declare function createRawNftSale(marketplaceAddress: string, contractAddress: string, tokenId: string, marketplace: NftSaleMarketplace, taker: NftSaleTakerType, buyerAddress: string, sellerAddress: string): RawNftSale;
export declare function createRawContractForOwner(address: string, overrides?: Partial<RawNftContractForOwner>): RawNftContractForOwner;

@@ -19,0 +19,0 @@ export declare function verifyNftContractMetadata(actualNftContract: NftContract, expectedNftContract: NftContract, address: string, name: string, symbol: string, totalSupply: string, tokenType?: NftTokenType, openSea?: RawOpenSeaCollectionMetadata): void;

import type { BigNumberish } from '@ethersproject/bignumber';
import { BaseNft, ComputeRarityResponse, GetBaseNftsForContractOptions, GetBaseNftsForOwnerOptions, GetContractMetadataBatchResponse, GetContractsForOwnerOptions, GetContractsForOwnerResponse, GetFloorPriceResponse, GetMintedNftsOptions, GetNftMetadataBatchResponse, GetNftMetadataOptions, GetNftSalesOptions, GetNftSalesOptionsByContractAddress, GetNftSalesResponse, GetNftsForContractOptions, GetNftsForOwnerOptions, GetOwnersForContractOptions, GetOwnersForContractResponse, GetOwnersForContractWithTokenBalancesOptions, GetOwnersForContractWithTokenBalancesResponse, GetOwnersForNftOptions, GetOwnersForNftResponse, GetSpamContractsResponse, GetTransfersForContractOptions, IsSpamContractResponse, Nft, NftAttributesResponse, NftCollection, NftContract, NftContractBaseNftsResponse, NftContractNftsResponse, NftMetadataBatchOptions, NftMetadataBatchToken, OwnedBaseNft, OwnedBaseNftsResponse, OwnedNft, OwnedNftsResponse, SearchContractMetadataResponse, TransfersNftResponse } from '../types/nft-types';
import { BaseNft, ComputeRarityResponse, GetBaseNftsForContractOptions, GetBaseNftsForOwnerOptions, GetContractMetadataBatchResponse, GetContractsForOwnerOptions, GetContractsForOwnerResponse, GetFloorPriceResponse, GetMintedNftsOptions, GetNftMetadataBatchResponse, GetNftMetadataOptions, GetNftSalesOptions, GetNftSalesOptionsByContractAddress, GetNftSalesResponse, GetNftsForContractOptions, GetNftsForOwnerOptions, GetOwnersForContractOptions, GetOwnersForContractResponse, GetOwnersForContractWithTokenBalancesOptions, GetOwnersForContractWithTokenBalancesResponse, GetOwnersForNftOptions, GetOwnersForNftResponse, GetSpamContractsResponse, GetTransfersForContractOptions, IsAirdropNftResponse, IsSpamContractResponse, Nft, NftAttributesResponse, NftCollection, NftContract, NftContractBaseNftsResponse, NftContractNftsResponse, NftMetadataBatchOptions, NftMetadataBatchToken, OwnedBaseNft, OwnedBaseNftsResponse, OwnedNft, OwnedNftsResponse, SearchContractMetadataResponse, TransfersNftResponse } from '../types/nft-types';
import { GetTransfersForOwnerOptions, GetTransfersForOwnerTransferType, RefreshContractResult } from '../types/types';

@@ -227,3 +227,2 @@ /**

* @param contractAddress - The contract address to check.
* @beta
*/

@@ -235,7 +234,22 @@ isSpamContract(contractAddress: string): Promise<IsSpamContractResponse>;

* https://docs.alchemy.com/alchemy/enhanced-apis/nft-api/nft-api-faq#nft-spam-classification.
*
* @beta
*/
getSpamContracts(): Promise<GetSpamContractsResponse>;
/**
* Returns whether a contract is marked as spam or not by Alchemy. For more
* information on how we classify spam, go to our NFT API FAQ at
* https://docs.alchemy.com/alchemy/enhanced-apis/nft-api/nft-api-faq#nft-spam-classification.
*
* @param contractAddress - The contract address to check.
*/
reportSpam(contractAddress: string): Promise<void>;
/**
* Returns whether a token is marked as an airdrop or not.
* Airdrops are defined as NFTs that were minted to a user address in a transaction
* sent by a different address.
*
* @param contractAddress - The contract address to check.
* @param tokenId - Token id of the NFT.
*/
isAirdropNft(contractAddress: string, tokenId: string): Promise<IsAirdropNftResponse>;
/**
* Returns the floor prices of a NFT contract by marketplace.

@@ -242,0 +256,0 @@ *

import { BigNumberish } from '@ethersproject/bignumber';
import { AlchemyConfig } from '../api/alchemy-config';
import { BaseNft, ComputeRarityResponse, GetBaseNftsForContractOptions, GetBaseNftsForOwnerOptions, GetContractMetadataBatchResponse, GetContractsForOwnerOptions, GetContractsForOwnerResponse, GetFloorPriceResponse, GetMintedNftsOptions, GetNftMetadataBatchResponse, GetNftMetadataOptions, GetNftSalesOptions, GetNftSalesOptionsByContractAddress, GetNftSalesResponse, GetNftsForContractOptions, GetNftsForOwnerOptions, GetOwnersForContractOptions, GetOwnersForContractResponse, GetOwnersForContractWithTokenBalancesOptions, GetOwnersForContractWithTokenBalancesResponse, GetOwnersForNftResponse, GetSpamContractsResponse, GetTransfersForContractOptions, IsSpamContractResponse, Nft, NftAttributesResponse, NftCollection, NftContract, NftContractBaseNftsResponse, NftContractNftsResponse, NftMetadataBatchOptions, NftMetadataBatchToken, OwnedBaseNft, OwnedBaseNftsResponse, OwnedNft, OwnedNftsResponse, SearchContractMetadataResponse, TransfersNftResponse } from '../types/nft-types';
import { BaseNft, ComputeRarityResponse, GetBaseNftsForContractOptions, GetBaseNftsForOwnerOptions, GetContractMetadataBatchResponse, GetContractsForOwnerOptions, GetContractsForOwnerResponse, GetFloorPriceResponse, GetMintedNftsOptions, GetNftMetadataBatchResponse, GetNftMetadataOptions, GetNftSalesOptions, GetNftSalesOptionsByContractAddress, GetNftSalesResponse, GetNftsForContractOptions, GetNftsForOwnerOptions, GetOwnersForContractOptions, GetOwnersForContractResponse, GetOwnersForContractWithTokenBalancesOptions, GetOwnersForContractWithTokenBalancesResponse, GetOwnersForNftResponse, GetSpamContractsResponse, GetTransfersForContractOptions, IsAirdropNftResponse, IsSpamContractResponse, Nft, NftAttributesResponse, NftCollection, NftContract, NftContractBaseNftsResponse, NftContractNftsResponse, NftMetadataBatchOptions, NftMetadataBatchToken, OwnedBaseNft, OwnedBaseNftsResponse, OwnedNft, OwnedNftsResponse, SearchContractMetadataResponse, TransfersNftResponse } from '../types/nft-types';
import { AssetTransfersResponse, GetTransfersForOwnerOptions, GetTransfersForOwnerTransferType, RefreshContractResult } from '../types/types';

@@ -34,2 +34,4 @@ /**

export declare function getSpamContracts(config: AlchemyConfig, srcMethod?: string): Promise<GetSpamContractsResponse>;
export declare function reportSpam(config: AlchemyConfig, contractAddress: string, srcMethod?: string): Promise<void>;
export declare function isAirdropNft(config: AlchemyConfig, contractAddress: string, tokenId: string, srcMethod?: string): Promise<IsAirdropNftResponse>;
export declare function getFloorPrice(config: AlchemyConfig, contractAddress: string, srcMethod?: string): Promise<GetFloorPriceResponse>;

@@ -36,0 +38,0 @@ export declare function getNftSales(config: AlchemyConfig, options?: GetNftSalesOptions | GetNftSalesOptionsByContractAddress, srcMethod?: string): Promise<GetNftSalesResponse>;

@@ -167,2 +167,3 @@ /**

marketplace: string;
marketplaceAddress: string;
contractAddress: string;

@@ -214,2 +215,5 @@ tokenId: string;

}
export interface RawIsAirdropNftResponse {
isAirdrop: boolean;
}
export interface RawDisplayNftForContract {

@@ -216,0 +220,0 @@ tokenId: string;

@@ -332,2 +332,5 @@ import { BlockTag } from '@ethersproject/abstract-provider';

}
export interface IsAirdropNftResponse {
isAirdrop: boolean;
}
export interface GetSpamContractsResponse {

@@ -628,2 +631,4 @@ contractAddresses: string[];

marketplace: NftSaleMarketplace;
/** The marketplace address the sale was on. */
marketplaceAddress: string;
/** The NFT contract address. */

@@ -964,4 +969,9 @@ contractAddress: string;

imageUrl?: string;
/**
* The banner image URL determined by OpenSea.
* @deprecated Use {@link bannerImageUrl} instead.
*/
imageBannerUrl?: string;
/** The banner image URL determined by OpenSea. */
imageBannerUrl?: string;
bannerImageUrl?: string;
/** The description of the collection on OpenSea. */

@@ -968,0 +978,0 @@ description?: string;

@@ -1,1 +0,1 @@

export declare const VERSION = "3.1.0";
export declare const VERSION = "3.1.1";

@@ -16,3 +16,3 @@ /// <reference types="jest" />

export declare function createOwnedNft(title: string, address: string, tokenId: string, balance: string, tokenType?: NftTokenType): OwnedNft;
export declare function createRawNftSale(contractAddress: string, tokenId: string, marketplace: NftSaleMarketplace, taker: NftSaleTakerType, buyerAddress: string, sellerAddress: string): RawNftSale;
export declare function createRawNftSale(marketplaceAddress: string, contractAddress: string, tokenId: string, marketplace: NftSaleMarketplace, taker: NftSaleTakerType, buyerAddress: string, sellerAddress: string): RawNftSale;
export declare function createRawContractForOwner(address: string, overrides?: Partial<RawNftContractForOwner>): RawNftContractForOwner;

@@ -19,0 +19,0 @@ export declare function verifyNftContractMetadata(actualNftContract: NftContract, expectedNftContract: NftContract, address: string, name: string, symbol: string, totalSupply: string, tokenType?: NftTokenType, openSea?: RawOpenSeaCollectionMetadata): void;

import * as utils from './api/utils';
export { utils as Utils };
export { m as Alchemy, j as AlchemySubscription, r as AssetTransfersCategory, H as CommitmentLevel, o as Contract, p as ContractFactory, y as DebugCallType, J as DebugTracerType, x as DecodingAuthority, z as GasOptimizedTransactionStatus, G as GetTransfersForOwnerTransferType, N as Network, X as NftCollectionMarketplace, M as NftFilters, P as NftOrdering, U as NftRefreshState, Q as NftSaleMarketplace, R as NftSaleTakerType, L as NftSpamClassification, K as NftTokenType, O as OpenSeaSafelistRequestStatus, u as SimulateAssetType, w as SimulateChangeType, S as SortingOrder, T as TokenBalanceType, W as Wallet, F as WebhookType, B as WebhookVersion, f as fromHex, q as isHex, s as setLogLevel, t as toHex } from './index-1f2f6032.js';
export { m as Alchemy, j as AlchemySubscription, r as AssetTransfersCategory, H as CommitmentLevel, o as Contract, p as ContractFactory, y as DebugCallType, J as DebugTracerType, x as DecodingAuthority, z as GasOptimizedTransactionStatus, G as GetTransfersForOwnerTransferType, N as Network, X as NftCollectionMarketplace, M as NftFilters, P as NftOrdering, U as NftRefreshState, Q as NftSaleMarketplace, R as NftSaleTakerType, L as NftSpamClassification, K as NftTokenType, O as OpenSeaSafelistRequestStatus, u as SimulateAssetType, w as SimulateChangeType, S as SortingOrder, T as TokenBalanceType, W as Wallet, F as WebhookType, B as WebhookVersion, f as fromHex, q as isHex, s as setLogLevel, t as toHex } from './index-24dee0e9.js';
export { BigNumber } from '@ethersproject/bignumber';

@@ -5,0 +5,0 @@ import 'axios';

import type { BigNumberish } from '@ethersproject/bignumber';
import { BaseNft, ComputeRarityResponse, GetBaseNftsForContractOptions, GetBaseNftsForOwnerOptions, GetContractMetadataBatchResponse, GetContractsForOwnerOptions, GetContractsForOwnerResponse, GetFloorPriceResponse, GetMintedNftsOptions, GetNftMetadataBatchResponse, GetNftMetadataOptions, GetNftSalesOptions, GetNftSalesOptionsByContractAddress, GetNftSalesResponse, GetNftsForContractOptions, GetNftsForOwnerOptions, GetOwnersForContractOptions, GetOwnersForContractResponse, GetOwnersForContractWithTokenBalancesOptions, GetOwnersForContractWithTokenBalancesResponse, GetOwnersForNftOptions, GetOwnersForNftResponse, GetSpamContractsResponse, GetTransfersForContractOptions, IsSpamContractResponse, Nft, NftAttributesResponse, NftCollection, NftContract, NftContractBaseNftsResponse, NftContractNftsResponse, NftMetadataBatchOptions, NftMetadataBatchToken, OwnedBaseNft, OwnedBaseNftsResponse, OwnedNft, OwnedNftsResponse, SearchContractMetadataResponse, TransfersNftResponse } from '../types/nft-types';
import { BaseNft, ComputeRarityResponse, GetBaseNftsForContractOptions, GetBaseNftsForOwnerOptions, GetContractMetadataBatchResponse, GetContractsForOwnerOptions, GetContractsForOwnerResponse, GetFloorPriceResponse, GetMintedNftsOptions, GetNftMetadataBatchResponse, GetNftMetadataOptions, GetNftSalesOptions, GetNftSalesOptionsByContractAddress, GetNftSalesResponse, GetNftsForContractOptions, GetNftsForOwnerOptions, GetOwnersForContractOptions, GetOwnersForContractResponse, GetOwnersForContractWithTokenBalancesOptions, GetOwnersForContractWithTokenBalancesResponse, GetOwnersForNftOptions, GetOwnersForNftResponse, GetSpamContractsResponse, GetTransfersForContractOptions, IsAirdropNftResponse, IsSpamContractResponse, Nft, NftAttributesResponse, NftCollection, NftContract, NftContractBaseNftsResponse, NftContractNftsResponse, NftMetadataBatchOptions, NftMetadataBatchToken, OwnedBaseNft, OwnedBaseNftsResponse, OwnedNft, OwnedNftsResponse, SearchContractMetadataResponse, TransfersNftResponse } from '../types/nft-types';
import { GetTransfersForOwnerOptions, GetTransfersForOwnerTransferType, RefreshContractResult } from '../types/types';

@@ -227,3 +227,2 @@ /**

* @param contractAddress - The contract address to check.
* @beta
*/

@@ -235,7 +234,22 @@ isSpamContract(contractAddress: string): Promise<IsSpamContractResponse>;

* https://docs.alchemy.com/alchemy/enhanced-apis/nft-api/nft-api-faq#nft-spam-classification.
*
* @beta
*/
getSpamContracts(): Promise<GetSpamContractsResponse>;
/**
* Returns whether a contract is marked as spam or not by Alchemy. For more
* information on how we classify spam, go to our NFT API FAQ at
* https://docs.alchemy.com/alchemy/enhanced-apis/nft-api/nft-api-faq#nft-spam-classification.
*
* @param contractAddress - The contract address to check.
*/
reportSpam(contractAddress: string): Promise<void>;
/**
* Returns whether a token is marked as an airdrop or not.
* Airdrops are defined as NFTs that were minted to a user address in a transaction
* sent by a different address.
*
* @param contractAddress - The contract address to check.
* @param tokenId - Token id of the NFT.
*/
isAirdropNft(contractAddress: string, tokenId: string): Promise<IsAirdropNftResponse>;
/**
* Returns the floor prices of a NFT contract by marketplace.

@@ -242,0 +256,0 @@ *

import { BigNumberish } from '@ethersproject/bignumber';
import { AlchemyConfig } from '../api/alchemy-config';
import { BaseNft, ComputeRarityResponse, GetBaseNftsForContractOptions, GetBaseNftsForOwnerOptions, GetContractMetadataBatchResponse, GetContractsForOwnerOptions, GetContractsForOwnerResponse, GetFloorPriceResponse, GetMintedNftsOptions, GetNftMetadataBatchResponse, GetNftMetadataOptions, GetNftSalesOptions, GetNftSalesOptionsByContractAddress, GetNftSalesResponse, GetNftsForContractOptions, GetNftsForOwnerOptions, GetOwnersForContractOptions, GetOwnersForContractResponse, GetOwnersForContractWithTokenBalancesOptions, GetOwnersForContractWithTokenBalancesResponse, GetOwnersForNftResponse, GetSpamContractsResponse, GetTransfersForContractOptions, IsSpamContractResponse, Nft, NftAttributesResponse, NftCollection, NftContract, NftContractBaseNftsResponse, NftContractNftsResponse, NftMetadataBatchOptions, NftMetadataBatchToken, OwnedBaseNft, OwnedBaseNftsResponse, OwnedNft, OwnedNftsResponse, SearchContractMetadataResponse, TransfersNftResponse } from '../types/nft-types';
import { BaseNft, ComputeRarityResponse, GetBaseNftsForContractOptions, GetBaseNftsForOwnerOptions, GetContractMetadataBatchResponse, GetContractsForOwnerOptions, GetContractsForOwnerResponse, GetFloorPriceResponse, GetMintedNftsOptions, GetNftMetadataBatchResponse, GetNftMetadataOptions, GetNftSalesOptions, GetNftSalesOptionsByContractAddress, GetNftSalesResponse, GetNftsForContractOptions, GetNftsForOwnerOptions, GetOwnersForContractOptions, GetOwnersForContractResponse, GetOwnersForContractWithTokenBalancesOptions, GetOwnersForContractWithTokenBalancesResponse, GetOwnersForNftResponse, GetSpamContractsResponse, GetTransfersForContractOptions, IsAirdropNftResponse, IsSpamContractResponse, Nft, NftAttributesResponse, NftCollection, NftContract, NftContractBaseNftsResponse, NftContractNftsResponse, NftMetadataBatchOptions, NftMetadataBatchToken, OwnedBaseNft, OwnedBaseNftsResponse, OwnedNft, OwnedNftsResponse, SearchContractMetadataResponse, TransfersNftResponse } from '../types/nft-types';
import { AssetTransfersResponse, GetTransfersForOwnerOptions, GetTransfersForOwnerTransferType, RefreshContractResult } from '../types/types';

@@ -34,2 +34,4 @@ /**

export declare function getSpamContracts(config: AlchemyConfig, srcMethod?: string): Promise<GetSpamContractsResponse>;
export declare function reportSpam(config: AlchemyConfig, contractAddress: string, srcMethod?: string): Promise<void>;
export declare function isAirdropNft(config: AlchemyConfig, contractAddress: string, tokenId: string, srcMethod?: string): Promise<IsAirdropNftResponse>;
export declare function getFloorPrice(config: AlchemyConfig, contractAddress: string, srcMethod?: string): Promise<GetFloorPriceResponse>;

@@ -36,0 +38,0 @@ export declare function getNftSales(config: AlchemyConfig, options?: GetNftSalesOptions | GetNftSalesOptionsByContractAddress, srcMethod?: string): Promise<GetNftSalesResponse>;

@@ -167,2 +167,3 @@ /**

marketplace: string;
marketplaceAddress: string;
contractAddress: string;

@@ -214,2 +215,5 @@ tokenId: string;

}
export interface RawIsAirdropNftResponse {
isAirdrop: boolean;
}
export interface RawDisplayNftForContract {

@@ -216,0 +220,0 @@ tokenId: string;

@@ -332,2 +332,5 @@ import { BlockTag } from '@ethersproject/abstract-provider';

}
export interface IsAirdropNftResponse {
isAirdrop: boolean;
}
export interface GetSpamContractsResponse {

@@ -628,2 +631,4 @@ contractAddresses: string[];

marketplace: NftSaleMarketplace;
/** The marketplace address the sale was on. */
marketplaceAddress: string;
/** The NFT contract address. */

@@ -964,4 +969,9 @@ contractAddress: string;

imageUrl?: string;
/**
* The banner image URL determined by OpenSea.
* @deprecated Use {@link bannerImageUrl} instead.
*/
imageBannerUrl?: string;
/** The banner image URL determined by OpenSea. */
imageBannerUrl?: string;
bannerImageUrl?: string;
/** The description of the collection on OpenSea. */

@@ -968,0 +978,0 @@ description?: string;

@@ -1,1 +0,1 @@

export declare const VERSION = "3.1.0";
export declare const VERSION = "3.1.1";

@@ -16,3 +16,3 @@ /// <reference types="jest" />

export declare function createOwnedNft(title: string, address: string, tokenId: string, balance: string, tokenType?: NftTokenType): OwnedNft;
export declare function createRawNftSale(contractAddress: string, tokenId: string, marketplace: NftSaleMarketplace, taker: NftSaleTakerType, buyerAddress: string, sellerAddress: string): RawNftSale;
export declare function createRawNftSale(marketplaceAddress: string, contractAddress: string, tokenId: string, marketplace: NftSaleMarketplace, taker: NftSaleTakerType, buyerAddress: string, sellerAddress: string): RawNftSale;
export declare function createRawContractForOwner(address: string, overrides?: Partial<RawNftContractForOwner>): RawNftContractForOwner;

@@ -19,0 +19,0 @@ export declare function verifyNftContractMetadata(actualNftContract: NftContract, expectedNftContract: NftContract, address: string, name: string, symbol: string, totalSupply: string, tokenType?: NftTokenType, openSea?: RawOpenSeaCollectionMetadata): void;

import type { BigNumberish } from '@ethersproject/bignumber';
import { BaseNft, ComputeRarityResponse, GetBaseNftsForContractOptions, GetBaseNftsForOwnerOptions, GetContractMetadataBatchResponse, GetContractsForOwnerOptions, GetContractsForOwnerResponse, GetFloorPriceResponse, GetMintedNftsOptions, GetNftMetadataBatchResponse, GetNftMetadataOptions, GetNftSalesOptions, GetNftSalesOptionsByContractAddress, GetNftSalesResponse, GetNftsForContractOptions, GetNftsForOwnerOptions, GetOwnersForContractOptions, GetOwnersForContractResponse, GetOwnersForContractWithTokenBalancesOptions, GetOwnersForContractWithTokenBalancesResponse, GetOwnersForNftOptions, GetOwnersForNftResponse, GetSpamContractsResponse, GetTransfersForContractOptions, IsSpamContractResponse, Nft, NftAttributesResponse, NftCollection, NftContract, NftContractBaseNftsResponse, NftContractNftsResponse, NftMetadataBatchOptions, NftMetadataBatchToken, OwnedBaseNft, OwnedBaseNftsResponse, OwnedNft, OwnedNftsResponse, SearchContractMetadataResponse, TransfersNftResponse } from '../types/nft-types';
import { BaseNft, ComputeRarityResponse, GetBaseNftsForContractOptions, GetBaseNftsForOwnerOptions, GetContractMetadataBatchResponse, GetContractsForOwnerOptions, GetContractsForOwnerResponse, GetFloorPriceResponse, GetMintedNftsOptions, GetNftMetadataBatchResponse, GetNftMetadataOptions, GetNftSalesOptions, GetNftSalesOptionsByContractAddress, GetNftSalesResponse, GetNftsForContractOptions, GetNftsForOwnerOptions, GetOwnersForContractOptions, GetOwnersForContractResponse, GetOwnersForContractWithTokenBalancesOptions, GetOwnersForContractWithTokenBalancesResponse, GetOwnersForNftOptions, GetOwnersForNftResponse, GetSpamContractsResponse, GetTransfersForContractOptions, IsAirdropNftResponse, IsSpamContractResponse, Nft, NftAttributesResponse, NftCollection, NftContract, NftContractBaseNftsResponse, NftContractNftsResponse, NftMetadataBatchOptions, NftMetadataBatchToken, OwnedBaseNft, OwnedBaseNftsResponse, OwnedNft, OwnedNftsResponse, SearchContractMetadataResponse, TransfersNftResponse } from '../types/nft-types';
import { GetTransfersForOwnerOptions, GetTransfersForOwnerTransferType, RefreshContractResult } from '../types/types';

@@ -227,3 +227,2 @@ /**

* @param contractAddress - The contract address to check.
* @beta
*/

@@ -235,7 +234,22 @@ isSpamContract(contractAddress: string): Promise<IsSpamContractResponse>;

* https://docs.alchemy.com/alchemy/enhanced-apis/nft-api/nft-api-faq#nft-spam-classification.
*
* @beta
*/
getSpamContracts(): Promise<GetSpamContractsResponse>;
/**
* Returns whether a contract is marked as spam or not by Alchemy. For more
* information on how we classify spam, go to our NFT API FAQ at
* https://docs.alchemy.com/alchemy/enhanced-apis/nft-api/nft-api-faq#nft-spam-classification.
*
* @param contractAddress - The contract address to check.
*/
reportSpam(contractAddress: string): Promise<void>;
/**
* Returns whether a token is marked as an airdrop or not.
* Airdrops are defined as NFTs that were minted to a user address in a transaction
* sent by a different address.
*
* @param contractAddress - The contract address to check.
* @param tokenId - Token id of the NFT.
*/
isAirdropNft(contractAddress: string, tokenId: string): Promise<IsAirdropNftResponse>;
/**
* Returns the floor prices of a NFT contract by marketplace.

@@ -242,0 +256,0 @@ *

import { BigNumberish } from '@ethersproject/bignumber';
import { AlchemyConfig } from '../api/alchemy-config';
import { BaseNft, ComputeRarityResponse, GetBaseNftsForContractOptions, GetBaseNftsForOwnerOptions, GetContractMetadataBatchResponse, GetContractsForOwnerOptions, GetContractsForOwnerResponse, GetFloorPriceResponse, GetMintedNftsOptions, GetNftMetadataBatchResponse, GetNftMetadataOptions, GetNftSalesOptions, GetNftSalesOptionsByContractAddress, GetNftSalesResponse, GetNftsForContractOptions, GetNftsForOwnerOptions, GetOwnersForContractOptions, GetOwnersForContractResponse, GetOwnersForContractWithTokenBalancesOptions, GetOwnersForContractWithTokenBalancesResponse, GetOwnersForNftResponse, GetSpamContractsResponse, GetTransfersForContractOptions, IsSpamContractResponse, Nft, NftAttributesResponse, NftCollection, NftContract, NftContractBaseNftsResponse, NftContractNftsResponse, NftMetadataBatchOptions, NftMetadataBatchToken, OwnedBaseNft, OwnedBaseNftsResponse, OwnedNft, OwnedNftsResponse, SearchContractMetadataResponse, TransfersNftResponse } from '../types/nft-types';
import { BaseNft, ComputeRarityResponse, GetBaseNftsForContractOptions, GetBaseNftsForOwnerOptions, GetContractMetadataBatchResponse, GetContractsForOwnerOptions, GetContractsForOwnerResponse, GetFloorPriceResponse, GetMintedNftsOptions, GetNftMetadataBatchResponse, GetNftMetadataOptions, GetNftSalesOptions, GetNftSalesOptionsByContractAddress, GetNftSalesResponse, GetNftsForContractOptions, GetNftsForOwnerOptions, GetOwnersForContractOptions, GetOwnersForContractResponse, GetOwnersForContractWithTokenBalancesOptions, GetOwnersForContractWithTokenBalancesResponse, GetOwnersForNftResponse, GetSpamContractsResponse, GetTransfersForContractOptions, IsAirdropNftResponse, IsSpamContractResponse, Nft, NftAttributesResponse, NftCollection, NftContract, NftContractBaseNftsResponse, NftContractNftsResponse, NftMetadataBatchOptions, NftMetadataBatchToken, OwnedBaseNft, OwnedBaseNftsResponse, OwnedNft, OwnedNftsResponse, SearchContractMetadataResponse, TransfersNftResponse } from '../types/nft-types';
import { AssetTransfersResponse, GetTransfersForOwnerOptions, GetTransfersForOwnerTransferType, RefreshContractResult } from '../types/types';

@@ -34,2 +34,4 @@ /**

export declare function getSpamContracts(config: AlchemyConfig, srcMethod?: string): Promise<GetSpamContractsResponse>;
export declare function reportSpam(config: AlchemyConfig, contractAddress: string, srcMethod?: string): Promise<void>;
export declare function isAirdropNft(config: AlchemyConfig, contractAddress: string, tokenId: string, srcMethod?: string): Promise<IsAirdropNftResponse>;
export declare function getFloorPrice(config: AlchemyConfig, contractAddress: string, srcMethod?: string): Promise<GetFloorPriceResponse>;

@@ -36,0 +38,0 @@ export declare function getNftSales(config: AlchemyConfig, options?: GetNftSalesOptions | GetNftSalesOptionsByContractAddress, srcMethod?: string): Promise<GetNftSalesResponse>;

@@ -167,2 +167,3 @@ /**

marketplace: string;
marketplaceAddress: string;
contractAddress: string;

@@ -214,2 +215,5 @@ tokenId: string;

}
export interface RawIsAirdropNftResponse {
isAirdrop: boolean;
}
export interface RawDisplayNftForContract {

@@ -216,0 +220,0 @@ tokenId: string;

@@ -332,2 +332,5 @@ import { BlockTag } from '@ethersproject/abstract-provider';

}
export interface IsAirdropNftResponse {
isAirdrop: boolean;
}
export interface GetSpamContractsResponse {

@@ -628,2 +631,4 @@ contractAddresses: string[];

marketplace: NftSaleMarketplace;
/** The marketplace address the sale was on. */
marketplaceAddress: string;
/** The NFT contract address. */

@@ -964,4 +969,9 @@ contractAddress: string;

imageUrl?: string;
/**
* The banner image URL determined by OpenSea.
* @deprecated Use {@link bannerImageUrl} instead.
*/
imageBannerUrl?: string;
/** The banner image URL determined by OpenSea. */
imageBannerUrl?: string;
bannerImageUrl?: string;
/** The description of the collection on OpenSea. */

@@ -968,0 +978,0 @@ description?: string;

@@ -1,1 +0,1 @@

export declare const VERSION = "3.1.0";
export declare const VERSION = "3.1.1";

@@ -16,3 +16,3 @@ /// <reference types="jest" />

export declare function createOwnedNft(title: string, address: string, tokenId: string, balance: string, tokenType?: NftTokenType): OwnedNft;
export declare function createRawNftSale(contractAddress: string, tokenId: string, marketplace: NftSaleMarketplace, taker: NftSaleTakerType, buyerAddress: string, sellerAddress: string): RawNftSale;
export declare function createRawNftSale(marketplaceAddress: string, contractAddress: string, tokenId: string, marketplace: NftSaleMarketplace, taker: NftSaleTakerType, buyerAddress: string, sellerAddress: string): RawNftSale;
export declare function createRawContractForOwner(address: string, overrides?: Partial<RawNftContractForOwner>): RawNftContractForOwner;

@@ -19,0 +19,0 @@ export declare function verifyNftContractMetadata(actualNftContract: NftContract, expectedNftContract: NftContract, address: string, name: string, symbol: string, totalSupply: string, tokenType?: NftTokenType, openSea?: RawOpenSeaCollectionMetadata): void;

{
"name": "alchemy-sdk",
"version": "3.1.0",
"version": "3.1.1",
"description": "Extended Ethers.js SDK for Alchemy APIs",

@@ -5,0 +5,0 @@ "author": "Alchemy",

@@ -228,2 +228,4 @@ Alchemy SDK for Javascript

- `getSpamContracts()`: Returns a list of all spam contracts marked by Alchemy.
- `reportSpam()`: Report feedback that a given NFT contract address is a spam contract as defined by Alchemy.
- `isAirdropNft()`: Check whether the given NFT token is marked as an airdrop or not. Airdrops are defined as NFTs that were minted to a user address in a transaction sent by a different address.
- `refreshNftMetadata()`: Refresh the cached NFT metadata for a contract address and a single tokenId.

@@ -230,0 +232,0 @@ - `refreshContract()`: Enqueues the specified contract address to have all token ids' metadata refreshed.

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