Skip to main content

Function: writeToResultFile()

function writeToResultFile(content): void;

Function to write the result of the smart contract to a file located at the well known location output/out.json.

Writing to this file is the only way a smart contract can have external effects, i.e. writing claims, invoking new smart contracts etc. See NewTx for the layout of this file.

Parameters

content: NewTx[]

The content to write to the file in JSON format.

Returns

void


Coinweb © 2024