Skip to main content

Signing and broadcasting

To convert a Demoswork object to a transaction, use the prepareDemosWorkPayload function.

Broadcasting the transaction

You can broadcast the transaction using the confirm and broadcast methods of the demos object.
If you need a deterministic confirmation that the work transaction landed on chain, use broadcastAndWait instead — it broadcasts and then polls until the transaction reaches a terminal included or failed state.