@zero-tech/transaction-grouper
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

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"


using as a package:
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]

Readme

Keywords

none

Package Sidebar

Install

npm i @zero-tech/transaction-grouper

Weekly Downloads

1

Version

0.0.2

License

MIT

Unpacked Size

24.4 kB

Total Files

25

Last publish

Collaborators

  • whytecrowe
  • joel_tulloch
  • zero-brett
  • jamesearle