> **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.

# enableConduit

Enables public access to a conduit after deployment setup is complete. Requires a `WalletClient` to sign and send the transaction.

## Import

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

## Usage

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

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

const hash = await enableConduit(walletClient, {
  conduit: '0xA0Cf798816D4b9b9866b5330EEa46a18382f251e',
  account: '0xd2135CfB216b74109775236E36d4b433F1DF507B',
})
```

## Returns

`Hash`

The transaction hash of the enable transaction.

## Parameters

### conduit

* **Type:** `Address`

The address of the conduit contract.

```ts
const hash = await enableConduit(walletClient, {
  conduit: '0xA0Cf798816D4b9b9866b5330EEa46a18382f251e', // [!code focus]
  account: '0x...',
})
```

### account

* **Type:** `Address`

The address of the account executing the transaction.

```ts
const hash = await enableConduit(walletClient, {
  conduit: '0x...',
  account: '0xd2135CfB216b74109775236E36d4b433F1DF507B', // [!code focus]
})
```
