Skip to content

Commit

Permalink
Merge pull request #290 from hirosystems/develop
Browse files Browse the repository at this point in the history
release to master
  • Loading branch information
rafaelcr authored Dec 17, 2024
2 parents a1c253b + 94b9486 commit 982045d
Show file tree
Hide file tree
Showing 27 changed files with 7,981 additions and 12,872 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
env:
API_HOST: 127.0.0.1
API_PORT: 3000
PROMETHEUS_PORT: 9154
PROMETHEUS_PORT: 9153
PGHOST: 127.0.0.1
PGPORT: 5432
PGUSER: postgres
Expand Down
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 982045d

Please sign in to comment.