public class RandomPayment extends AbstractContract
Constructor and Description |
---|
RandomPayment() |
Modifier and Type | Method and Description |
---|---|
void |
processTransaction(TransactionContext context)
Sample contract which receives amount from the trigger transaction and returns a random amount between 0 and twice the received amount
|
getContractParams, processBlock, processInvocation, processRequest, processVoucher, setContractParams
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
minProductVersion
public void processTransaction(TransactionContext context)
processTransaction
in interface Contract
processTransaction
in class AbstractContract
context
- contract context