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

# Create Token Accounts

> Create sponsored associated token accounts with a local signer.

`createAccount()` creates associated token accounts (ATAs), sets the Altude fee payer as their close authority, partially signs the transaction locally, and sends it to the relay.

## Create the default token account

```typescript theme={null}
const result = await gasStation.createAccount({
  account: signer.address,
  signer,
})

console.log(result.Signature)
```

The default mint is USDC for the configured environment.

## Create accounts for specific mints

```typescript theme={null}
const result = await gasStation.createAccount({
  account: signer.address,
  tokens: [
    '4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU',
  ],
  commitment: 'finalized',
  signer,
})
```

You can also pass the signer as the second argument:

```typescript theme={null}
await gasStation.createAccount(
  {
    account: signer.address,
    tokens: ['MINT_ADDRESS'],
  },
  signer,
)
```

<Warning>
  When `account` is provided, it must match `signer.address`. The user signs locally; never send a private key or mnemonic to the Altude API.
</Warning>

## Compute budget options

```typescript theme={null}
await gasStation.createAccount({
  account: signer.address,
  tokens: ['MINT_ADDRESS'],
  signer,
  computeOptions: {
    computeUnitLimit: 400_000,
    computeUnitPriceMicroLamports: 1_000,
  },
})
```

The response contains the relay transaction `Signature` and may include `Status` and `Message`.
