new Engine()
- To Do:
-
- Abstract out so other engines can be plugged in
Methods
-
async broadcastTx(txs)
-
Broadcast transaction(s) to the network.
Parameters:
Name Type Description txs
Single string or array Returns:
- Array of txids -
async onEvent()
-
-
async start()
-
If this is a daemon-like process, you should instantiate it here.