Home Reference Source
public class | source

InterfaceBlockchainTransactionFrom

Constructor Summary

Public Constructor
public

It Supports multiple from addresses - useful for compressing tx and allow mixers

Member Summary

Public Members
public
public
public

Method Summary

Public Methods
public
public

deserializeFrom(buffer: *, offset: *): *

public

findAddressIndex(unencodedAddress: *): *

public

processTransactionFrom(multiplicationFactor: number, revertActions: *)

public

serializeForSigning(unencodedAddress: *): *

public
public

setFrom(addresses: *, currencyTokenId: *): boolean

public

toJSON(): {addresses: Array, currencyTokenId: string}

Convert the To to JSON array

public

valdiateFrom object of a given Transaction

public

Public Constructors

public constructor() source

It Supports multiple from addresses - useful for compressing tx and allow mixers

addresses [ { unencodedAddress1, publicKey1, signature1, amount1 }, { unencodedAddress2, publicKey2, signature2, amount2 }, { unencodedAddress3, publicKey3, signature3, amount3, }, ]

Public Members

public addresses: * source

public currencyTokenId: * source

public transaction: * source

Public Methods

public calculateInputSum(): * source

Return:

*

public deserializeFrom(buffer: *, offset: *): * source

Params:

NameTypeAttributeDescription
buffer *
offset *

Return:

*

public findAddressIndex(unencodedAddress: *): * source

Params:

NameTypeAttributeDescription
unencodedAddress *

Return:

*

public processTransactionFrom(multiplicationFactor: number, revertActions: *) source

Params:

NameTypeAttributeDescription
multiplicationFactor number
  • optional
  • default: 1
revertActions *

public serializeForSigning(unencodedAddress: *): * source

Params:

NameTypeAttributeDescription
unencodedAddress *

Return:

*

public serializeFrom(): * source

Return:

*

public setFrom(addresses: *, currencyTokenId: *): boolean source

Params:

NameTypeAttributeDescription
addresses *
currencyTokenId *

Return:

boolean

public toJSON(): {addresses: Array, currencyTokenId: string} source

Convert the To to JSON array

Return:

{addresses: Array, currencyTokenId: string}

public validateFrom(): * source

valdiateFrom object of a given Transaction

Return:

*

from

public validateSignatures(): boolean source

Return:

boolean