Build
Skip to content

Metadata

The Sequence Metadata API service offers a simple and fast API to query token & NFT metadata for Ethereum-compatible chains.

To learn how to use the Sequence Metadata service, please read:


Web / node.js Installation

Terminal
npm install 0xsequence

or

Terminal
npm install @0xsequence/metadata

then in your app (using your API Access Key),

import { SequenceMetadata } from '@0xsequence/metadata'
 
const metadata = new SequenceMetadata('https://metadata.sequence.app', 'AQAAAAAAAF_JvPALhBthL7VGn6jV0YDqaFY')

NOTE: if you're using @0xsequence/metadata from node.js, we recommend using node v18.x or newer.

Go Installation

go get -u github.com/0xsequence/go-sequence@latest

then in your app,

import (
	"github.com/0xsequence/go-sequence/metadata"
)
 
seqMetadata := metadata.NewMetadata("AQAAAAAAAF_JvPALhBthL7VGn6jV0YDqaFY")
 
contractInfo, err := seqMetadata.GetContractInfo(context.Background(), "polygon", "0x631998e91476DA5B870D741192fc5Cbc55F5a52E")

Unity or Unreal Installation

The Sequence Metadata is integrated directly inside of the respective Sequence Unity and Sequence Unreal SDKs.