Class: Listing

Listing


new Listing(connection, txid)

Concatenate an Item Declaration, and its updates, into a current representation of the Item/Listing's state.

Parameters:
Name Type Description
connection Driver

blockchain connection

txid String

Transaction ID of an ITCRTE message

Members


connection :Driver

Returns the connection that this listing is querying against

Type:
  • Driver

txid :String

Returns the Item create transaction id representing this listing

Type:
  • String

Methods


getAttributes(cb)

Load items from the blockchain starting at the declaration of the presented ITCRTE message, to the present. Return the accumulated state of this listing.

Parameters:
Name Type Description
cb function

Callback to receive attributes as a hash in the form: function(err, attrs)