Skip to content

https://hashbit.org - HBIT Javascript API to interact with blockchain using Browser Javascript

License

Notifications You must be signed in to change notification settings

HashBitorg/HBIT-API-Browser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

HBIT-API-Node-Browser

============

API request wrapper for HBIT crypto for browser. It just has all the currently public API methods for HBIT along side with a dual API Promise/Callback based interface.

Plus it's created using Typescript, which should ensure the proper parameters for each API call.

Install

In the browser (needs to have hbit.apiServerCORS=true in your HBIT config file, otherwise you need to access it from same port and hostname):

<script src="hbit-api.js"></script>
<script>
    var instance = new HBIT.API('http://127.0.0.1:11120');

    instance.getNextBlockGenerators().then(function(answer){
        console.log(answer);
    });
</script>

About

https://hashbit.org - HBIT Javascript API to interact with blockchain using Browser Javascript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published