oDapp

API for dApps on Obyte

This API created to optimize work with DApp’s in browser and Node.js

To achieve this were created bulk queries, for example using getAAsByBaseAAsWithVars method you can receive all created autonomous agents by its base autonomous agent with their definition with vars.

Source

client: https://github.com/xJeneKx/odapp

hub: https://github.com/xJeneKx/odapp-hub

Install

npm i odapp

How to use

import oDapp from "odapp";

const odapp = new oDapp();

const result = await odapp.getDataFeed(['OPNUXBRSSQQGHKQNEPD2GLWQYEUY5XLD'], 'timestamp');
console.log(result);

Arguments

new oDapp(baseUrl: string, useRestClient?: boolean)

For testnet:

const odapp = new oDapp('https://odapp-t.aa-dev.net');

Mainnet and HTTP API

const odapp = new oDapp(null, true);

Last updated