New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

o3-dapi-neoclient

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

o3-dapi-neoclient

Client plugin for o3-dapi-neo

0.0.4
Source
npm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

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

<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));

Keywords

neo

FAQs

Package last updated on 17 Apr 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts