odinprotocoljs
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

Logo

Odinjs

OdinJS is a library for interacting easily with Odin network based on Stargate.

Report Bug · Request Feature


Install

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

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)

Readme

Keywords

Package Sidebar

Install

npm i odinprotocoljs

Weekly Downloads

0

Version

1.0.2

License

ISC

Unpacked Size

22.1 MB

Total Files

465

Last publish

Collaborators

  • carmonasl