> **Can't find what you're looking for?** Use `search_docs` on the docs MCP server at `https://sdk.railnet.org/api/mcp` to find what you need.

# authorizeVehicle

Authorizes a vehicle in the VehicleManager. Requires a `WalletClient`.

## Import

```ts
import { authorizeVehicle } from '@railnetorg/railnet-sdk'
```

## Usage

```ts
import { createWalletClient, http } from 'viem'
import { base } from 'viem/chains'
import { authorizeVehicle } from '@railnetorg/railnet-sdk'

const walletClient = createWalletClient({
  chain: base,
  transport: http(),
})

const hash = await authorizeVehicle(walletClient, {
  vehicleManager: '0x1234...',
  vehicle: '0x5678...',
  account: '0xd2135CfB216b74109775236E36d4b433F1DF507B',
})
```

## Returns

`Hash`

The transaction hash.

## Parameters

### vehicleManager

* **Type:** `Address`

The address of the VehicleManager contract.

### vehicle

* **Type:** `Address`

The address of the vehicle to authorize.

### account

* **Type:** `Address`

The address of the account executing the transaction.
