0.0.5 • Published 5 years ago

o3-dapi-neoclient v0.0.5

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

o3-dapi-neoclient

Client plugin for o3-dapi-neo, which will move the logic for all read methods to the client side.

Requires o3-dapi-core & o3-dapi-neo to operate.

Usage

In a browser - cdn npm.io

<script src="https://cdn.jsdelivr.net/npm/o3-dapi-neoclient/lib/o3-dapi-neoclient.min.js"></script>
window.o3dapiNeoClient

Install via npm npm version

npm i --save o3-dapi-neoclient

or

yarn add o3-dapi-neoclient
var o3dapiNeoClient = require('o3-dapi-neoclient');

import o3dapiNeoClient from 'o3-dapi-neoclient';

Example

import o3dapi from 'o3-dapi-core';
import o3dapiNeo from 'o3-dapi-neo';
import o3dapiNeoClient from 'o3-dapi-neoclient';

o3dapi.initPlugins([o3dapiNeo]);

o3dapi.NEO.setClientPlugin(o3dapiNeoClient)

// o3 app does not need to be open, and site can be accessed from any browser to operate on same methods
o3dapi.NEO.getBalance({
  params: [{address: 'AScKxyXmNtEnTLTvbVhNQyTJmgytxhwSnM'}],
  network: 'MainNet',
})
.then(balances => console.log(balances));
0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago