While computeTransaction can move a contract forward with a single transaction
from a previous state, playTrace is used to simulate the execution of a contract from the
start, using a list of transactions.
playtrace calls computeTransaction for each transaction in the list, accumulating
the warnings and payments generated by each transaction. If a transaction fails, the error
is returned. If all the transaction succeed, the resulting state and contract are returned
along with the accumulated warnings and payments.
While computeTransaction can move a contract forward with a single transaction from a previous state,
playTrace
is used to simulate the execution of a contract from the start, using a list of transactions.playtrace
calls computeTransaction for each transaction in the list, accumulating the warnings and payments generated by each transaction. If a transaction fails, the error is returned. If all the transaction succeed, the resulting state and contract are returned along with the accumulated warnings and payments.