@scorum/scorum-side-js

1.20.1 • Public • Published

Scorum-side.js

Scorum-side.js -- JavaScript API for Scorum sidechain.

Library support only http transport

Browser

<script src="./scorum-side.min.js"></script>
<script>
    scorum.api.setOptions({ url: 'https://blog-api-dev.scorum.com/', convert_url: 'https://converter-dev.scorum.com/' });
    scorum.config.set('address_prefix', 'SCR');
    scorum.config.set('chain_id', 'd3c1f19a4947c296446583f988c43fd1a83818fabaf3454a0020198cb361ebd2');

    scorum.api.getProfileWithAsync({
      account: 'kristie'
    })
    .then(response => console.log(response))
    .catch(err => console.error(err));
</script>

Install

$ yarn add @scorum/scorum-side-js

Examples

  • The client side examples can be found under examples/client folder.
  • The server side examples can be found under examples/server folder.

Contributions

Patches are welcome! Contributors are listed in the package.json file. Please run the tests before opening a pull request and make sure that you are passing all of them. If you would like to contribute, but don't know what to work on, check the issues list.

Issues

When you find issues, please report them!

License

MIT

/@scorum/scorum-side-js/

    Package Sidebar

    Install

    npm i @scorum/scorum-side-js

    Weekly Downloads

    19

    Version

    1.20.1

    License

    MIT

    Unpacked Size

    17.1 MB

    Total Files

    79

    Last publish

    Collaborators

    • vlukyane
    • jekahm
    • admin-scorum
    • xpss
    • andrewww
    • asvetenkov
    • molforp