Tutorials

Classes

Audit
Contract
Node
Offers
Proof
Rules
Server
Transport

Events


data

Triggered when an offer is received
Parameters:
Name Type Description
data Object
Properties
Name Type Description
contact Contact The sending farmer for the offer
contract Contract The received offer contract
Source:

end

Triggered when the maximum number of offers are received and processed
Source:

error

Triggered if an error occurs
Parameters:
Name Type Description
error Error The error object with message
Source:

error

Triggered when a error occurs
Parameters:
Name Type Description
error error
Source:

shardDownloaded

Triggered when a shard has finished downloading from this instance
Parameters:
Name Type Description
hash string The hash associated with the download
Source:

shardUploaded

Triggered when a shard has finished uploading to this instance
Parameters:
Name Type Description
hash string The hash associated with the upload
Source:

download

Emitted when a download request is received
Parameters:
Name Type Description
request object
response object
Source:

upload

Emitted when a upload request is received
Parameters:
Name Type Description
request object
response object
Source: