nft
Methods exposed through client.nft(network).
compute_rarity
Computes the rarity of each trait attribute for a specific NFT token within its collection.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
contract_address
|
str
|
NFT contract address (ERC721 or ERC1155). |
required |
token_id
|
str
|
Token ID in hex or decimal format. |
required |
validate
|
bool | None
|
Validation override for this request. |
None
|
Returns:
| Type | Description |
|---|---|
ComputeRarityResponse
|
The validated endpoint response. |
References
Source code in pkg/src/alchemy/api/nft/compute_rarity.py
get_collection_metadata
Retrieves high-level collection metadata for an NFT collection by OpenSea slug.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
collection_slug
|
str
|
OpenSea collection slug. |
required |
validate
|
bool | None
|
Validation override for this request. |
None
|
Returns:
| Type | Description |
|---|---|
CollectionMetadataResponse
|
The validated endpoint response. |
References
Source code in pkg/src/alchemy/api/nft/get_collection_metadata.py
get_collections_for_owner
Returns all NFT collections held by a given wallet address, with collection-level metadata and floor prices.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
owner
|
str
|
Wallet address. Supports ENS format on Eth Mainnet. |
required |
page_key
|
str | None
|
Pagination cursor from previous response. |
None
|
page_size
|
int | None
|
Collections per page. Maximum 100. Defaults to 100. |
None
|
with_metadata
|
bool | None
|
Include NFT metadata. Defaults to true. |
None
|
include_filters
|
list[Literal['SPAM', 'AIRDROPS']] | None
|
Include only tokens matching SPAM or AIRDROPS. |
None
|
exclude_filters
|
list[Literal['SPAM', 'AIRDROPS']] | None
|
Exclude tokens matching SPAM or AIRDROPS. |
None
|
validate
|
bool | None
|
Validation override for this request. |
None
|
Returns:
| Type | Description |
|---|---|
OwnerCollectionsResponse
|
The validated endpoint response. |
References
Source code in pkg/src/alchemy/api/nft/get_collections_for_owner.py
get_collections_for_owner_paged
Paged version of get_collections_for_owner.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
owner
|
str
|
Wallet address. Supports ENS format on Eth Mainnet. |
required |
page_size
|
int | None
|
Collections per page. Maximum 100. Defaults to 100. |
None
|
with_metadata
|
bool | None
|
Include NFT metadata. Defaults to true. |
None
|
include_filters
|
list[Literal['SPAM', 'AIRDROPS']] | None
|
Include only tokens matching SPAM or AIRDROPS. |
None
|
exclude_filters
|
list[Literal['SPAM', 'AIRDROPS']] | None
|
Exclude tokens matching SPAM or AIRDROPS. |
None
|
validate
|
bool | None
|
Validation override for each request. |
None
|
Returns:
| Type | Description |
|---|---|
PaginatedResponse[OwnerCollection, str]
|
An async iterable and awaitable paginated response over owner collections. |
References
Source code in pkg/src/alchemy/api/nft/get_collections_for_owner.py
get_contract_metadata
Retrieves collection-level metadata for a given NFT contract address.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
contract_address
|
str
|
NFT contract address (ERC721 or ERC1155). |
required |
validate
|
bool | None
|
Validation override for this request. |
None
|
Returns:
| Type | Description |
|---|---|
ContractMetadataResponse
|
The validated endpoint response. |
References
Source code in pkg/src/alchemy/api/nft/get_contract_metadata.py
get_contract_metadata_batch
Fetches collection-level metadata for multiple NFT contracts in a single request.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
body
|
ContractMetadataBatchRequest
|
List of contract addresses to fetch metadata for. |
required |
validate
|
bool | None
|
Validation override for this request. |
None
|
Returns:
| Type | Description |
|---|---|
ContractMetadataBatchResponse
|
The validated endpoint response. |
References
Source code in pkg/src/alchemy/api/nft/get_contract_metadata_batch.py
get_contracts_for_owner
Lists all NFT contracts (collections) for which a given wallet holds at least one token.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
owner
|
str
|
Wallet address. Supports ENS format on Eth Mainnet. |
required |
page_key
|
str | None
|
Pagination cursor from previous response. |
None
|
page_size
|
int | None
|
Contracts per page. Maximum 100. Defaults to 100. |
None
|
with_metadata
|
bool | None
|
Include contract metadata. Defaults to true. |
None
|
include_filters
|
list[Literal['SPAM', 'AIRDROPS']] | None
|
Include only tokens matching SPAM or AIRDROPS filters. |
None
|
exclude_filters
|
list[Literal['SPAM', 'AIRDROPS']] | None
|
Exclude tokens matching SPAM or AIRDROPS filters. |
None
|
order_by
|
Literal['transferTime'] | None
|
Sort order. 'transferTime' sorts by most recent transfer first. |
None
|
spam_confidence_level
|
Literal['VERY_HIGH', 'HIGH', 'MEDIUM', 'LOW'] | None
|
Spam threshold (paid tier). One of: VERY_HIGH, HIGH, MEDIUM, LOW. |
None
|
validate
|
bool | None
|
Validation override for this request. |
None
|
Returns:
| Type | Description |
|---|---|
OwnerContractsResponse
|
The validated endpoint response. |
References
Source code in pkg/src/alchemy/api/nft/get_contracts_for_owner.py
get_contracts_for_owner_paged
Paged version of get_contracts_for_owner.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
owner
|
str
|
Wallet address. Supports ENS format on Eth Mainnet. |
required |
page_size
|
int | None
|
Contracts per page. Maximum 100. Defaults to 100. |
None
|
with_metadata
|
bool | None
|
Include contract metadata. Defaults to true. |
None
|
include_filters
|
list[Literal['SPAM', 'AIRDROPS']] | None
|
Include only tokens matching SPAM or AIRDROPS filters. |
None
|
exclude_filters
|
list[Literal['SPAM', 'AIRDROPS']] | None
|
Exclude tokens matching SPAM or AIRDROPS filters. |
None
|
order_by
|
Literal['transferTime'] | None
|
Sort order. 'transferTime' sorts by most recent transfer first. |
None
|
spam_confidence_level
|
Literal['VERY_HIGH', 'HIGH', 'MEDIUM', 'LOW'] | None
|
Spam threshold (paid tier). One of: VERY_HIGH, HIGH, MEDIUM, LOW. |
None
|
validate
|
bool | None
|
Validation override for each request. |
None
|
Returns:
| Type | Description |
|---|---|
PaginatedResponse[OwnerContract, str]
|
An async iterable and awaitable paginated response over owner contracts. |
References
Source code in pkg/src/alchemy/api/nft/get_contracts_for_owner.py
get_floor_price
Retrieves the floor price of an NFT collection on OpenSeaFloorPrice and LooksRareFloorPrice marketplaces. Ethereum Mainnet only.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
contract_address
|
str
|
NFT contract address (ERC721 or ERC1155). |
required |
collection_slug
|
str | None
|
OpenSeaFloorPrice collection slug for the collection. |
None
|
validate
|
bool | None
|
Validation override for this request. |
None
|
Returns:
| Type | Description |
|---|---|
FloorPriceResponse
|
The validated endpoint response. |
References
Source code in pkg/src/alchemy/api/nft/get_floor_price.py
get_nft_metadata
Fetches metadata for a specific NFT identified by contract address and token ID.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
contract_address
|
str
|
NFT contract address (ERC721 or ERC1155). |
required |
token_id
|
str
|
Token ID as a decimal integer string or hex string. |
required |
token_type
|
NftTokenType | None
|
Token standard hint to improve response time. One of 'ERC721' or 'ERC1155'. |
None
|
token_uri_timeout_in_ms
|
int | None
|
Timeout in milliseconds for fetching the token URI. Set to 0 for cache-only access. |
None
|
refresh_cache
|
bool | None
|
If true, forces a cache refresh and re-fetches metadata from the original source. Defaults to false. |
None
|
validate
|
bool | None
|
Validation override for this request. |
None
|
Returns:
| Type | Description |
|---|---|
NftMetadataResponse
|
The validated endpoint response. |
References
Source code in pkg/src/alchemy/api/nft/get_nft_metadata.py
get_nft_metadata_batch
Fetches metadata for up to 100 NFTs in a single request. Returns an array of NFT objects.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
body
|
NftMetadataBatchRequest
|
Batch request payload specifying the tokens to fetch metadata for. |
required |
validate
|
bool | None
|
Validation override for this request. |
None
|
Returns:
| Type | Description |
|---|---|
NftMetadataBatchResponse
|
The validated endpoint response. |
References
Source code in pkg/src/alchemy/api/nft/get_nft_metadata_batch.py
get_nft_sales
Retrieves NFT sales data from on-chain marketplaces with rich filtering options.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
from_block
|
str | None
|
Start block number (decimal, hex, or 'latest'). Defaults to '0'. |
None
|
to_block
|
str | None
|
End block number (decimal, hex, or 'latest'). Defaults to 'latest'. |
None
|
order
|
Literal['asc', 'desc'] | None
|
Sort direction from fromBlock: 'asc' or 'desc'. Defaults to 'desc'. |
None
|
marketplace
|
Literal['seaport', 'wyvern', 'looksrare', 'x2y2', 'blur', 'cryptopunks'] | None
|
Filter by marketplace. One of: seaport, wyvern, looksrare, x2y2, blur, cryptopunks. |
None
|
contract_address
|
str | None
|
Filter by NFT contract address. |
None
|
token_id
|
str | None
|
Filter by token ID within the contractAddress collection. |
None
|
buyer_address
|
str | None
|
Filter by buyer wallet address. |
None
|
seller_address
|
str | None
|
Filter by seller wallet address. |
None
|
taker
|
Literal['BUYER', 'SELLER'] | None
|
Filter by price taker role: BUYER or SELLER. |
None
|
limit
|
int | None
|
Max results to return. Maximum 1000. Defaults to 1000. |
None
|
page_key
|
str | None
|
Pagination cursor from a previous response. |
None
|
validate
|
bool | None
|
Validation override for this request. |
None
|
Returns:
| Type | Description |
|---|---|
NftSalesResponse
|
The validated endpoint response. |
References
Source code in pkg/src/alchemy/api/nft/get_nft_sales.py
get_nft_sales_paged
Paged version of get_nft_sales.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
from_block
|
str | None
|
Start block number. |
None
|
to_block
|
str | None
|
End block number. |
None
|
order
|
Literal['asc', 'desc'] | None
|
Sort direction from fromBlock. |
None
|
marketplace
|
Literal['seaport', 'wyvern', 'looksrare', 'x2y2', 'blur', 'cryptopunks'] | None
|
Filter by marketplace. |
None
|
contract_address
|
str | None
|
Filter by NFT contract address. |
None
|
token_id
|
str | None
|
Filter by token ID. |
None
|
buyer_address
|
str | None
|
Filter by buyer wallet address. |
None
|
seller_address
|
str | None
|
Filter by seller wallet address. |
None
|
taker
|
Literal['BUYER', 'SELLER'] | None
|
Filter by price taker role. |
None
|
limit
|
int | None
|
Max results to return per page. |
None
|
validate
|
bool | None
|
Validation override for each request. |
None
|
Returns:
| Type | Description |
|---|---|
PaginatedResponse[NftSale, str]
|
An async iterable and awaitable paginated response over NFT sales. |
References
Source code in pkg/src/alchemy/api/nft/get_nft_sales.py
get_nfts_for_collection
Retrieves NFTs associated with a specific NFT collection.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
contract_address
|
str | None
|
NFT contract address (ERC721 or ERC1155). |
None
|
collection_slug
|
str | None
|
OpenSea collection slug. |
None
|
with_metadata
|
bool | None
|
Include NFT metadata. Defaults to true. |
None
|
start_token
|
str | None
|
Token ID offset for pagination (hex or decimal). |
None
|
limit
|
int | None
|
Number of NFTs to return. Defaults to 100. |
None
|
token_uri_timeout_in_ms
|
int | None
|
Timeout for metadata fetching in milliseconds. Set to 0 for cache-only. |
None
|
validate
|
bool | None
|
Validation override for this request. |
None
|
Returns:
| Type | Description |
|---|---|
CollectionNftsResponse
|
The validated endpoint response. |
References
Source code in pkg/src/alchemy/api/nft/get_nfts_for_collection.py
get_nfts_for_collection_paged
Paged version of get_nfts_for_collection.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
contract_address
|
str | None
|
NFT contract address (ERC721 or ERC1155). |
None
|
collection_slug
|
str | None
|
OpenSea collection slug. |
None
|
with_metadata
|
bool | None
|
Include NFT metadata. Defaults to true. |
None
|
limit
|
int | None
|
Number of NFTs to return per page. Defaults to 100. |
None
|
token_uri_timeout_in_ms
|
int | None
|
Timeout for metadata fetching in milliseconds. Set to 0 for cache-only. |
None
|
validate
|
bool | None
|
Validation override for each request. |
None
|
Returns:
| Type | Description |
|---|---|
PaginatedResponse[NftMetadataResponse, str]
|
An async iterable and awaitable paginated response over NFT metadata. |
References
Source code in pkg/src/alchemy/api/nft/get_nfts_for_collection.py
get_nfts_for_contract
Retrieves all NFTs belonging to a given contract address.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
contract_address
|
str
|
NFT contract address (ERC721 or ERC1155). |
required |
with_metadata
|
bool | None
|
Include NFT metadata. Defaults to true. |
None
|
start_token
|
str | None
|
Token ID offset for pagination (hex or decimal). |
None
|
limit
|
int | None
|
Number of NFTs to return. Defaults to 100. |
None
|
token_uri_timeout_in_ms
|
int | None
|
Timeout for metadata fetching in milliseconds. Set to 0 for cache-only. |
None
|
validate
|
bool | None
|
Validation override for this request. |
None
|
Returns:
| Type | Description |
|---|---|
ContractNftsResponse
|
The validated endpoint response. |
References
Source code in pkg/src/alchemy/api/nft/get_nfts_for_contract.py
get_nfts_for_contract_paged
Paged version of get_nfts_for_contract.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
contract_address
|
str
|
NFT contract address (ERC721 or ERC1155). |
required |
with_metadata
|
bool | None
|
Include NFT metadata. Defaults to true. |
None
|
limit
|
int | None
|
Number of NFTs to return per page. Defaults to 100. |
None
|
token_uri_timeout_in_ms
|
int | None
|
Timeout for metadata fetching in milliseconds. Set to 0 for cache-only. |
None
|
validate
|
bool | None
|
Validation override for each request. |
None
|
Returns:
| Type | Description |
|---|---|
PaginatedResponse[NftMetadataResponse, str]
|
An async iterable and awaitable paginated response over NFT metadata. |
References
Source code in pkg/src/alchemy/api/nft/get_nfts_for_contract.py
get_nfts_for_owner
Fetches all NFTs owned by a given wallet address on the requested chain. Supports filtering by contract, spam confidence, and metadata inclusion.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
owner
|
str
|
Wallet address whose NFTs should be fetched. Supports ENS format on Eth Mainnet. |
required |
contract_addresses
|
list[str] | None
|
Filter results to specific NFT contract addresses. Maximum 45 contracts. |
None
|
with_metadata
|
bool | None
|
Whether to include NFT metadata (name, description, image, attributes). Defaults to true. |
None
|
order_by
|
Literal['transferTime'] | None
|
Sort order. 'transferTime' sorts by most recent transfer first. |
None
|
exclude_filters
|
list[Literal['SPAM', 'AIRDROPS']] | None
|
Exclude NFTs matching these filters. Mutually exclusive with includeFilters. Values: SPAM, AIRDROPS. |
None
|
include_filters
|
list[Literal['SPAM', 'AIRDROPS']] | None
|
Include only NFTs matching these filters. Mutually exclusive with excludeFilters. Values: SPAM, AIRDROPS. |
None
|
spam_confidence_level
|
Literal['VERY_HIGH', 'HIGH', 'MEDIUM', 'LOW'] | None
|
Spam confidence threshold (paid tier only). One of: VERY_HIGH, HIGH, MEDIUM, LOW. |
None
|
token_uri_timeout_in_ms
|
int | None
|
Timeout in milliseconds for fetching token URIs. Set to 0 for cache-only access. |
None
|
page_key
|
str | None
|
Pagination cursor returned by a previous response. |
None
|
page_size
|
int | None
|
Number of NFTs per page. Maximum 100. Defaults to 100. |
None
|
validate
|
bool | None
|
Validation override for this request. |
None
|
Returns:
| Type | Description |
|---|---|
OwnedNftsResponse
|
The validated endpoint response. |
References
Source code in pkg/src/alchemy/api/nft/get_nfts_for_owner.py
get_nfts_for_owner_paged
Paged version of get_nfts_for_owner.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
owner
|
str
|
Wallet address whose NFTs should be fetched. Supports ENS format on Eth Mainnet. |
required |
contract_addresses
|
list[str] | None
|
Filter results to specific NFT contract addresses. Maximum 45 contracts. |
None
|
with_metadata
|
bool | None
|
Whether to include NFT metadata (name, description, image, attributes). Defaults to true. |
None
|
order_by
|
Literal['transferTime'] | None
|
Sort order. 'transferTime' sorts by most recent transfer first. |
None
|
exclude_filters
|
list[Literal['SPAM', 'AIRDROPS']] | None
|
Exclude NFTs matching these filters. Mutually exclusive with includeFilters. Values: SPAM, AIRDROPS. |
None
|
include_filters
|
list[Literal['SPAM', 'AIRDROPS']] | None
|
Include only NFTs matching these filters. Mutually exclusive with excludeFilters. Values: SPAM, AIRDROPS. |
None
|
spam_confidence_level
|
Literal['VERY_HIGH', 'HIGH', 'MEDIUM', 'LOW'] | None
|
Spam confidence threshold (paid tier only). One of: VERY_HIGH, HIGH, MEDIUM, LOW. |
None
|
token_uri_timeout_in_ms
|
int | None
|
Timeout in milliseconds for fetching token URIs. Set to 0 for cache-only access. |
None
|
page_size
|
int | None
|
Number of NFTs per page. Maximum 100. Defaults to 100. |
None
|
validate
|
bool | None
|
Validation override for each request. |
None
|
Returns:
| Type | Description |
|---|---|
PaginatedResponse[OwnedNft, str]
|
An async iterable and awaitable paginated response over owned NFTs. |
References
Source code in pkg/src/alchemy/api/nft/get_nfts_for_owner.py
get_owners_for_contract
Retrieves all owners of a given NFT contract. Optionally includes token balances per owner.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
contract_address
|
str
|
NFT contract address (ERC721 or ERC1155). |
required |
with_token_balances
|
bool | None
|
If true, includes per-token balances for each owner. |
None
|
page_key
|
str | None
|
Pagination cursor for contracts with over 50,000 owners. |
None
|
validate
|
bool | None
|
Validation override for this request. |
None
|
Returns:
| Type | Description |
|---|---|
ContractOwnersResponse
|
The validated endpoint response. |
References
Source code in pkg/src/alchemy/api/nft/get_owners_for_contract.py
get_owners_for_contract_paged
Paged version of get_owners_for_contract.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
contract_address
|
str
|
NFT contract address. |
required |
with_token_balances
|
bool | None
|
If true, includes per-token balances for each owner. |
None
|
validate
|
bool | None
|
Validation override for each request. |
None
|
Returns:
| Type | Description |
|---|---|
PaginatedResponse[ContractOwner, str]
|
An async iterable and awaitable paginated response over contract owners. |
References
Source code in pkg/src/alchemy/api/nft/get_owners_for_contract.py
get_owners_for_nft
Retrieves all owner addresses for a specific NFT token.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
contract_address
|
str
|
NFT contract address (ERC721 or ERC1155). |
required |
token_id
|
str
|
Token ID in hex or decimal format. |
required |
page_key
|
str | None
|
Pagination cursor returned by a previous response. |
None
|
validate
|
bool | None
|
Validation override for this request. |
None
|
Returns:
| Type | Description |
|---|---|
NftOwnersResponse
|
The validated endpoint response. |
References
Source code in pkg/src/alchemy/api/nft/get_owners_for_nft.py
get_spam_contracts
Returns all NFT contract addresses currently marked as spam by Alchemy. Requires Growth plan or higher.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
validate
|
bool | None
|
Validation override for this request. |
None
|
Returns:
| Type | Description |
|---|---|
SpamContractsResponse | str
|
The validated endpoint response. |
References
Source code in pkg/src/alchemy/api/nft/get_spam_contracts.py
invalidate_contract
Marks all cached tokens for a contract as stale, ensuring the next query fetches fresh data. Use after collection reveals.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
contract_address
|
str
|
NFT contract address (ERC721 or ERC1155). |
required |
validate
|
bool | None
|
Validation override for this request. |
None
|
Returns:
| Type | Description |
|---|---|
InvalidateContractResponse
|
The validated endpoint response. |
References
Source code in pkg/src/alchemy/api/nft/invalidate_contract.py
is_airdrop_nft
Checks whether a specific NFT token was airdropped (minted by an address different from the recipient).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
contract_address
|
str
|
NFT contract address (ERC721 or ERC1155). |
required |
token_id
|
str
|
Token ID in hex or decimal format. |
required |
validate
|
bool | None
|
Validation override for this request. |
None
|
Returns:
| Type | Description |
|---|---|
AirdropNftCheckResponse
|
The validated endpoint response. |
References
Source code in pkg/src/alchemy/api/nft/is_airdrop_nft.py
is_holder_of_contract
Checks whether a given wallet owns any token in a specified NFT contract.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
wallet
|
str
|
Wallet address to check. |
required |
contract_address
|
str
|
NFT contract address (ERC721 or ERC1155). |
required |
validate
|
bool | None
|
Validation override for this request. |
None
|
Returns:
| Type | Description |
|---|---|
ContractHolderCheckResponse
|
The validated endpoint response. |
References
Source code in pkg/src/alchemy/api/nft/is_holder_of_contract.py
is_spam_contract
Checks whether a given NFT contract is classified as spam by Alchemy.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
contract_address
|
str
|
NFT contract address (ERC721 or ERC1155). |
required |
validate
|
bool | None
|
Validation override for this request. |
None
|
Returns:
| Type | Description |
|---|---|
SpamContractCheckResponse
|
The validated endpoint response. |
References
Source code in pkg/src/alchemy/api/nft/is_spam_contract.py
refresh_nft_metadata
Queues a cache refresh for a specific NFT token's metadata.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
body
|
RefreshNftMetadataRequest
|
Token to refresh. |
required |
validate
|
bool | None
|
Validation override for this request. |
None
|
Returns:
| Type | Description |
|---|---|
RefreshNftMetadataResponse
|
The validated endpoint response. |
References
Source code in pkg/src/alchemy/api/nft/refresh_nft_metadata.py
report_spam
Reports a contract address as spam to Alchemy's spam classification system.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
address
|
str
|
Contract address to report. |
required |
is_spam
|
bool
|
Whether to mark the address as spam (true) or clear the spam flag (false). |
required |
validate
|
bool | None
|
Validation override for this request. |
None
|
Returns:
| Type | Description |
|---|---|
str
|
The validated endpoint response. |
References
Source code in pkg/src/alchemy/api/nft/report_spam.py
search_contract_metadata
Searches contract metadata across ERC-721 and ERC-1155 contracts for a given keyword. Beta.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
query
|
str
|
Search keyword to match against contract metadata. |
required |
validate
|
bool | None
|
Validation override for this request. |
None
|
Returns:
| Type | Description |
|---|---|
ContractMetadataSearchResponse
|
The validated endpoint response. |
References
Source code in pkg/src/alchemy/api/nft/search_contract_metadata.py
summarize_nft_attributes
Generates a summary of attribute prevalence across all tokens in a collection.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
contract_address
|
str
|
NFT contract address (ERC721 or ERC1155). |
required |
validate
|
bool | None
|
Validation override for this request. |
None
|
Returns:
| Type | Description |
|---|---|
NftAttributesSummaryResponse
|
The validated endpoint response. |