Skip to main content

Hooks

To easily read/sync data, we recommend using the built-in hooks when possible to automatically combine selectors & action dispatchers.

Contract

These hooks are for both Smart Contracts and Externally Owned Accounts.

General Info

Smart Contract Data

Pre-configured Interfaces

  • useERC20: Popular token standard.
  • useERC721: Popular NFT standard.
  • useERC1155: Popular Multi-Token standard.
  • useERC165: Introspection standard to check if a contract supports an interface.

Etherscan API

Block

Transaction

Contract Event

  • useGetPastLogs: Fetch past logs using raw subscribe filter. Enables syncing event across multiple smart contracts efficiently.
  • useGetAssets: Fetch all tokenized assets for address.

IPFS

  • useIpfs: Fetch IPFS resource using content hash.