Skip to content

Commit 982045d

Browse files
authored
Merge pull request #290 from hirosystems/develop
release to master
2 parents a1c253b + 94b9486 commit 982045d

27 files changed

+7981
-12872
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
env:
5858
API_HOST: 127.0.0.1
5959
API_PORT: 3000
60-
PROMETHEUS_PORT: 9154
60+
PROMETHEUS_PORT: 9153
6161
PGHOST: 127.0.0.1
6262
PGPORT: 5432
6363
PGUSER: postgres

client/typescript/.gitignore renamed to client/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ wwwroot/*.js
22
node_modules
33
typings
44
dist
5+
lib

client/README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
## @hirosystems/token-metadata-api-client
2+
3+
This is a client library for the [Token Metadata API](https://github.com/hirosystems/token-metadata-api).
4+
5+
### Installation
6+
7+
```
8+
npm install @hirosystems/token-metadata-api-client
9+
```
10+
11+
### Example
12+
13+
```typescript
14+
import { createClient } from '@hirosystems/token-metadata-api-client';
15+
16+
const client = createClient({ baseUrl: 'https://api.mainnet.hiro.so' });
17+
const metadata = await client.GET('/metadata/v1/ft/{principal}', {
18+
params: {
19+
path: {
20+
principal: 'SM26AQGZBMDPN2NTH0DJWFESFV0NJC744F1GQVZ6Y.token-btc',
21+
},
22+
},
23+
});
24+
```

0 commit comments

Comments
 (0)