# odinprotocoljs

> Typescript Protobuf Messages for Odin

Latest version **1.0.2** (published 2023-02-24) · ISC license · 0 weekly downloads

## Install

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

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; large bundle.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2023-02-24 |
| First published | 2023-02-24 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | ESM |
| Dependencies | 9 |
| Unpacked size | 21.1 MB |
| Known vulnerabilities | 0 (+11 in 1 direct dependencies) |
| Install scripts | no |
| Author | Odin Protocol |
| Maintainers | carmonasl |
| Keywords | cosmos, odin, js |

## Links

- npm: https://www.npmjs.com/package/odinprotocoljs
- Repository: https://github.com/ODIN-PROTOCOL/odinjs
- Homepage: https://github.com/ODIN-PROTOCOL/odinjs#readme
- Issues: https://github.com/ODIN-PROTOCOL/odinjs/issues
- npm.io page: https://npm.io/package/odinprotocoljs

## Dependencies (9)

- [long](https://npm.io/package/long.md) ^5.2.0
- [dotenv](https://npm.io/package/dotenv.md) ^16.0.3
- [protobufjs](https://npm.io/package/protobufjs.md) ^6.11.3
- [@cosmjs/amino](https://npm.io/package/@cosmjs/amino.md) 0.29.3
- [@babel/runtime](https://npm.io/package/@babel/runtime.md) ^7.19.0
- [@osmonauts/lcd](https://npm.io/package/@osmonauts/lcd.md) ^0.8.0
- [@cosmjs/stargate](https://npm.io/package/@cosmjs/stargate.md) 0.29.3
- [@cosmjs/proto-signing](https://npm.io/package/@cosmjs/proto-signing.md) 0.29.3
- [@cosmjs/tendermint-rpc](https://npm.io/package/@cosmjs/tendermint-rpc.md) ^0.29.3

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.0.2 (latest) — 2023-02-24
- 1.0.1 — 2023-02-24
- 1.0.0 — 2023-02-24

## README

<!-- PROJECT LOGO -->
<p align="center">
  <a href="https://mainnet.odinprotocol.io">
    <img src="static/img/favicon.png" alt="Logo" width="120">
  </a>

  <h2 align="center">Odinjs</h3>

  <p align="center" width="100%">
   <a href=""><img height="20" src="https://img.shields.io/badge/license-MIT-blue.svg"></a>
   <a href=""><img height="20" src="https://img.shields.io/github/package-json/v/odin-protocol/odinjs?filename=package.json"></a>
</p>

  <p align="center">
    OdinJS is a library for interacting easily with Odin network based on Stargate.
    <br />
    <br />
    <a href="https://github.com/ODIN-PROTOCOL/odinjs/issues">Report Bug</a>
    ·
    <a href="https://github.com/ODIN-PROTOCOL/odinjs/issues">Request Feature</a>
  </p>
</p>

---
## Install

```sh
npm install odinjs
```

## Usage

First you need to import the odin client and connect it to your RPC. Then you can call the methods of the client.

All methods for Odin Client are defined in the interface extension `types/generated/odin/odinExtension.ts`

### RPC Clients

```js
import { odinQueryClient } from "../src/odinClient";

const config_rpc = "https://node.odin-freya-website.odinprotocol.io/mainnet/a/"

const myOdinClient = new odinQueryClient()
await myOdinClient.connect(config_rpc);

const dataSource = await myOdinClient.queryClient.oracle.getDataSourceById(14)
console.log(dataSource)

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