https://github.com/devramsean0/hcb.js
HCB API Wrapper for TS/JS
https://github.com/devramsean0/hcb.js
Last synced: 28 days ago
JSON representation
HCB API Wrapper for TS/JS
- Host: GitHub
- URL: https://github.com/devramsean0/hcb.js
- Owner: devramsean0
- License: mit
- Created: 2023-06-30T21:26:26.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-30T09:46:05.000Z (about 2 years ago)
- Last Synced: 2024-04-30T12:38:06.902Z (about 2 years ago)
- Language: TypeScript
- Homepage:
- Size: 493 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# hcb.js
A npm package for the HCB transparency API
## Getting Started!
### CJS
```cjs
const { HCB } = require('hcb.js');
const hcb = new HCB();
// Get 100 transactions from hq's account
const transactions = hcb.transaction.allOrgTransactions({
id: 'hq',
per_page: 100
});
```
### ESM / TS
```ts
import { HCB } from 'hcb.js';
const hcb = new HCB();
// Get 100 transactions from hq's account
const transactions = hcb.transaction.allOrgTransactions({
id: 'hq',
per_page: 100
});
```
## Documentation
You can view our documentation here [here](https://sean.cyou/docs/hcb.js]