An open API service indexing awesome lists of open source software.

https://github.com/scorum/scorum-side-js

Scorum js for side chain
https://github.com/scorum/scorum-side-js

Last synced: about 1 year ago
JSON representation

Scorum js for side chain

Awesome Lists containing this project

README

          

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

Library support only http transport

## Browser
```html

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));

```

## 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