mirror of
https://github.com/trezor/trezor-suite.git
synced 2026-02-19 16:22:25 +01:00
Bumps [cross-fetch](https://github.com/lquixada/cross-fetch) from 4.0.0 to 4.1.0. - [Release notes](https://github.com/lquixada/cross-fetch/releases) - [Changelog](https://github.com/lquixada/cross-fetch/blob/v4.x/CHANGELOG.md) - [Commits](https://github.com/lquixada/cross-fetch/compare/v4.0.0...v4.1.0) --- updated-dependencies: - dependency-name: cross-fetch dependency-version: 4.1.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
@trezor/coinjoin
Coinjoin client library.
CoinjoinClient class
Usage:
const client = new CoinjoinClient(settings);
const status = await client.enable();
Once enabled it periodically syncs with coordinator /status using random proxy (TOR) identities and time frequency until client.disable(); is called.
Status changes are emitted as status event:
client.on('status', event => {});
{
rounds: Round[]; // current list of rounds
changed: Round[]: // list of changed rounds since recent update
maxMingFee: number // max mining fee resulting from recommended fee rate median
coordinatorFeeRate: CoordinationFeeRate // current rate and plebsDontPayThreshold
allowedInputAmounts: AllowedRange; // min and max allowed input value
}