Skip to content

adshares/ads-js

Repository files navigation

Adshares

ADS JS Library

Report bug · Request feature · Docs


ADS JS Library is an JavaScript ES2015 library for the ADS blockchain.

Install

npm install @adshares/ads

yarn add @adshares/ads

Usage

import { validateAddress, splitAddress, sign, decodeCommand } from '@adshares/ads';

const valid = validateAddress('0000-00000000-313E')
const parts = splitAddress('foo_address')

const secretKey = '9F7D754820842E3D141FA7BCF6A3BA731EFE77914AC67E00D1D223E7ADB6FA48'
const signature = sign(secretKey, '74657374')

const data = '0301000000000001000000A1679B5B010000'
const command = decodeCommand(data)

Contributing

Please follow our Contributing Guidelines

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.

More info