Skip to content

Demo showing how to query metadata using the client #32

@dOrgJelli

Description

@dOrgJelli

TODO:

  • create new project in demos repo
  • use the following pseudo-code to fetch the metadata and access data within it:
import { Web3ApiClient } from "@web3api/client-js";

const client = new Web3ApiClient();
const uri = "ens/some.wrapper.eth";

const metaManifest = await client.getManifest(
  uri, { type: "metadata" }
);

const icon = await client.getFile(uri, { path: metaManifest.icon });

NOTE: be sure to check the typings defined in @web3api/client-js to correct any mistakes in the above pseudo-code.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions