ZUM Service JS API Interface
This wrapper allows you to easily interact with the ZUM Services v1 API to quickly develop applications that interact with the ZumCoin Network. This entire project uses Javascript Promises to make things fast, easy, and safe.
Table of Contents
Installation
npm i --save @zumservices/zumservices-api-js
Intialization
const ZUMServices = const ZS = token: 'eyJhbGciOiJIUzUxMiIsInR5fCI6IkpXVCJ9.eyJuYW1lIjoidGVzdCIsImFwcElkIjo0LCJ1c2VySWQiOjYsInBlcm1pc3Npb25zIjpbIwFkZHJlc3M6bmV3Il0sImlhdCI6MTUzMjU4NTM2NywiZXhwIjoxNT25MTc3MzY3LCJhdWQiOiJ0dXJ0bGV3YWxsZXQuaW8iLCJpc3MiOiJUUlRMIFNlcnZpY2VzIiwianRpIjoiMzMioQ.AEHXmvTo8RfNuZ15Y3IGPRhZPaJxFSmOZvVv2YGN9L4We7bXslIPxhMv_n_5cNW8sIgE2Fr-46OTb5H5AFgpjA' timeout: 2000
Documentation
API documentation is available at https://zum.services/documentation
Methods
createAddress()
Create a new ZUM addresses
ZS
getAddress(address)
Get address details by address
ZS
deleteAddress(address)
Delete a selected ZUM addresses
ZS
getAddresses()
View all addresses belonging to the specified token.
ZS
scanAddress(address, blockIndex)
Scan an address for transactions between a 100 block range starting from the specified blockIndex.
ZS
getAddressKeys(address)
Get the public and secret spend key of an address.
ZS
integrateAddress(address, paymentId)
Create an integrated address with an address and payment ID.
ZS
getIntegratedAddresses(address)
Create an integrated address with an address and payment ID.
ZS
getFee(amount)
Calculate the ZUM Services fee for an amount specified in ZUM with two decimal points.
ZS
createTransfer(sender, receiver, amount, fee, paymentId, extra)
Send a ZUM transaction with an address with the amount specified two decimal points.
ZS
You can leave the last two fields (paymentId and extra) blank.
getTransfer(address)
Get a transaction details specified by transaction hash.
ZS
getWallet()
Get wallet container info and health check.
ZS
getStatus()
Get the current status of the ZUM Services infrastructure.
ZS
License
Copyright (c) 2019 ZumCoin Development Team
Please see the included LICENSE file for more information.