How to use the nem2-sdk.TransactionHttp function in nem2-sdk

To help you get started, we’ve selected a few nem2-sdk examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github 44uk / nem2-dojo / scripts / util.js View on Github external
exports.announce = (url, tx, ...subscriber) => {
  const transactionHttp = new nem.TransactionHttp(url)
  const subscription = transactionHttp.announce(tx)
  announceUtil(subscription, url, tx, ...subscriber)
}
github luxtagofficial / Apostille-library / src / infrastructure / ApostilleHttp.ts View on Github external
public constructor(url: string) {
    this.transactionHttp = new TransactionHttp(url);
    this.accountHttp = new AccountHttp(url);
    this.listener = new Listener(url);
  }
github luxtagofficial / Apostille-library / src / ApostilleAccount.ts View on Github external
public getTransactionById(transactionID: string, urls?: string): Observable {
        let transactionHttp: TransactionHttp;
        if (urls) {
            transactionHttp = new TransactionHttp(urls);
        } else {
            if (this.publicAccount.address.networkType === NetworkType.MIJIN) {
                throw new Error(Errors[Errors.MIJIN_ENDPOINT_NEEDED]);
            }
            transactionHttp = new TransactionHttp(HistoricalEndpoints[this.publicAccount.address.networkType]);
        }
        return transactionHttp.getTransaction(transactionID);
    }
github luxtagofficial / Apostille-library / src / ApostilleAccount.ts View on Github external
public getTransactionById(transactionID: string, urls?: string): Observable {
        let transactionHttp: TransactionHttp;
        if (urls) {
            transactionHttp = new TransactionHttp(urls);
        } else {
            if (this.publicAccount.address.networkType === NetworkType.MIJIN) {
                throw new Error(Errors[Errors.MIJIN_ENDPOINT_NEEDED]);
            }
            transactionHttp = new TransactionHttp(HistoricalEndpoints[this.publicAccount.address.networkType]);
        }
        return transactionHttp.getTransaction(transactionID);
    }

nem2-sdk

Reactive Nem2 sdk for typescript and javascript

Apache-2.0
Latest version published 5 years ago

Package Health Score

51 / 100
Full package analysis

Similar packages