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

alchemy-sdk

Package Overview
Dependencies
Maintainers
2
Versions
64
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.0.0-beta.2 to 3.0.0-beta.3

dist/cjs/alchemy-provider-d7260074.js

11

dist/cjs/api/src/api/alchemy-provider.d.ts

@@ -40,2 +40,13 @@ import { Network as NetworkFromEthers } from '@ethersproject/networks';

send(method: string, params: Array<any>): Promise<any>;
/**
* Overrides the base `Formatter` class inherited from ethers to support
* returning custom fields in Ethers response types.
*
* For context, ethers has a `Formatter` class that is used to format the
* response from a JSON-RPC request. Any fields that are not defined in the
* `Formatter` class are removed from the returned response. By modifying the
* `Formatter` class in this method, we can add support for fields that are
* not defined in ethers.
*/
private modifyFormatter;
}

4

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

@@ -5,0 +5,0 @@ * The NFT namespace contains all the functionality related to NFTs.

@@ -5,2 +5,3 @@ /** This is the main entry point for the library and exports user-facing API. */

export * from './types/types';
export * from './types/nft-types';
export { Alchemy } from './api/alchemy';

@@ -19,4 +20,3 @@ export { Wallet } from './api/alchemy-wallet';

export type { DebugNamespace } from './api/debug-namespace';
export type { NftContract, Nft, BaseNft } from './api/nft';
export { fromHex, toHex, isHex } from './api/util';
export { setLogLevel, LogLevelString as LogLevel } from './util/logger';
import { BigNumberish } from '@ethersproject/bignumber';
import { AlchemyConfig } from '../api/alchemy-config';
import { BaseNft, Nft, NftCollection, NftContract } from '../api/nft';
import { AssetTransfersResponse, ComputeRarityResponse, GetBaseNftsForContractOptions, GetBaseNftsForOwnerOptions, GetContractMetadataBatchResponse, GetContractsForOwnerOptions, GetContractsForOwnerResponse, GetFloorPriceResponse, GetMintedNftsOptions, GetNftMetadataBatchResponse, GetNftMetadataOptions, GetNftSalesOptions, GetNftSalesOptionsByContractAddress, GetNftSalesResponse, GetNftsForContractOptions, GetNftsForOwnerOptions, GetOwnersForContractOptions, GetOwnersForContractResponse, GetOwnersForContractWithTokenBalancesOptions, GetOwnersForContractWithTokenBalancesResponse, GetOwnersForNftResponse, GetSpamContractsResponse, GetTransfersForContractOptions, GetTransfersForOwnerOptions, GetTransfersForOwnerTransferType, IsSpamContractResponse, NftAttributesResponse, NftContractBaseNftsResponse, NftContractNftsResponse, NftMetadataBatchOptions, NftMetadataBatchToken, OwnedBaseNft, OwnedBaseNftsResponse, OwnedNft, OwnedNftsResponse, RefreshContractResult, SearchContractMetadataResponse, TransfersNftResponse } from '../types/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, 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';
/**

@@ -6,0 +6,0 @@ * This file contains the underlying implementations for exposed API surface in

@@ -18,2 +18,8 @@ /**

}
export interface RawNftMint {
mintAddress?: string;
blockNumber?: number;
timestamp?: string;
transactionHash?: string;
}
export interface RawNftContract {

@@ -29,8 +35,16 @@ address: string;

}
/** OpenSea's base metadata for an NFT collection */
export interface RawOpenSeaBaseCollectionMetadata {
floorPrice?: number;
export interface RawNftCollectionFloorPrice {
marketplace: string | null;
floorPrice: number | null;
priceCurrency: string | null;
}
export interface RawBaseNftCollection {
name: string;
slug: string | null;
externalUrl: string | null;
bannerImageUrl: string | null;
}
/** OpenSea's full metadata for an NFT collection. */
export interface RawOpenSeaCollectionMetadata extends RawOpenSeaBaseCollectionMetadata {
export interface RawOpenSeaCollectionMetadata {
floorPrice: number | null;
collectionName: string | null;

@@ -37,0 +51,0 @@ safelistRequestStatus: string | null;

@@ -32,2 +32,4 @@ import { Network as NetworkFromEthers } from '@ethersproject/networks';

"polygonzkevm-testnet": string;
"base-mainnet": string;
"base-goerli": string;
};

@@ -34,0 +36,0 @@ /**

import { InputNftTokenType } from '../internal/nft-api';
import { NftTokenType } from '../types/types';
import { NftTokenType } from '../types/nft-types';
export declare function sanitizeTokenType(tokenType?: NftTokenType): InputNftTokenType;

@@ -1,4 +0,3 @@

import { BaseNft, Nft, NftCollection, NftContract, NftContractForNft } from '../api/nft';
import { RawContractBaseNft, RawGetNftSalesResponse, RawNft, RawNftCollection, RawNftContract, RawNftContractForNft, RawNftContractForOwner, RawOwnedBaseNft } from '../internal/raw-interfaces';
import { GetNftSalesResponse, NftContractForOwner } from '../types/types';
import { BaseNft, GetNftSalesResponse, Nft, NftCollection, NftContract, NftContractForNft, NftContractForOwner } from '../types/nft-types';
export declare function formatBlock(block: string | number): string;

@@ -5,0 +4,0 @@ export declare function getNftContractForNftFromRaw(rawNftContract: RawNftContractForNft): NftContractForNft;

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

export declare const VERSION = "3.0.0-beta.0";
export declare const VERSION = "3.0.0-beta.3";

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

var utils = require('./api/utils');
var index = require('./index-36ec6034.js');
var index = require('./index-7d2992a7.js');
var bignumber = require('@ethersproject/bignumber');

@@ -76,2 +76,6 @@ require('axios');

});
Object.defineProperty(exports, 'NftCollectionMarketplace', {
enumerable: true,
get: function () { return index.NftCollectionMarketplace; }
});
Object.defineProperty(exports, 'NftFilters', {

@@ -78,0 +82,0 @@ enumerable: true,

@@ -40,2 +40,13 @@ import { Network as NetworkFromEthers } from '@ethersproject/networks';

send(method: string, params: Array<any>): Promise<any>;
/**
* Overrides the base `Formatter` class inherited from ethers to support
* returning custom fields in Ethers response types.
*
* For context, ethers has a `Formatter` class that is used to format the
* response from a JSON-RPC request. Any fields that are not defined in the
* `Formatter` class are removed from the returned response. By modifying the
* `Formatter` class in this method, we can add support for fields that are
* not defined in ethers.
*/
private modifyFormatter;
}
import type { BigNumberish } from '@ethersproject/bignumber';
import { ComputeRarityResponse, GetBaseNftsForContractOptions, GetBaseNftsForOwnerOptions, GetContractMetadataBatchResponse, GetContractsForOwnerOptions, GetContractsForOwnerResponse, GetFloorPriceResponse, GetMintedNftsOptions, GetNftMetadataBatchResponse, GetNftMetadataOptions, GetNftSalesOptions, GetNftSalesOptionsByContractAddress, GetNftSalesResponse, GetNftsForContractOptions, GetNftsForOwnerOptions, GetOwnersForContractOptions, GetOwnersForContractResponse, GetOwnersForContractWithTokenBalancesOptions, GetOwnersForContractWithTokenBalancesResponse, GetOwnersForNftOptions, GetOwnersForNftResponse, GetSpamContractsResponse, GetTransfersForContractOptions, GetTransfersForOwnerOptions, GetTransfersForOwnerTransferType, IsSpamContractResponse, NftAttributesResponse, NftContractBaseNftsResponse, NftContractNftsResponse, NftMetadataBatchOptions, NftMetadataBatchToken, OwnedBaseNft, OwnedBaseNftsResponse, OwnedNft, OwnedNftsResponse, RefreshContractResult, SearchContractMetadataResponse, TransfersNftResponse } from '../types/types';
import { BaseNft, Nft, NftCollection, NftContract } from './nft';
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 { GetTransfersForOwnerOptions, GetTransfersForOwnerTransferType, RefreshContractResult } from '../types/types';
/**

@@ -5,0 +5,0 @@ * The NFT namespace contains all the functionality related to NFTs.

@@ -5,2 +5,3 @@ /** This is the main entry point for the library and exports user-facing API. */

export * from './types/types';
export * from './types/nft-types';
export { Alchemy } from './api/alchemy';

@@ -19,4 +20,3 @@ export { Wallet } from './api/alchemy-wallet';

export type { DebugNamespace } from './api/debug-namespace';
export type { NftContract, Nft, BaseNft } from './api/nft';
export { fromHex, toHex, isHex } from './api/util';
export { setLogLevel, LogLevelString as LogLevel } from './util/logger';
import { BigNumberish } from '@ethersproject/bignumber';
import { AlchemyConfig } from '../api/alchemy-config';
import { BaseNft, Nft, NftCollection, NftContract } from '../api/nft';
import { AssetTransfersResponse, ComputeRarityResponse, GetBaseNftsForContractOptions, GetBaseNftsForOwnerOptions, GetContractMetadataBatchResponse, GetContractsForOwnerOptions, GetContractsForOwnerResponse, GetFloorPriceResponse, GetMintedNftsOptions, GetNftMetadataBatchResponse, GetNftMetadataOptions, GetNftSalesOptions, GetNftSalesOptionsByContractAddress, GetNftSalesResponse, GetNftsForContractOptions, GetNftsForOwnerOptions, GetOwnersForContractOptions, GetOwnersForContractResponse, GetOwnersForContractWithTokenBalancesOptions, GetOwnersForContractWithTokenBalancesResponse, GetOwnersForNftResponse, GetSpamContractsResponse, GetTransfersForContractOptions, GetTransfersForOwnerOptions, GetTransfersForOwnerTransferType, IsSpamContractResponse, NftAttributesResponse, NftContractBaseNftsResponse, NftContractNftsResponse, NftMetadataBatchOptions, NftMetadataBatchToken, OwnedBaseNft, OwnedBaseNftsResponse, OwnedNft, OwnedNftsResponse, RefreshContractResult, SearchContractMetadataResponse, TransfersNftResponse } from '../types/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, 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';
/**

@@ -6,0 +6,0 @@ * This file contains the underlying implementations for exposed API surface in

@@ -18,2 +18,8 @@ /**

}
export interface RawNftMint {
mintAddress?: string;
blockNumber?: number;
timestamp?: string;
transactionHash?: string;
}
export interface RawNftContract {

@@ -29,8 +35,16 @@ address: string;

}
/** OpenSea's base metadata for an NFT collection */
export interface RawOpenSeaBaseCollectionMetadata {
floorPrice?: number;
export interface RawNftCollectionFloorPrice {
marketplace: string | null;
floorPrice: number | null;
priceCurrency: string | null;
}
export interface RawBaseNftCollection {
name: string;
slug: string | null;
externalUrl: string | null;
bannerImageUrl: string | null;
}
/** OpenSea's full metadata for an NFT collection. */
export interface RawOpenSeaCollectionMetadata extends RawOpenSeaBaseCollectionMetadata {
export interface RawOpenSeaCollectionMetadata {
floorPrice: number | null;
collectionName: string | null;

@@ -37,0 +51,0 @@ safelistRequestStatus: string | null;

@@ -32,2 +32,4 @@ import { Network as NetworkFromEthers } from '@ethersproject/networks';

"polygonzkevm-testnet": string;
"base-mainnet": string;
"base-goerli": string;
};

@@ -34,0 +36,0 @@ /**

import { InputNftTokenType } from '../internal/nft-api';
import { NftTokenType } from '../types/types';
import { NftTokenType } from '../types/nft-types';
export declare function sanitizeTokenType(tokenType?: NftTokenType): InputNftTokenType;

@@ -1,4 +0,3 @@

import { BaseNft, Nft, NftCollection, NftContract, NftContractForNft } from '../api/nft';
import { RawContractBaseNft, RawGetNftSalesResponse, RawNft, RawNftCollection, RawNftContract, RawNftContractForNft, RawNftContractForOwner, RawOwnedBaseNft } from '../internal/raw-interfaces';
import { GetNftSalesResponse, NftContractForOwner } from '../types/types';
import { BaseNft, GetNftSalesResponse, Nft, NftCollection, NftContract, NftContractForNft, NftContractForOwner } from '../types/nft-types';
export declare function formatBlock(block: string | number): string;

@@ -5,0 +4,0 @@ export declare function getNftContractForNftFromRaw(rawNftContract: RawNftContractForNft): NftContractForNft;

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

export declare const VERSION = "3.0.0-beta.0";
export declare const VERSION = "3.0.0-beta.3";

@@ -40,2 +40,13 @@ import { Network as NetworkFromEthers } from '@ethersproject/networks';

send(method: string, params: Array<any>): Promise<any>;
/**
* Overrides the base `Formatter` class inherited from ethers to support
* returning custom fields in Ethers response types.
*
* For context, ethers has a `Formatter` class that is used to format the
* response from a JSON-RPC request. Any fields that are not defined in the
* `Formatter` class are removed from the returned response. By modifying the
* `Formatter` class in this method, we can add support for fields that are
* not defined in ethers.
*/
private modifyFormatter;
}
import type { BigNumberish } from '@ethersproject/bignumber';
import { ComputeRarityResponse, GetBaseNftsForContractOptions, GetBaseNftsForOwnerOptions, GetContractMetadataBatchResponse, GetContractsForOwnerOptions, GetContractsForOwnerResponse, GetFloorPriceResponse, GetMintedNftsOptions, GetNftMetadataBatchResponse, GetNftMetadataOptions, GetNftSalesOptions, GetNftSalesOptionsByContractAddress, GetNftSalesResponse, GetNftsForContractOptions, GetNftsForOwnerOptions, GetOwnersForContractOptions, GetOwnersForContractResponse, GetOwnersForContractWithTokenBalancesOptions, GetOwnersForContractWithTokenBalancesResponse, GetOwnersForNftOptions, GetOwnersForNftResponse, GetSpamContractsResponse, GetTransfersForContractOptions, GetTransfersForOwnerOptions, GetTransfersForOwnerTransferType, IsSpamContractResponse, NftAttributesResponse, NftContractBaseNftsResponse, NftContractNftsResponse, NftMetadataBatchOptions, NftMetadataBatchToken, OwnedBaseNft, OwnedBaseNftsResponse, OwnedNft, OwnedNftsResponse, RefreshContractResult, SearchContractMetadataResponse, TransfersNftResponse } from '../types/types';
import { BaseNft, Nft, NftCollection, NftContract } from './nft';
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 { GetTransfersForOwnerOptions, GetTransfersForOwnerTransferType, RefreshContractResult } from '../types/types';
/**

@@ -5,0 +5,0 @@ * The NFT namespace contains all the functionality related to NFTs.

@@ -5,2 +5,3 @@ /** This is the main entry point for the library and exports user-facing API. */

export * from './types/types';
export * from './types/nft-types';
export { Alchemy } from './api/alchemy';

@@ -19,4 +20,3 @@ export { Wallet } from './api/alchemy-wallet';

export type { DebugNamespace } from './api/debug-namespace';
export type { NftContract, Nft, BaseNft } from './api/nft';
export { fromHex, toHex, isHex } from './api/util';
export { setLogLevel, LogLevelString as LogLevel } from './util/logger';
import { BigNumberish } from '@ethersproject/bignumber';
import { AlchemyConfig } from '../api/alchemy-config';
import { BaseNft, Nft, NftCollection, NftContract } from '../api/nft';
import { AssetTransfersResponse, ComputeRarityResponse, GetBaseNftsForContractOptions, GetBaseNftsForOwnerOptions, GetContractMetadataBatchResponse, GetContractsForOwnerOptions, GetContractsForOwnerResponse, GetFloorPriceResponse, GetMintedNftsOptions, GetNftMetadataBatchResponse, GetNftMetadataOptions, GetNftSalesOptions, GetNftSalesOptionsByContractAddress, GetNftSalesResponse, GetNftsForContractOptions, GetNftsForOwnerOptions, GetOwnersForContractOptions, GetOwnersForContractResponse, GetOwnersForContractWithTokenBalancesOptions, GetOwnersForContractWithTokenBalancesResponse, GetOwnersForNftResponse, GetSpamContractsResponse, GetTransfersForContractOptions, GetTransfersForOwnerOptions, GetTransfersForOwnerTransferType, IsSpamContractResponse, NftAttributesResponse, NftContractBaseNftsResponse, NftContractNftsResponse, NftMetadataBatchOptions, NftMetadataBatchToken, OwnedBaseNft, OwnedBaseNftsResponse, OwnedNft, OwnedNftsResponse, RefreshContractResult, SearchContractMetadataResponse, TransfersNftResponse } from '../types/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, 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';
/**

@@ -6,0 +6,0 @@ * This file contains the underlying implementations for exposed API surface in

@@ -18,2 +18,8 @@ /**

}
export interface RawNftMint {
mintAddress?: string;
blockNumber?: number;
timestamp?: string;
transactionHash?: string;
}
export interface RawNftContract {

@@ -29,8 +35,16 @@ address: string;

}
/** OpenSea's base metadata for an NFT collection */
export interface RawOpenSeaBaseCollectionMetadata {
floorPrice?: number;
export interface RawNftCollectionFloorPrice {
marketplace: string | null;
floorPrice: number | null;
priceCurrency: string | null;
}
export interface RawBaseNftCollection {
name: string;
slug: string | null;
externalUrl: string | null;
bannerImageUrl: string | null;
}
/** OpenSea's full metadata for an NFT collection. */
export interface RawOpenSeaCollectionMetadata extends RawOpenSeaBaseCollectionMetadata {
export interface RawOpenSeaCollectionMetadata {
floorPrice: number | null;
collectionName: string | null;

@@ -37,0 +51,0 @@ safelistRequestStatus: string | null;

@@ -32,2 +32,4 @@ import { Network as NetworkFromEthers } from '@ethersproject/networks';

"polygonzkevm-testnet": string;
"base-mainnet": string;
"base-goerli": string;
};

@@ -34,0 +36,0 @@ /**

import { InputNftTokenType } from '../internal/nft-api';
import { NftTokenType } from '../types/types';
import { NftTokenType } from '../types/nft-types';
export declare function sanitizeTokenType(tokenType?: NftTokenType): InputNftTokenType;

@@ -1,4 +0,3 @@

import { BaseNft, Nft, NftCollection, NftContract, NftContractForNft } from '../api/nft';
import { RawContractBaseNft, RawGetNftSalesResponse, RawNft, RawNftCollection, RawNftContract, RawNftContractForNft, RawNftContractForOwner, RawOwnedBaseNft } from '../internal/raw-interfaces';
import { GetNftSalesResponse, NftContractForOwner } from '../types/types';
import { BaseNft, GetNftSalesResponse, Nft, NftCollection, NftContract, NftContractForNft, NftContractForOwner } from '../types/nft-types';
export declare function formatBlock(block: string | number): string;

@@ -5,0 +4,0 @@ export declare function getNftContractForNftFromRaw(rawNftContract: RawNftContractForNft): NftContractForNft;

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

export declare const VERSION = "3.0.0-beta.0";
export declare const VERSION = "3.0.0-beta.3";
import * as utils from './api/utils';
export { utils as Utils };
export { m as Alchemy, j as AlchemySubscription, r as AssetTransfersCategory, R as CommitmentLevel, o as Contract, p as ContractFactory, L as DebugCallType, U as DebugTracerType, K as DecodingAuthority, M as GasOptimizedTransactionStatus, G as GetTransfersForOwnerTransferType, N as Network, x as NftFilters, y as NftOrdering, F as NftRefreshState, z as NftSaleMarketplace, B as NftSaleTakerType, w as NftSpamClassification, u as NftTokenType, O as OpenSeaSafelistRequestStatus, H as SimulateAssetType, J as SimulateChangeType, S as SortingOrder, T as TokenBalanceType, W as Wallet, Q as WebhookType, P as WebhookVersion, f as fromHex, q as isHex, s as setLogLevel, t as toHex } from './index-c6ff337c.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-a2cec9db.js';
export { BigNumber } from '@ethersproject/bignumber';

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

@@ -40,2 +40,13 @@ import { Network as NetworkFromEthers } from '@ethersproject/networks';

send(method: string, params: Array<any>): Promise<any>;
/**
* Overrides the base `Formatter` class inherited from ethers to support
* returning custom fields in Ethers response types.
*
* For context, ethers has a `Formatter` class that is used to format the
* response from a JSON-RPC request. Any fields that are not defined in the
* `Formatter` class are removed from the returned response. By modifying the
* `Formatter` class in this method, we can add support for fields that are
* not defined in ethers.
*/
private modifyFormatter;
}
import type { BigNumberish } from '@ethersproject/bignumber';
import { ComputeRarityResponse, GetBaseNftsForContractOptions, GetBaseNftsForOwnerOptions, GetContractMetadataBatchResponse, GetContractsForOwnerOptions, GetContractsForOwnerResponse, GetFloorPriceResponse, GetMintedNftsOptions, GetNftMetadataBatchResponse, GetNftMetadataOptions, GetNftSalesOptions, GetNftSalesOptionsByContractAddress, GetNftSalesResponse, GetNftsForContractOptions, GetNftsForOwnerOptions, GetOwnersForContractOptions, GetOwnersForContractResponse, GetOwnersForContractWithTokenBalancesOptions, GetOwnersForContractWithTokenBalancesResponse, GetOwnersForNftOptions, GetOwnersForNftResponse, GetSpamContractsResponse, GetTransfersForContractOptions, GetTransfersForOwnerOptions, GetTransfersForOwnerTransferType, IsSpamContractResponse, NftAttributesResponse, NftContractBaseNftsResponse, NftContractNftsResponse, NftMetadataBatchOptions, NftMetadataBatchToken, OwnedBaseNft, OwnedBaseNftsResponse, OwnedNft, OwnedNftsResponse, RefreshContractResult, SearchContractMetadataResponse, TransfersNftResponse } from '../types/types';
import { BaseNft, Nft, NftCollection, NftContract } from './nft';
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 { GetTransfersForOwnerOptions, GetTransfersForOwnerTransferType, RefreshContractResult } from '../types/types';
/**

@@ -5,0 +5,0 @@ * The NFT namespace contains all the functionality related to NFTs.

@@ -5,2 +5,3 @@ /** This is the main entry point for the library and exports user-facing API. */

export * from './types/types';
export * from './types/nft-types';
export { Alchemy } from './api/alchemy';

@@ -19,4 +20,3 @@ export { Wallet } from './api/alchemy-wallet';

export type { DebugNamespace } from './api/debug-namespace';
export type { NftContract, Nft, BaseNft } from './api/nft';
export { fromHex, toHex, isHex } from './api/util';
export { setLogLevel, LogLevelString as LogLevel } from './util/logger';
import { BigNumberish } from '@ethersproject/bignumber';
import { AlchemyConfig } from '../api/alchemy-config';
import { BaseNft, Nft, NftCollection, NftContract } from '../api/nft';
import { AssetTransfersResponse, ComputeRarityResponse, GetBaseNftsForContractOptions, GetBaseNftsForOwnerOptions, GetContractMetadataBatchResponse, GetContractsForOwnerOptions, GetContractsForOwnerResponse, GetFloorPriceResponse, GetMintedNftsOptions, GetNftMetadataBatchResponse, GetNftMetadataOptions, GetNftSalesOptions, GetNftSalesOptionsByContractAddress, GetNftSalesResponse, GetNftsForContractOptions, GetNftsForOwnerOptions, GetOwnersForContractOptions, GetOwnersForContractResponse, GetOwnersForContractWithTokenBalancesOptions, GetOwnersForContractWithTokenBalancesResponse, GetOwnersForNftResponse, GetSpamContractsResponse, GetTransfersForContractOptions, GetTransfersForOwnerOptions, GetTransfersForOwnerTransferType, IsSpamContractResponse, NftAttributesResponse, NftContractBaseNftsResponse, NftContractNftsResponse, NftMetadataBatchOptions, NftMetadataBatchToken, OwnedBaseNft, OwnedBaseNftsResponse, OwnedNft, OwnedNftsResponse, RefreshContractResult, SearchContractMetadataResponse, TransfersNftResponse } from '../types/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, 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';
/**

@@ -6,0 +6,0 @@ * This file contains the underlying implementations for exposed API surface in

@@ -18,2 +18,8 @@ /**

}
export interface RawNftMint {
mintAddress?: string;
blockNumber?: number;
timestamp?: string;
transactionHash?: string;
}
export interface RawNftContract {

@@ -29,8 +35,16 @@ address: string;

}
/** OpenSea's base metadata for an NFT collection */
export interface RawOpenSeaBaseCollectionMetadata {
floorPrice?: number;
export interface RawNftCollectionFloorPrice {
marketplace: string | null;
floorPrice: number | null;
priceCurrency: string | null;
}
export interface RawBaseNftCollection {
name: string;
slug: string | null;
externalUrl: string | null;
bannerImageUrl: string | null;
}
/** OpenSea's full metadata for an NFT collection. */
export interface RawOpenSeaCollectionMetadata extends RawOpenSeaBaseCollectionMetadata {
export interface RawOpenSeaCollectionMetadata {
floorPrice: number | null;
collectionName: string | null;

@@ -37,0 +51,0 @@ safelistRequestStatus: string | null;

@@ -32,2 +32,4 @@ import { Network as NetworkFromEthers } from '@ethersproject/networks';

"polygonzkevm-testnet": string;
"base-mainnet": string;
"base-goerli": string;
};

@@ -34,0 +36,0 @@ /**

import { InputNftTokenType } from '../internal/nft-api';
import { NftTokenType } from '../types/types';
import { NftTokenType } from '../types/nft-types';
export declare function sanitizeTokenType(tokenType?: NftTokenType): InputNftTokenType;

@@ -1,4 +0,3 @@

import { BaseNft, Nft, NftCollection, NftContract, NftContractForNft } from '../api/nft';
import { RawContractBaseNft, RawGetNftSalesResponse, RawNft, RawNftCollection, RawNftContract, RawNftContractForNft, RawNftContractForOwner, RawOwnedBaseNft } from '../internal/raw-interfaces';
import { GetNftSalesResponse, NftContractForOwner } from '../types/types';
import { BaseNft, GetNftSalesResponse, Nft, NftCollection, NftContract, NftContractForNft, NftContractForOwner } from '../types/nft-types';
export declare function formatBlock(block: string | number): string;

@@ -5,0 +4,0 @@ export declare function getNftContractForNftFromRaw(rawNftContract: RawNftContractForNft): NftContractForNft;

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

export declare const VERSION = "3.0.0-beta.0";
export declare const VERSION = "3.0.0-beta.3";

@@ -40,2 +40,13 @@ import { Network as NetworkFromEthers } from '@ethersproject/networks';

send(method: string, params: Array<any>): Promise<any>;
/**
* Overrides the base `Formatter` class inherited from ethers to support
* returning custom fields in Ethers response types.
*
* For context, ethers has a `Formatter` class that is used to format the
* response from a JSON-RPC request. Any fields that are not defined in the
* `Formatter` class are removed from the returned response. By modifying the
* `Formatter` class in this method, we can add support for fields that are
* not defined in ethers.
*/
private modifyFormatter;
}
import type { BigNumberish } from '@ethersproject/bignumber';
import { ComputeRarityResponse, GetBaseNftsForContractOptions, GetBaseNftsForOwnerOptions, GetContractMetadataBatchResponse, GetContractsForOwnerOptions, GetContractsForOwnerResponse, GetFloorPriceResponse, GetMintedNftsOptions, GetNftMetadataBatchResponse, GetNftMetadataOptions, GetNftSalesOptions, GetNftSalesOptionsByContractAddress, GetNftSalesResponse, GetNftsForContractOptions, GetNftsForOwnerOptions, GetOwnersForContractOptions, GetOwnersForContractResponse, GetOwnersForContractWithTokenBalancesOptions, GetOwnersForContractWithTokenBalancesResponse, GetOwnersForNftOptions, GetOwnersForNftResponse, GetSpamContractsResponse, GetTransfersForContractOptions, GetTransfersForOwnerOptions, GetTransfersForOwnerTransferType, IsSpamContractResponse, NftAttributesResponse, NftContractBaseNftsResponse, NftContractNftsResponse, NftMetadataBatchOptions, NftMetadataBatchToken, OwnedBaseNft, OwnedBaseNftsResponse, OwnedNft, OwnedNftsResponse, RefreshContractResult, SearchContractMetadataResponse, TransfersNftResponse } from '../types/types';
import { BaseNft, Nft, NftCollection, NftContract } from './nft';
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 { GetTransfersForOwnerOptions, GetTransfersForOwnerTransferType, RefreshContractResult } from '../types/types';
/**

@@ -5,0 +5,0 @@ * The NFT namespace contains all the functionality related to NFTs.

@@ -5,2 +5,3 @@ /** This is the main entry point for the library and exports user-facing API. */

export * from './types/types';
export * from './types/nft-types';
export { Alchemy } from './api/alchemy';

@@ -19,4 +20,3 @@ export { Wallet } from './api/alchemy-wallet';

export type { DebugNamespace } from './api/debug-namespace';
export type { NftContract, Nft, BaseNft } from './api/nft';
export { fromHex, toHex, isHex } from './api/util';
export { setLogLevel, LogLevelString as LogLevel } from './util/logger';
import { BigNumberish } from '@ethersproject/bignumber';
import { AlchemyConfig } from '../api/alchemy-config';
import { BaseNft, Nft, NftCollection, NftContract } from '../api/nft';
import { AssetTransfersResponse, ComputeRarityResponse, GetBaseNftsForContractOptions, GetBaseNftsForOwnerOptions, GetContractMetadataBatchResponse, GetContractsForOwnerOptions, GetContractsForOwnerResponse, GetFloorPriceResponse, GetMintedNftsOptions, GetNftMetadataBatchResponse, GetNftMetadataOptions, GetNftSalesOptions, GetNftSalesOptionsByContractAddress, GetNftSalesResponse, GetNftsForContractOptions, GetNftsForOwnerOptions, GetOwnersForContractOptions, GetOwnersForContractResponse, GetOwnersForContractWithTokenBalancesOptions, GetOwnersForContractWithTokenBalancesResponse, GetOwnersForNftResponse, GetSpamContractsResponse, GetTransfersForContractOptions, GetTransfersForOwnerOptions, GetTransfersForOwnerTransferType, IsSpamContractResponse, NftAttributesResponse, NftContractBaseNftsResponse, NftContractNftsResponse, NftMetadataBatchOptions, NftMetadataBatchToken, OwnedBaseNft, OwnedBaseNftsResponse, OwnedNft, OwnedNftsResponse, RefreshContractResult, SearchContractMetadataResponse, TransfersNftResponse } from '../types/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, 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';
/**

@@ -6,0 +6,0 @@ * This file contains the underlying implementations for exposed API surface in

@@ -18,2 +18,8 @@ /**

}
export interface RawNftMint {
mintAddress?: string;
blockNumber?: number;
timestamp?: string;
transactionHash?: string;
}
export interface RawNftContract {

@@ -29,8 +35,16 @@ address: string;

}
/** OpenSea's base metadata for an NFT collection */
export interface RawOpenSeaBaseCollectionMetadata {
floorPrice?: number;
export interface RawNftCollectionFloorPrice {
marketplace: string | null;
floorPrice: number | null;
priceCurrency: string | null;
}
export interface RawBaseNftCollection {
name: string;
slug: string | null;
externalUrl: string | null;
bannerImageUrl: string | null;
}
/** OpenSea's full metadata for an NFT collection. */
export interface RawOpenSeaCollectionMetadata extends RawOpenSeaBaseCollectionMetadata {
export interface RawOpenSeaCollectionMetadata {
floorPrice: number | null;
collectionName: string | null;

@@ -37,0 +51,0 @@ safelistRequestStatus: string | null;

@@ -32,2 +32,4 @@ import { Network as NetworkFromEthers } from '@ethersproject/networks';

"polygonzkevm-testnet": string;
"base-mainnet": string;
"base-goerli": string;
};

@@ -34,0 +36,0 @@ /**

import { InputNftTokenType } from '../internal/nft-api';
import { NftTokenType } from '../types/types';
import { NftTokenType } from '../types/nft-types';
export declare function sanitizeTokenType(tokenType?: NftTokenType): InputNftTokenType;

@@ -1,4 +0,3 @@

import { BaseNft, Nft, NftCollection, NftContract, NftContractForNft } from '../api/nft';
import { RawContractBaseNft, RawGetNftSalesResponse, RawNft, RawNftCollection, RawNftContract, RawNftContractForNft, RawNftContractForOwner, RawOwnedBaseNft } from '../internal/raw-interfaces';
import { GetNftSalesResponse, NftContractForOwner } from '../types/types';
import { BaseNft, GetNftSalesResponse, Nft, NftCollection, NftContract, NftContractForNft, NftContractForOwner } from '../types/nft-types';
export declare function formatBlock(block: string | number): string;

@@ -5,0 +4,0 @@ export declare function getNftContractForNftFromRaw(rawNftContract: RawNftContractForNft): NftContractForNft;

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

export declare const VERSION = "3.0.0-beta.0";
export declare const VERSION = "3.0.0-beta.3";
import * as utils from './api/utils';
export { utils as Utils };
export { m as Alchemy, j as AlchemySubscription, r as AssetTransfersCategory, R as CommitmentLevel, o as Contract, p as ContractFactory, L as DebugCallType, U as DebugTracerType, K as DecodingAuthority, M as GasOptimizedTransactionStatus, G as GetTransfersForOwnerTransferType, N as Network, x as NftFilters, y as NftOrdering, F as NftRefreshState, z as NftSaleMarketplace, B as NftSaleTakerType, w as NftSpamClassification, u as NftTokenType, O as OpenSeaSafelistRequestStatus, H as SimulateAssetType, J as SimulateChangeType, S as SortingOrder, T as TokenBalanceType, W as Wallet, Q as WebhookType, P as WebhookVersion, f as fromHex, q as isHex, s as setLogLevel, t as toHex } from './index-c6ff337c.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-a2cec9db.js';
export { BigNumber } from '@ethersproject/bignumber';

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

@@ -40,2 +40,13 @@ import { Network as NetworkFromEthers } from '@ethersproject/networks';

send(method: string, params: Array<any>): Promise<any>;
/**
* Overrides the base `Formatter` class inherited from ethers to support
* returning custom fields in Ethers response types.
*
* For context, ethers has a `Formatter` class that is used to format the
* response from a JSON-RPC request. Any fields that are not defined in the
* `Formatter` class are removed from the returned response. By modifying the
* `Formatter` class in this method, we can add support for fields that are
* not defined in ethers.
*/
private modifyFormatter;
}
import type { BigNumberish } from '@ethersproject/bignumber';
import { ComputeRarityResponse, GetBaseNftsForContractOptions, GetBaseNftsForOwnerOptions, GetContractMetadataBatchResponse, GetContractsForOwnerOptions, GetContractsForOwnerResponse, GetFloorPriceResponse, GetMintedNftsOptions, GetNftMetadataBatchResponse, GetNftMetadataOptions, GetNftSalesOptions, GetNftSalesOptionsByContractAddress, GetNftSalesResponse, GetNftsForContractOptions, GetNftsForOwnerOptions, GetOwnersForContractOptions, GetOwnersForContractResponse, GetOwnersForContractWithTokenBalancesOptions, GetOwnersForContractWithTokenBalancesResponse, GetOwnersForNftOptions, GetOwnersForNftResponse, GetSpamContractsResponse, GetTransfersForContractOptions, GetTransfersForOwnerOptions, GetTransfersForOwnerTransferType, IsSpamContractResponse, NftAttributesResponse, NftContractBaseNftsResponse, NftContractNftsResponse, NftMetadataBatchOptions, NftMetadataBatchToken, OwnedBaseNft, OwnedBaseNftsResponse, OwnedNft, OwnedNftsResponse, RefreshContractResult, SearchContractMetadataResponse, TransfersNftResponse } from '../types/types';
import { BaseNft, Nft, NftCollection, NftContract } from './nft';
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 { GetTransfersForOwnerOptions, GetTransfersForOwnerTransferType, RefreshContractResult } from '../types/types';
/**

@@ -5,0 +5,0 @@ * The NFT namespace contains all the functionality related to NFTs.

@@ -5,2 +5,3 @@ /** This is the main entry point for the library and exports user-facing API. */

export * from './types/types';
export * from './types/nft-types';
export { Alchemy } from './api/alchemy';

@@ -19,4 +20,3 @@ export { Wallet } from './api/alchemy-wallet';

export type { DebugNamespace } from './api/debug-namespace';
export type { NftContract, Nft, BaseNft } from './api/nft';
export { fromHex, toHex, isHex } from './api/util';
export { setLogLevel, LogLevelString as LogLevel } from './util/logger';
import { BigNumberish } from '@ethersproject/bignumber';
import { AlchemyConfig } from '../api/alchemy-config';
import { BaseNft, Nft, NftCollection, NftContract } from '../api/nft';
import { AssetTransfersResponse, ComputeRarityResponse, GetBaseNftsForContractOptions, GetBaseNftsForOwnerOptions, GetContractMetadataBatchResponse, GetContractsForOwnerOptions, GetContractsForOwnerResponse, GetFloorPriceResponse, GetMintedNftsOptions, GetNftMetadataBatchResponse, GetNftMetadataOptions, GetNftSalesOptions, GetNftSalesOptionsByContractAddress, GetNftSalesResponse, GetNftsForContractOptions, GetNftsForOwnerOptions, GetOwnersForContractOptions, GetOwnersForContractResponse, GetOwnersForContractWithTokenBalancesOptions, GetOwnersForContractWithTokenBalancesResponse, GetOwnersForNftResponse, GetSpamContractsResponse, GetTransfersForContractOptions, GetTransfersForOwnerOptions, GetTransfersForOwnerTransferType, IsSpamContractResponse, NftAttributesResponse, NftContractBaseNftsResponse, NftContractNftsResponse, NftMetadataBatchOptions, NftMetadataBatchToken, OwnedBaseNft, OwnedBaseNftsResponse, OwnedNft, OwnedNftsResponse, RefreshContractResult, SearchContractMetadataResponse, TransfersNftResponse } from '../types/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, 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';
/**

@@ -6,0 +6,0 @@ * This file contains the underlying implementations for exposed API surface in

@@ -18,2 +18,8 @@ /**

}
export interface RawNftMint {
mintAddress?: string;
blockNumber?: number;
timestamp?: string;
transactionHash?: string;
}
export interface RawNftContract {

@@ -29,8 +35,16 @@ address: string;

}
/** OpenSea's base metadata for an NFT collection */
export interface RawOpenSeaBaseCollectionMetadata {
floorPrice?: number;
export interface RawNftCollectionFloorPrice {
marketplace: string | null;
floorPrice: number | null;
priceCurrency: string | null;
}
export interface RawBaseNftCollection {
name: string;
slug: string | null;
externalUrl: string | null;
bannerImageUrl: string | null;
}
/** OpenSea's full metadata for an NFT collection. */
export interface RawOpenSeaCollectionMetadata extends RawOpenSeaBaseCollectionMetadata {
export interface RawOpenSeaCollectionMetadata {
floorPrice: number | null;
collectionName: string | null;

@@ -37,0 +51,0 @@ safelistRequestStatus: string | null;

@@ -32,2 +32,4 @@ import { Network as NetworkFromEthers } from '@ethersproject/networks';

"polygonzkevm-testnet": string;
"base-mainnet": string;
"base-goerli": string;
};

@@ -34,0 +36,0 @@ /**

import { InputNftTokenType } from '../internal/nft-api';
import { NftTokenType } from '../types/types';
import { NftTokenType } from '../types/nft-types';
export declare function sanitizeTokenType(tokenType?: NftTokenType): InputNftTokenType;

@@ -1,4 +0,3 @@

import { BaseNft, Nft, NftCollection, NftContract, NftContractForNft } from '../api/nft';
import { RawContractBaseNft, RawGetNftSalesResponse, RawNft, RawNftCollection, RawNftContract, RawNftContractForNft, RawNftContractForOwner, RawOwnedBaseNft } from '../internal/raw-interfaces';
import { GetNftSalesResponse, NftContractForOwner } from '../types/types';
import { BaseNft, GetNftSalesResponse, Nft, NftCollection, NftContract, NftContractForNft, NftContractForOwner } from '../types/nft-types';
export declare function formatBlock(block: string | number): string;

@@ -5,0 +4,0 @@ export declare function getNftContractForNftFromRaw(rawNftContract: RawNftContractForNft): NftContractForNft;

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

export declare const VERSION = "3.0.0-beta.0";
export declare const VERSION = "3.0.0-beta.3";

@@ -40,2 +40,13 @@ import { Network as NetworkFromEthers } from '@ethersproject/networks';

send(method: string, params: Array<any>): Promise<any>;
/**
* Overrides the base `Formatter` class inherited from ethers to support
* returning custom fields in Ethers response types.
*
* For context, ethers has a `Formatter` class that is used to format the
* response from a JSON-RPC request. Any fields that are not defined in the
* `Formatter` class are removed from the returned response. By modifying the
* `Formatter` class in this method, we can add support for fields that are
* not defined in ethers.
*/
private modifyFormatter;
}
import type { BigNumberish } from '@ethersproject/bignumber';
import { ComputeRarityResponse, GetBaseNftsForContractOptions, GetBaseNftsForOwnerOptions, GetContractMetadataBatchResponse, GetContractsForOwnerOptions, GetContractsForOwnerResponse, GetFloorPriceResponse, GetMintedNftsOptions, GetNftMetadataBatchResponse, GetNftMetadataOptions, GetNftSalesOptions, GetNftSalesOptionsByContractAddress, GetNftSalesResponse, GetNftsForContractOptions, GetNftsForOwnerOptions, GetOwnersForContractOptions, GetOwnersForContractResponse, GetOwnersForContractWithTokenBalancesOptions, GetOwnersForContractWithTokenBalancesResponse, GetOwnersForNftOptions, GetOwnersForNftResponse, GetSpamContractsResponse, GetTransfersForContractOptions, GetTransfersForOwnerOptions, GetTransfersForOwnerTransferType, IsSpamContractResponse, NftAttributesResponse, NftContractBaseNftsResponse, NftContractNftsResponse, NftMetadataBatchOptions, NftMetadataBatchToken, OwnedBaseNft, OwnedBaseNftsResponse, OwnedNft, OwnedNftsResponse, RefreshContractResult, SearchContractMetadataResponse, TransfersNftResponse } from '../types/types';
import { BaseNft, Nft, NftCollection, NftContract } from './nft';
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 { GetTransfersForOwnerOptions, GetTransfersForOwnerTransferType, RefreshContractResult } from '../types/types';
/**

@@ -5,0 +5,0 @@ * The NFT namespace contains all the functionality related to NFTs.

@@ -5,2 +5,3 @@ /** This is the main entry point for the library and exports user-facing API. */

export * from './types/types';
export * from './types/nft-types';
export { Alchemy } from './api/alchemy';

@@ -19,4 +20,3 @@ export { Wallet } from './api/alchemy-wallet';

export type { DebugNamespace } from './api/debug-namespace';
export type { NftContract, Nft, BaseNft } from './api/nft';
export { fromHex, toHex, isHex } from './api/util';
export { setLogLevel, LogLevelString as LogLevel } from './util/logger';
import { BigNumberish } from '@ethersproject/bignumber';
import { AlchemyConfig } from '../api/alchemy-config';
import { BaseNft, Nft, NftCollection, NftContract } from '../api/nft';
import { AssetTransfersResponse, ComputeRarityResponse, GetBaseNftsForContractOptions, GetBaseNftsForOwnerOptions, GetContractMetadataBatchResponse, GetContractsForOwnerOptions, GetContractsForOwnerResponse, GetFloorPriceResponse, GetMintedNftsOptions, GetNftMetadataBatchResponse, GetNftMetadataOptions, GetNftSalesOptions, GetNftSalesOptionsByContractAddress, GetNftSalesResponse, GetNftsForContractOptions, GetNftsForOwnerOptions, GetOwnersForContractOptions, GetOwnersForContractResponse, GetOwnersForContractWithTokenBalancesOptions, GetOwnersForContractWithTokenBalancesResponse, GetOwnersForNftResponse, GetSpamContractsResponse, GetTransfersForContractOptions, GetTransfersForOwnerOptions, GetTransfersForOwnerTransferType, IsSpamContractResponse, NftAttributesResponse, NftContractBaseNftsResponse, NftContractNftsResponse, NftMetadataBatchOptions, NftMetadataBatchToken, OwnedBaseNft, OwnedBaseNftsResponse, OwnedNft, OwnedNftsResponse, RefreshContractResult, SearchContractMetadataResponse, TransfersNftResponse } from '../types/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, 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';
/**

@@ -6,0 +6,0 @@ * This file contains the underlying implementations for exposed API surface in

@@ -18,2 +18,8 @@ /**

}
export interface RawNftMint {
mintAddress?: string;
blockNumber?: number;
timestamp?: string;
transactionHash?: string;
}
export interface RawNftContract {

@@ -29,8 +35,16 @@ address: string;

}
/** OpenSea's base metadata for an NFT collection */
export interface RawOpenSeaBaseCollectionMetadata {
floorPrice?: number;
export interface RawNftCollectionFloorPrice {
marketplace: string | null;
floorPrice: number | null;
priceCurrency: string | null;
}
export interface RawBaseNftCollection {
name: string;
slug: string | null;
externalUrl: string | null;
bannerImageUrl: string | null;
}
/** OpenSea's full metadata for an NFT collection. */
export interface RawOpenSeaCollectionMetadata extends RawOpenSeaBaseCollectionMetadata {
export interface RawOpenSeaCollectionMetadata {
floorPrice: number | null;
collectionName: string | null;

@@ -37,0 +51,0 @@ safelistRequestStatus: string | null;

@@ -32,2 +32,4 @@ import { Network as NetworkFromEthers } from '@ethersproject/networks';

"polygonzkevm-testnet": string;
"base-mainnet": string;
"base-goerli": string;
};

@@ -34,0 +36,0 @@ /**

import { InputNftTokenType } from '../internal/nft-api';
import { NftTokenType } from '../types/types';
import { NftTokenType } from '../types/nft-types';
export declare function sanitizeTokenType(tokenType?: NftTokenType): InputNftTokenType;

@@ -1,4 +0,3 @@

import { BaseNft, Nft, NftCollection, NftContract, NftContractForNft } from '../api/nft';
import { RawContractBaseNft, RawGetNftSalesResponse, RawNft, RawNftCollection, RawNftContract, RawNftContractForNft, RawNftContractForOwner, RawOwnedBaseNft } from '../internal/raw-interfaces';
import { GetNftSalesResponse, NftContractForOwner } from '../types/types';
import { BaseNft, GetNftSalesResponse, Nft, NftCollection, NftContract, NftContractForNft, NftContractForOwner } from '../types/nft-types';
export declare function formatBlock(block: string | number): string;

@@ -5,0 +4,0 @@ export declare function getNftContractForNftFromRaw(rawNftContract: RawNftContractForNft): NftContractForNft;

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

export declare const VERSION = "3.0.0-beta.0";
export declare const VERSION = "3.0.0-beta.3";
{
"name": "alchemy-sdk",
"version": "3.0.0-beta.2",
"version": "3.0.0-beta.3",
"description": "Extended Ethers.js SDK for Alchemy APIs",

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

@@ -21,2 +21,3 @@ Alchemy SDK for Javascript

- **PolygonZKEVM**: Mainnet, Testnet
- **Base**: Mainnet, Goerli

@@ -23,0 +24,0 @@ You can find per-method documentation of the Alchemy SDK endpoints at the [Alchemy Docs linked in the sidebar](https://docs.alchemy.com/reference/alchemy-sdk-quickstart).

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 too big to display

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

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

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

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

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