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
- Host: GitHub
- URL: https://github.com/scorum/scorum-side-js
- Owner: scorum
- Created: 2018-04-25T08:26:58.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-12-05T20:48:49.000Z (over 7 years ago)
- Last Synced: 2025-03-10T07:36:37.308Z (over 1 year ago)
- Language: JavaScript
- Size: 198 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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