Skip to main content

Input

For the complete documentation index, see llms.txt

@midnight/zswap v4.0.0-rc


@midnight/zswap / Input

Class: Input

A shielded transaction input

Properties​

contractAddress​

readonly contractAddress: undefined | string;

The contract address receiving the input, if the sender is a contract


nullifier​

readonly nullifier: string;

The nullifier of the input

Methods​

serialize()​

serialize(netid): Uint8Array<ArrayBufferLike>

Parameters​

netid​

NetworkId

Returns​

Uint8Array<ArrayBufferLike>


toString()​

toString(compact?): string

Parameters​

compact?​

boolean

Returns​

string


deserialize()​

static deserialize(raw, netid): Input

Parameters​

raw​

Uint8Array<ArrayBufferLike>

netid​

NetworkId

Returns​

Input