metadataByMetadataId

This is a work in progress, please reach out to us on Telegram for support. For the most reliable data, reference our existing graphql docs.

Returns metadata by metadataId.

metadataByMetadataId(metadataId: string, network?: "testnet" | "mainnet")

This is an example of a data api method.

Example:

metadataByMetadataId.ts
import { metadataByMetadataId } from "@mintbase-js/data";

const { data, error } = await metadataByMetadataId("teammintbase.mintbase1.near:0fd038b1fc7d86de6f8c816d5669accc", 'mainnet');

if (error) {
  console.log("error", error);
}

console.log(data) // => metadata

Last updated