New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@hirosystems/token-metadata-api-client

Package Overview
Dependencies
Maintainers
4
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hirosystems/token-metadata-api-client

Client for @hirosystems/token-metadata-api

latest
npmnpm
Version
2.0.0
Version published
Weekly downloads
0
Maintainers
4
Weekly downloads
 
Created
Source

@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

fetch

FAQs

Package last updated on 14 Oct 2024

Related posts