Actions19
- Block Actions
- DeFi Actions
- NFT Actions
- Token Actions
- Transaction Actions
- Wallet Actions
NFT → Get NFT Metadata
AI-generatedOverview
This node interacts with the Moralis Web3 API to retrieve metadata for a specific NFT on a selected blockchain. It is useful for scenarios where users need detailed information about an NFT, such as its attributes, ownership details, and other metadata stored on the blockchain. For example, a user can input the NFT contract address and token ID to fetch the metadata of that NFT on Ethereum or other supported chains.
Use Case Examples
- Fetching metadata for a specific NFT on Ethereum to display its details in a marketplace.
- Retrieving NFT metadata on Polygon to verify attributes before a transaction.
Properties
| Name | Meaning |
|---|---|
| Chain | The blockchain network to query for the NFT metadata, e.g., Ethereum, Polygon, BSC. |
| NFT Contract Address | The contract address of the NFT collection to query. |
| Token ID | The specific token ID of the NFT to retrieve metadata for. |
| Additional Fields | Optional parameters to customize the request, including limit of results, pagination cursor, whether to include metadata, and number format (decimal or hex). |
Output
JSON
token_address- The NFT contract address.token_id- The token ID of the NFT.owner_of- The current owner address of the NFT.metadata- The metadata associated with the NFT, including attributes and details.name- The name of the NFT.symbol- The symbol of the NFT collection.token_uri- The URI pointing to the NFT metadata.operation- The operation performed, here 'getNFTMetadata'.resource- The resource type, here 'nft'.chain- The blockchain network queried.timestamp- The timestamp when the data was retrieved.
Dependencies
- Moralis Web3 API
- An API key credential for Moralis
Troubleshooting
- Common issues include invalid or missing NFT contract address or token ID, resulting in no data found errors.
- API key authentication errors if the Moralis API key is incorrect or missing.
- Network or chain parameter errors if an unsupported blockchain is selected.
- Error messages from the Moralis API are propagated; ensure correct parameters and valid token IDs are used.
Links
- Moralis NFT API - Get NFT Metadata - Official Moralis documentation for the NFT metadata endpoint.