A standalone bundle for interfacing with the NEO blockchain
<script src="https://cdn.jsdelivr.net/npm/[email protected]/lib/neo-dapi.min.js"></script>
window.neoDapi
npm i --save neo-dapi
or
yarn add neo-dapi
var neoDapi = require('neo-dapi');
import neoDapi from 'neo-dapi';
The following is an example of requesting the balances for a specific address.
import neoDapi from 'neo-dapi';
neoDapi.getBalance({
params: [{address: 'AScKxyXmNtEnTLTvbVhNQyTJmgytxhwSnM'}],
network: 'MainNet',
})
.then(balances => console.log(balances));