Nyzo techMicropayAutomatic tx example

Automatic tx example

Please install and activate the Nyzo extension to use this page.

The content of this page was written originally as the beginning of the Micropay game example. It was moved to this location to retain a simple demonstration of automatic transactions without complications of managing game state.

This page generates five transactions at 5-second intervals. The extension sends them to the client for processing. Then, this page periodically polls the client to follow the cycle's processing of the transactions into the blockchain.

There are five states for transactions.

waiting
generated
accepted
processed
failed

In version 7 of the Chrome extension, authorization is required for automatic transactions. This page will now wait for authorization to be available before attempting to send a transaction. Attempting to send with insufficient authorization will result in a failed transaction.

authorized amount

The following table shows the states of the transactions as they are generated and processed.

transaction
state
1
waiting
2
waiting
3
waiting
4
waiting
5
waiting