@hirosystems/token-metadata-api-client
v2.0.0
Published
Client for @hirosystems/token-metadata-api
Downloads
1,544
Readme
@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',
},
},
});