Property | Type | Description | Default |
---|---|---|---|
database | |||
databaseUri | string | Database uri. | mongodb://127.0.0.1:27017 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Adds mosaic information to balance mosaics | |
* @param balance array of mosaics | |
* @param network selected network | |
* @return Promise with altered balance | |
*/ | |
private _addDivisibilityToBalance(balance, network) { | |
var promises = []; | |
for (let mosaic of balance.data) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {BlockchainHttp, UInt64} from 'nem2-sdk'; | |
const blockchainHttp = new BlockchainHttp('http://localhost:3000'); | |
const timestampToDate = (timestamp: UInt64): Date => { | |
const timestampNemesisBlock = 1459468800; | |
const dateSeconds = timestamp.compact(); | |
return new Date(Math.round(dateSeconds + timestampNemesisBlock * 1000)); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {AccountHttp, NetworkType, PublicAccount, QueryParams} from "nem2-sdk"; | |
import {concatMap, expand, toArray} from "rxjs/operators"; | |
import {EMPTY} from 'rxjs' | |
const nodeUrl = 'http://localhost:3000'; | |
const accountHttp = new AccountHttp(nodeUrl); | |
const pageSize = 100; | |
const allTransactions = true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { | |
AccountHttp, | |
Mosaic, | |
MosaicHttp, | |
NamespaceHttp, | |
NetworkType, | |
PublicAccount, | |
TransferTransaction | |
} from 'nem2-sdk'; | |
import {filter, map, mergeMap, toArray} from "rxjs/operators"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { | |
Account, | |
Address, | |
Deadline, | |
Listener, | |
NetworkType, | |
PlainMessage, | |
TransactionHttp, | |
TransferTransaction | |
} from "nem2-sdk"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import fetch from 'node-fetch'; | |
const address = "" //replace with addres; | |
const pageSize = 100; | |
let transactions = []; | |
const nextPage = () => { | |
getAllTransactions(address, pageSize, transactions[transactions.length - 1].meta.id, nextPage) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"words": "simply,simple,just,easily,easy,naturally,obviously,merelly" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { | |
Account, | |
AggregateTransaction, | |
AliasActionType, | |
AliasTransaction, | |
Deadline, | |
NetworkType, | |
RegisterNamespaceTransaction, | |
TransactionHttp, | |
UInt64 |
OlderNewer