Skip to content

multiversx/mx-sdk-transaction-processor

Repository files navigation

Transaction Processor for JavaScript

Transaction processor for JavaScript and TypeScript (written in TypeScript).

Distribution

npm

Usage

let transactionProcessor = new TransactionProcessor();
await transactionProcessor.start({
  onTransactionsReceived: (shardId, nonce, transactions) => {
    console.log(`Received ${transactions.length} transactions on shard ${shardId} and nonce ${nonce}`);
  },
});

Here is a full application ready to play with in.