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

# useEnableConduit

React mutation hook for enabling public access to a conduit.

## Import

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

## Usage

```tsx
import { useEnableConduit } from '@railnetorg/railnet-sdk/react'

function Enable() {
  const { mutate, isPending } = useEnableConduit()

  return (
    <button
      disabled={isPending}
      onClick={() =>
        mutate({
          conduit: '0x...',
          account: '0x...',
        })
      }
    >
      Enable Conduit
    </button>
  )
}
```

## Returns

```ts
UseMutationResult<Hash, Error, EnableConduitParameters & { account: Address }>
```

Mutation result. Call `mutate` or `mutateAsync` with [`enableConduit`](/actions/enableConduit) parameters.
