0.0.2 • Published 2 years ago

@zero-tech/transaction-grouper v0.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Transaction Groups

Has all the scripts required to group transactions by user.

cmd arguments: yarn cli serve

required arguments: -[u | user]="user hex here" -[i | interval]=(number) The max time between transactions

optional arguments: -[f | outfile]="The output file to write the grouped transactions to"

import * as transactionGrouper from "@zero-tech/transaction-grouper"

const function = async () => {
  const address = "0x0000"
  const groups = await transactionGrouper.getGroups(address, 30);
}

getGroups parameters: address is the wallet on the block chain (often the contract that handles transations) timeBetweenTransactions is the max time in seconds between transactions to group

example: Given the transactions: A at 1:00, B at 1:20, C at 1:40, and D at 2:30, with a timeBetweenTransactions of 30 seconds, the groups will be A,B,C and D