JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q32031F
  • License MIT

Amalgam API JavaScript library

Package Exports

  • amalgam-js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (amalgam-js) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Amalgam API JavaScript library

This library provides access to Amalgam blockchain from JavaScript applications.

Install

$ npm install amalgam-js --save

Here is full documentation: https://github.com/amalgam-blockchain/amalgam-js/tree/master/doc

Browser

<script src="./amalgam.min.js"></script>
<script>
amalgam.api.findAccounts(['account1', 'account2'], function(err, response){
    console.log(err, response);
});
</script>

CDN

https://cdn.jsdelivr.net/npm/amalgam-js/dist/amalgam.min.js

<script src="https://cdn.jsdelivr.net/npm/amalgam-js/dist/amalgam.min.js"></script>

Server

https://api.amalgam.money By Default

Examples

Get Accounts

amalgam.api.findAccounts(['account1', 'account2'], function(err, result) {
    console.log(err, result);
});

Issues

When you find issues, please report them!

License

MIT