Home Reference Source

References

core/src

summary
public

Generic BRS Web Service class.

public

Original work Copyright (c) 2018 PoC-Consortium Modified work Copyright (c) 2019 Burst Apps Team

public

Original work Copyright (c) 2018 PoC-Consortium Modified work Copyright (c) 2019 Burst Apps Team

core/src/abstract

summary
public

C Store

core/src/api

summary
public
public

F compose(settings: ApiSettings): {"block": *, "network": *, "transaction": *, "message": *}

Composes the API, i.e.

core/src/api/block

summary
public

F getBlockByHeight(height: *, includeTransactions: *): *

Get a block by given height

public

F getBlockById(id: *, includeTransactions: *): *

Get a block by given id

public

F getBlockByTimestamp(timestamp: *, includeTransactions: *): *

Get a block by given timestamp

public

F getBlockId(height: number): Promise<BlockId>

Get a block id by given height

core/src/api/message

summary
public

F sendTextMessage(message: *, recipientId: *, senderPublicKey: *, senderPrivateKey: *, fee: *): *

Broadcasts a text message to the network/blockchain

core/src/api/network

summary
public

F getBlockchainStatus(service: *): *

Get the blockchain status.

public

F getServerStatus(service: *): *

Get the state of the server node and network

core/src/api/transaction

summary
public

F broadcastTransaction(signedTransactionPayload: *): *

Broadcasts a transaction to the network/blockchain

public

F getTransaction(transactionId: *): *

Get a transaction from the network/blockchain

core/src/error

summary
public

Original work Copyright (c) 2018 PoC-Consortium Modified work Copyright (c) 2019 Burst Apps Team

public

Original work Copyright (c) 2018 PoC-Consortium Modified work Copyright (c) 2019 Burst Apps Team

core/src/typings

summary
public

Original work Copyright (c) 2018 PoC-Consortium Modified work Copyright (c) 2019 Burst Apps Team

public
public

Original work Copyright (c) 2018 PoC-Consortium Modified work Copyright (c) 2019 Burst Apps Team

public
public
public

crypto/src

summary
public
public

C Crypto

public
public
public
public

F decryptAES(encryptedBase64: *, key: *): *

Decrypt an encrypted message

public

F generateMasterKeys(passPhrase: *): *

Generate the Master Public Key and Master Private Key for a new passphrase

public

F generateSignature(messageHex: *, privateKey: *): *

Generate a signature for the transaction

public

F generateSignedTransactionBytes(unsignedTransactionHex: *, signature: *): *

Generates a signed message digest

public

F getAccountIdFromPublicKey(publicKey: *): *

Convert hex string of the public key to the account id

public

F verifySignature(signature: *, messageHex: *, publicKey: *): *

Verify a signature for given message

crypto/typings

summary
public

C Keys

Original work Copyright (c) 2018 PoC-Consortium Modified work Copyright (c) 2019 Burst Apps Team

http/src

summary
public

C Http

A generic HTTP client

public

Original work Copyright (c) 2018 PoC-Consortium Modified work Copyright (c) 2019 Burst Apps Team

public

Http Mocker for easy to http testing using Jest

public