npm.io
2.0.0 • Published 1 year ago

@hirosystems/token-metadata-api-client

Licence
GPL-3.0
Version
2.0.0
Deps
1
Size
82 kB
Vulns
0
Weekly
0

@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',
    },
  },
});

Keywords