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

# Create an Account

> User account creation

## Quick Start

To get started with Brewit Account all we need it [`brewit.js`](https://github.com/brewitmoney/brewit.js) package.

<CodeGroup>
  ```bash npm theme={null}
  npm install brewit
  ```

  ```bash pnpm theme={null}
  pnpm install brewit
  ```

  ```bash yarn theme={null}
  yarn add brewit

  ```

  ```bash bun theme={null}
  bun install brewit
  ```
</CodeGroup>

## Create an Account

```ts theme={null}
import { toAccount } from 'brewit';

const account = await toAccount({
  chainId: 8453,
  rpcEndpoint: 'https://mainnet.base.org',
  signer: privateKeyToAccount('0x...'),
  type: 'main',
  config: { validator: 'ownable' },
});
```

### Send a transaction

```ts theme={null}
import { createAccountClient } from 'brewit';

// You can replace with any bundler URL
const pimlicoAPIKey = "<YOUR_PIMLICO_API_KEY>";
const bundlerUrl = `https://api.pimlico.io/v2/11155111/rpc?apikey=${pimlicoAPIKey}`

const client = createAccountClient(account, bundlerUrl);

const tx = await client.sendTransaction({
  account: account,
  to: '0x...',
  value: '0x...',   
});
```
