Module: messages

Contains the Invoice message

Classes

Buyer
Chat
Invoice
Item
MessageBase
Payment
Seller

Methods


<static> fromTx(connection, tx)

Returns the unserialized and parsed Message object that corresponds to the provided transaction object.

NOTE: This is an internal function, though it may prove useful to others. note the esoteric format of the tx parameter.

Parameters:
Name Type Description
connection Driver

blockchain connection

tx Object

Expected to be in the format of Message#toTransaction

Properties
Name Type Description
data Buffer

As returned by TxDecode#data

txid String
receiverAddr String
senderAddr String
tip Integer
Returns:
Type
Messages

Module: messages

Contains the Payment message

Classes

Buyer
Chat
Invoice
Item
MessageBase
Payment
Seller

Methods


<static> fromTx(connection, tx)

Returns the unserialized and parsed Message object that corresponds to the provided transaction object.

NOTE: This is an internal function, though it may prove useful to others. note the esoteric format of the tx parameter.

Parameters:
Name Type Description
connection Driver

blockchain connection

tx Object

Expected to be in the format of Message#toTransaction

Properties
Name Type Description
data Buffer

As returned by TxDecode#data

txid String
receiverAddr String
senderAddr String
tip Integer
Returns:
Type
Messages

Module: messages

Contains the Chat message

Classes

Buyer
Chat
Invoice
Item
MessageBase
Payment
Seller

Methods


<static> fromTx(connection, tx)

Returns the unserialized and parsed Message object that corresponds to the provided transaction object.

NOTE: This is an internal function, though it may prove useful to others. note the esoteric format of the tx parameter.

Parameters:
Name Type Description
connection Driver

blockchain connection

tx Object

Expected to be in the format of Message#toTransaction

Properties
Name Type Description
data Buffer

As returned by TxDecode#data

txid String
receiverAddr String
senderAddr String
tip Integer
Returns:
Type
Messages

Module: messages

Contains the Buyer and Seller messages

Classes

Buyer
Chat
Invoice
Item
MessageBase
Payment
Seller

Methods


<static> fromTx(connection, tx)

Returns the unserialized and parsed Message object that corresponds to the provided transaction object.

NOTE: This is an internal function, though it may prove useful to others. note the esoteric format of the tx parameter.

Parameters:
Name Type Description
connection Driver

blockchain connection

tx Object

Expected to be in the format of Message#toTransaction

Properties
Name Type Description
data Buffer

As returned by TxDecode#data

txid String
receiverAddr String
senderAddr String
tip Integer
Returns:
Type
Messages

Module: messages

Contains the MessageBase class from which all messages inherit

Classes

Buyer
Chat
Invoice
Item
MessageBase
Payment
Seller

Methods


<static> fromTx(connection, tx)

Returns the unserialized and parsed Message object that corresponds to the provided transaction object.

NOTE: This is an internal function, though it may prove useful to others. note the esoteric format of the tx parameter.

Parameters:
Name Type Description
connection Driver

blockchain connection

tx Object

Expected to be in the format of Message#toTransaction

Properties
Name Type Description
data Buffer

As returned by TxDecode#data

txid String
receiverAddr String
senderAddr String
tip Integer
Returns:
Type
Messages

Module: messages

Contains the Invoice message

Classes

Buyer
Chat
Invoice
Item
MessageBase
Payment
Seller

Methods


<static> fromTx(connection, tx)

Returns the unserialized and parsed Message object that corresponds to the provided transaction object.

NOTE: This is an internal function, though it may prove useful to others. note the esoteric format of the tx parameter.

Parameters:
Name Type Description
connection Driver

blockchain connection

tx Object

Expected to be in the format of Message#toTransaction

Properties
Name Type Description
data Buffer

As returned by TxDecode#data

txid String
receiverAddr String
senderAddr String
tip Integer
Returns:
Type
Messages

Module: messages

Contains utilities for and inclusion of specific message objects

Classes

Buyer
Chat
Invoice
Item
MessageBase
Payment
Seller

Methods


<static> fromTx(connection, tx)

Returns the unserialized and parsed Message object that corresponds to the provided transaction object.

NOTE: This is an internal function, though it may prove useful to others. note the esoteric format of the tx parameter.

Parameters:
Name Type Description
connection Driver

blockchain connection

tx Object

Expected to be in the format of Message#toTransaction

Properties
Name Type Description
data Buffer

As returned by TxDecode#data

txid String
receiverAddr String
senderAddr String
tip Integer
Returns:
Type
Messages