Class: Server

constellation.Server

new Server(urlopt) → {Object}

Parameters:
Name Type Attributes Description
url String <optional>
url to a constellation server
Source:
Returns:
Type
Object

Methods

(inner) submitSignatures(hash, sigs) → {Promise}

Submit signatures to the signature server
Parameters:
Name Type Description
hash String transaction hash for the transaction to sign
sigs Array.<DecoratedSignature> an array of DecoratedSignatures
Source:
Returns:
Type
Promise

(inner) submitTransaction(tx, networkIdopt) → {Promise}

Submit a transaction to the signature server
Parameters:
Name Type Attributes Description
tx Transaction transaction
networkId String <optional>
network
Source:
Returns:
Type
Promise

(inner) subscribe(pubkeys, requestFunc, progressFunc, addSignerFunc, removeSignerFunc) → {EventSource}

Subscribe to push notifications for a list of public keys.
Parameters:
Name Type Description
pubkeys Array.<String> an array of public keys
requestFunc requestFunc handler of request events
progressFunc progressFunc handler of progress events
addSignerFunc addSignerFunc handler of add account events
removeSignerFunc removeSignerFunc handler of remove account events
Source:
Returns:
Type
EventSource