Utils
Utility Hooks
The hooks provide utility functions for interacting with the VeChain network and tokens:
Network Utility Hooks
useGetChainId
: Retrieves the chain ID from the genesis block of the connected networkuseGetNodeUrl
: Returns the node URL being used, either custom or default for the network
Token Utility Hooks
useGetCustomTokenBalances
: Fetches balances for multiple custom tokens for a given address, returning original, scaled, and formatted valuesuseGetCustomTokenInfo
: Retrieves token information (name, symbol, decimals) for a custom token address
Usage Example
Last updated
Was this helpful?