Utils
There are 5 utility functions in total that each perform essential tasks.
getRpcUrls - returns a KV object with
chainIds' keyed to HTTP transport URLs.checkBlock3d - a util function that wraps the rest of them so that the
useBlock3rhook only needs to make a single function call. Output is identical touseBlock3r.checkIsRoutePublic - returns
trueif the current page is marked public in theblock3d.config.checkSimpleRules - returns two
Rulearrays,simplePassingfor the rules the user meets the criteria for, andsimpleFailingfor the rules the user doesn't meet the criteria for.checkTokenRules - returns two
Rulearrays,tokenPassingfor rules the user meets the criteria for, andtokenFailingfor rules the user doesn't meet the criteria for.checkNftRules - returns two
Rulearrays,nftPassingfor rules the user meets the criteria for, andnftFailingfor rules the user doesn't meet the criteria for.
Last updated