0.17.0-rc8.17 • Published 2 years ago
@ximingwang/transaction-manager v0.17.0-rc8.17
@ximingwang/transaction-manager
TransactionManager is a tool for manager uncommitted cells, you can send_transaction
via this tool and get uncommitted outputs by collector
.
Usage
const TransactionManager = require("@ximingwang/transaction-manager");
const { Indexer } = require("@ximingwang/ckb-indexer");
// generate a new `TransactionManager` instance and start.
const indexer = new Indexer("http://127.0.0.1:8114");
const transactionManager = new TransactionManager(indexer);
transactionManager.start();
// now you send transaction via `transactionManager`.
const txHash = await transactionManager.send_transaction(transaction);
// you can get uncommitted cells by `transactionManager.collector`.
const collector = transactionManager.collector({ lock });
for await (const cell of collector.collect()) {
console.log(cell);
}
0.18.0-rc5.1
2 years ago
0.16.1-next.105
2 years ago
0.17.0-rc8.17
2 years ago
0.17.0-rc8.16
2 years ago
0.17.0-rc8.15
2 years ago
0.17.0-rc8.14
2 years ago
0.17.0-rc8.13
2 years ago
0.17.0-rc8.11
2 years ago
0.17.0-rc8.10
2 years ago