# oreos

> Ironfish rpc provider

Latest version **1.0.6** (published 2024-05-28) · ISC license · 0 weekly downloads

## Install

```sh
npm install oreos
pnpm add oreos
yarn add oreos
bun add oreos
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.6 |
| Published | 2024-05-28 |
| First published | 2022-10-06 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 39 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | @oreos |
| Maintainers | hairtailling |
| Keywords | Ironfish, Rpc provider, oreos |

## Links

- npm: https://www.npmjs.com/package/oreos
- Repository: https://github.com/oreoslabs/oreos
- Homepage: https://github.com/oreoslabs/oreos#readme
- Issues: https://github.com/oreoslabs/oreos/issues
- npm.io page: https://npm.io/package/oreos

## Dependencies (1)

- [axios](https://npm.io/package/axios.md) ^1.4.0

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 1.0.6 (latest) — 2024-05-28
- 1.0.5 — 2024-02-10
- 1.0.4 — 2024-02-10
- 1.0.3 — 2023-09-11
- 1.0.2 — 2023-08-05
- 1.0.1 — 2023-08-01
- 0.2.13 — 2023-04-15
- 0.2.12 — 2023-03-22
- 0.2.11 — 2023-03-09
- 0.2.1-0.2 — 2023-03-09
- 0.2.1-0.1 — 2023-03-09
- 0.2.10 — 2023-03-09
- 0.2.9 — 2023-03-03
- 0.2.8 — 2023-02-13
- 0.2.7 — 2023-01-30
- … 8 more at https://npm.io/package/oreos/versions

## README

The Oreos Project
==================

An ironfish provider implementation and utilities in TypeScript.

**Features:**

- Ironfish rpc over http
- Fully **TypeScript** ready, with definition files and full TypeScript source

**Methods:**

- getBalance
- getBalances
- mintAsset
- burnAsset
- createTransaction
- sendTransaction
- getAccountTransaction
- getAccountTransactions
- getAsset
- broadcastTransaction
- getBlock
- getChainInfo
- getTransaction
- getNoteWitness

**Rpc Usage:**

```typescript
import { RpcService } from 'oreos';

const provider = new RpcService(baseUrl);

type GetBalanceRequest = {
  account?: string;
  assetId?: string;
  confirmations?: number;
};

type AssetVerification = {
  status: 'verified' | 'unverified' | 'unknown';
};

type GetBalanceResponse = {
  account: string;
  assetId: string;
  assetVerification: AssetVerification;
  confirmed: string;
  unconfirmed: string;
  unconfirmedCount: number;
  pending: string;
  pendingCount: number;
  available: string;
  confirmations: number;
  blockHash: string | null;
  sequence: number | null;
};

const getBalanceRequest: GetBalanceRequest = {
  account: 'default',
  confirmations: 2,
};

const response: GetBalanceResponse = await provider.getBalance(getBalanceRequest);
```

**Advanced Usage:**

```typescript
import { RpcService } from 'oreos';

const provider = new RpcService(baseUrl);

const route = 'chain';
const method = 'getNetworkInfo';
const response: T = await provider.request<T>(`${route}/${method}`, params); 
```

---
_Source: https://npm.io/package/oreos · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
