useBlockSync
Subscribe to new blocks and return all current blocks for network in store.
const blocks = Block.hooks.useBlockSync(networkId);
Reference: Block.useBlockSync
caution
While some features of Web3-Redux might work with an HTTP (http://
) connection, subscriptions REQUIRE a network configured with a websocket (ws://
) connection.