Class HelloWorldForwarder

java.lang.Object
nxt.addons.AbstractContract
com.jelurida.ardor.contracts.HelloWorldForwarder
All Implemented Interfaces:
Contract

public class HelloWorldForwarder extends AbstractContract
Sample contract to demonstrate basic operations. To trigger the contract, send a message transaction or transaction with attached message, set the recipient to the contract runner account, set the message text to the following json: {"contract":"HelloWorld", "params": { "recipientAccount": "[RS account address]", "greeting": { "message": "Hi"}}} In response the contract will send a message transaction to the "recipientAccount" specified by the sender in the attached message with text specified by the greeting. Note the recipientAccount and greeting variables, the value of these variables is automatically assigned in runtime based on the parameters specified in the attached message of the trigger transaction. Note the validation annotations which validate the recipient, chain and transaction type