New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@zero-tech/transaction-grouper

Package Overview
Dependencies
Maintainers
4
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zero-tech/transaction-grouper

Scripts for grouping transactions by a given time interval

latest
npmnpm
Version
0.0.2
Version published
Maintainers
4
Created
Source

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]

FAQs

Package last updated on 04 Aug 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts