Skip to main content

@midnight/zswap v3.0.2Readme | API


@midnight/zswap v3.0.2 / SystemTransaction

Class: SystemTransaction

A priviledged transaction issued by the system.

Constructors

new SystemTransaction()

private new SystemTransaction(): SystemTransaction

Returns

SystemTransaction

Methods

serialize()

serialize(netid): Uint8Array

Parameters

netid: NetworkId

Returns

Uint8Array


toString()

toString(compact?): string

Parameters

compact?: boolean

Returns

string


deserialize()

static deserialize(raw, netid): Transaction

Parameters

raw: Uint8Array

netid: NetworkId

Returns

Transaction