Sui Owned Object Pools Quick Start
⚠️
Sui Owned Object Pools (SuiOOP) has been replaced by
ParallelTransactionExecutor
from
@mysten/sui/transactions
Sui Owned Object Pools (SuiOOP) is no longer maintained.
SuiOOP is a TypeScript library that provides a set of tools for managing multiple concurrent transactions on the Sui network to help avoid object equivocation and locking.
Installation
npm i suioop
Usage
At a high level, this is how you implement the library:
// Initialize the ExecutorServiceHandler.
const eshandler = await ExecutorServiceHandler.initialize(
adminKeypair,
suiClient,
);
/// And then for each incoming request...
/// ...get the incoming transaction
const myTransaction;
/// and send it for execution
const promise = eshandler.execute(myTransaction, suiClient, splitStrategy);
See End-to-End Examples for sample code you can run.