2.0.0 • Published 8 months ago

@hirosystems/token-metadata-api-client v2.0.0

Weekly downloads
-
License
GPL-3.0
Repository
-
Last release
8 months ago

@hirosystems/token-metadata-api-client

This is a client library for the Token Metadata API.

Installation

npm install @hirosystems/token-metadata-api-client

Example

import { createClient } from '@hirosystems/token-metadata-api-client';

const client = createClient({ baseUrl: 'https://api.mainnet.hiro.so' });
const metadata = await client.GET('/metadata/v1/ft/{principal}', {
  params: {
    path: {
      principal: 'SM26AQGZBMDPN2NTH0DJWFESFV0NJC744F1GQVZ6Y.token-btc',
    },
  },
});