Have ideas to improve npm?Join in the discussion! »

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

    1.0.3 • Public • Published

    ont-dapi

    A standalone bundle for interfacing with the Ontology blockchain

    Usage

    In a browser - cdn

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

    Install via npm npm version

    npm i --save ont-dapi
    
    or
    
    yarn add ont-dapi
    
    var ontDapi = require('ont-dapi');
    
    import ontDapi from 'ont-dapi';
    

    Example

    import ontDapi from 'ont-dapi';
    
    ontDapi.getBalance({
      address: 'AScKxyXmNtEnTLTvbVhNQyTJmgytxhwSnM',
      network: 'MainNet',
    })
    .then(balances => console.log(balances));
    

    Install

    npm i ont-dapi

    DownloadsWeekly Downloads

    0

    Version

    1.0.3

    License

    MIT

    Unpacked Size

    2.08 MB

    Total Files

    9

    Last publish

    Collaborators

    • avatar