0.1.1 • Published 4 years ago

@tomfrench/eth-hooks v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

🖇 eth-hooks

usePoller(fn, delay): runs a function on app load and then on a custom interval

useBalance(address,provider,pollTime): poll for the balance of an address from a provider

useBlockNumber(provider,pollTime): get current block number from a provider

useGasPrice(): gets current "fast" price from ethgasstation