Inject a block in the node and broadcast it. The operations
embedded in blockHeader
might be pre-validated using a contextual RPCs from the latest block (e.g. '/blocks/head/context/preapply'). Returns the ID of the block. By default, the RPC will wait for the block to be validated before answering. If ?async is true, the function returns immediately. Otherwise, the block will be validated before the result is returned. If ?force is true, it will be injected even on non strictly increasing fitness. An optional ?chain parameter can be used to specify whether to inject on the test chain or the main chain.
A chain identifier. This is either a chain hash in Base58Check notation or a one the predefined aliases: 'main', 'test'.
^([a-zA-Z0-9][a-zA-Z0-9])*$