Web3 & MetaMask - Bubble plugin
Get PluginAll our plugins
  • Overview
  • Quick Start Example
  • Elements details
    • Web3 & MetaMask
      • Connect To MetaMask
      • Disconnect MetaMask
      • Send token With MetaMask
      • Get Balance of a Token
      • Get Balance of Multiple Tokens
      • Get Token Symbol
      • Sign
      • Check signature
      • Sign Typed Data
      • Check signature-Typed Data
      • Smart Contract - Read
        • Example - CAKE/BUSD rate on Pancaksewap
      • Smart Contract - Write
        • Example - Write a function
      • Trigger Switch Chain
      • Approve - Set Allowance
      • Revoke Allowance
      • Deploy Contract
      • Add Chain to MetaMask
      • Get NFT Metadata
      • Check NFT Balance
      • Smart Contract - Read
      • Smart Contract - Write
    • Web3 Utils
      • Get Transaction confirmations
      • Get Transaction Details
      • To Wei
      • From Wei
      • Add Token to MetaMask
      • Get ENS data
      • Get ENS Domain from Address
  • Use with other Wallets & Plugins
  • Sign up a user with signature
  • How to use on Mobile
Powered by GitBook
On this page
  1. Elements details
  2. Web3 & MetaMask

Get NFT Metadata

PreviousAdd Chain to MetaMaskNextCheck NFT Balance

Last updated 2 years ago

Demo:

Metadata result is in a stringified JSON format. You can then easily extract any data from it using Regex using Bubble's integrated feature "Extract with Regex" For example, say you want to extract the NFT name from metadata, here's a simple example: (?:"Name":")(.*?)(?:") The result here will look something like this: "Name":"NFT Name" In the same field you can split these by two dots separator ":" which will make a list where the last item is the NFT name. It is actually simpler than it sounds, just check the demo editor example in the Popup Metadata. In any case, you can always write a better regex that will extract only the data you need.

https://web3-demo.bubbleapps.io/version-test/get_nft_metadata