NftDetectionController Actions
1 action registered.
| Name | Deprecated |
|---|---|
detectNfts |
NftDetectionController:detectNfts
Package: @metamask/assets-controllers
Triggers asset ERC721 token auto detection on mainnet. Any newly detected NFTs are added.
Parameters:
| Name | Description |
|---|---|
chainIds | The chain IDs to detect NFTs on. |
options | Options bag. |
options.userAddress | The address to detect NFTs for. |
options.firstPageOnly | Whether to only detect the first page of NFTs. |
options.signal | An optional abort signal to cancel the operation. |
Handler signature:
(chainIds: Hex[], options?: {
userAddress?: string;
firstPageOnly?: boolean;
signal?: AbortSignal;
}) => Promise<void>