Skip to main content

Output

@midnight-ntwrk/ledger v3.0.2 β€’ Readme | API


@midnight-ntwrk/ledger v3.0.2 / Output

Class: Output

A shielded transaction output

Constructors​

new Output()​

private new Output(): Output

Returns​

Output

Properties​

commitment​

readonly commitment: string;

The commitment of the output


contractAddress​

readonly contractAddress: undefined | string;

The contract address receiving the output, if the recipient is a contract

Methods​

serialize()​

serialize(netid): Uint8Array

Parameters​

β€’ netid: NetworkId

Returns​

Uint8Array


toString()​

toString(compact?): string

Parameters​

β€’ compact?: boolean

Returns​

string


deserialize()​

static deserialize(raw, netid): Output

Parameters​

β€’ raw: Uint8Array

β€’ netid: NetworkId

Returns​

Output