Skip to content

Commit

Permalink
build: generate client with openapi-typescript (#274)
Browse files Browse the repository at this point in the history
* build: generate client with openapi-typescript

* fix: bump breaking version
  • Loading branch information
rafaelcr authored Oct 14, 2024
1 parent 1aab466 commit b7e838d
Show file tree
Hide file tree
Showing 23 changed files with 7,953 additions and 12,864 deletions.
1 change: 1 addition & 0 deletions client/typescript/.gitignore → client/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ wwwroot/*.js
node_modules
typings
dist
lib
24 changes: 24 additions & 0 deletions client/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
## @hirosystems/token-metadata-api-client

This is a client library for the [Token Metadata API](https://github.com/hirosystems/token-metadata-api).

### Installation

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

### Example

```typescript
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',
},
},
});
```
Loading

0 comments on commit b7e838d

Please sign in to comment.