@midnight/ledger v3.0.2 • Readme | API
@midnight/ledger v3.0.2 / Input
Class: Input
A shielded transaction input
Constructors
new Input()
private new Input(): Input
Returns
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
Parameters
• netid: NetworkId
Returns
Uint8Array
toString()
toString(compact?): string
Parameters
• compact?: boolean
Returns
string
deserialize()
static deserialize(raw, netid): Input
Parameters
• raw: Uint8Array
• netid: NetworkId