> ## Documentation Index
> Fetch the complete documentation index at: https://orderly.network/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# useAccountInstance

> Hook to access the Account singleton for registration, Orderly Key creation, and wallet details.

Get [`Account`](/sdks/tech-doc/classes/orderly_network_core.Account) singleton, that can be used to e.g. register an account or create a new Orderly Key.

* [Tech docs](/sdks/tech-doc/modules/orderly_network_hooks#useaccountinstance)

### Example

```ts theme={null}
const account = useAccountInstance();

return (
  <>
    <div>Connected address: {account.address}</div>
    <div>Connected chain: {account.chainId}</div>
    <button onClick={account.createAccount}>Register</button>
    <button
      onClick={() => {
        account.createOrderlyKey(365);
      }}
    >
      Create Orderly Key
    </button>
    <button onClick={account.settle}>Settle PnL</button>
  </>
);
```
