# HyperGate ## Docs - [Demo](/docs/demo) - [Getting Started](/docs/getting-started): HyperGate is a [wagmi](https://wagmi.sh)-like library to interact with [XRP Ledger](https://xrpl.org). It's mainly aimed to be used within React applications, but it can be used in any JavaScript environment. - [formatUnits](/docs/utils/formatUnits): Divides a number by a given exponent of base 10 (10exponent), and formats it into a string representation of the number. - [formatHumanUnits](/docs/utils/formatUnits): **Type:** `bigint` - [useAccount](/docs/react/useAccount): Hook to get the current account / address. - [useAccountEffect](/docs/react/useAccountEffect): Hook to perform side effects when the account changes. - [useAccount](/docs/react/useBalance): Hook to get the current balance of the account. It supports XRP balance and token balances. - [useBlock](/docs/react/useBlock): const packageName = '@hyper-gate/core'; const actionName = 'getBlock'; const typeName = 'GetBlock'; const TData = 'GetBlockData'; const TError = 'GetBlockErrorType'; - [useBlockNumber](/docs/react/useBlockNumber): Hook to get the current block number. - [useChainId](/docs/react/useChainId): Hook to get the current chain ID. - [useChains](/docs/react/useChains): Hook to get the list of available chains. - [useConfig](/docs/react/useConfig): Hook to get the current configuration, as defined in your provider. - [useConnect](/docs/react/useConnect): Hook to connect HyperGate to a connector (wallet). - [useConnections](/docs/react/useConnections): Hook to get the list of active connections. - [useConnectorClient](/docs/react/useConnectorClient): Hook to get the current connector client. - [useConnectors](/docs/react/useConnectors): Hook to get the available connectors. - [useDisconnect](/docs/react/useDisconnect): Hook to disconnect the current user. - [useEstimateGas](/docs/react/useEstimateGas): Hook to estimate gas for a transaction. - [useSendTransaction](/docs/react/useSendTransaction): Hook to sign transaction messages. This hook provides a way to sign XRP Ledger transactions using connected wallets. - [useSwitchChain](/docs/react/useSwitchChain): Hook to switch the current blockchain network. - [useTransaction](/docs/react/useTransaction): Hook to send a transaction. - [useWatchBlockNumber](/docs/react/useWatchBlockNumber): Hook to watch for changes in the block number. - [useWatchBlocks](/docs/react/useWatchBlocks): Hook to watch for new blocks. - [Blog](/blog)