Skip to main content

Output

For the complete documentation index, see llms.txt

@midnight/zswap v4.0.0-rc


@midnight/zswap / Output

Class: Output

A shielded transaction output

Properties​

commitment​

readonly commitment: string;

출력의 커밋먼트입니다.


contractAddress​

readonly contractAddress: undefined | string;

수신자가 컨트랙트인 경우 출력을 수신하는 컨트랙트 주소입니다.

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): Output

Parameters​

raw​

Uint8Array<ArrayBufferLike>

netid​

NetworkId

Returns​

Output