Skip to Content

🚧 These packages are still in development and may change rapidly as they are developed.

ReactuseNetwork

useNetwork

Hook for getting the current network from the AptosJSProClient.

Usage

import { useNetwork } from "@aptos-labs/react"; export default function App() { const network = useNetwork(); return <div>{network.network}</div>; }

Return Type

NameTypeDefault
networkNetwork
Last updated on