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

# revokeScopedRole

Revokes a scoped role on the ExternalAccessControl contract. Requires a `WalletClient`.

## Import

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

## Usage

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

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

const hash = await revokeScopedRole(walletClient, {
  accessControl: '0x1234...',
  role: VEHICLE_STEAM_DEPOSIT,
  scope: '0x5678...',
  grantee: '0x9012...',
  account: '0xd2135CfB216b74109775236E36d4b433F1DF507B',
})
```

## Returns

`Hash`

The transaction hash.

## Parameters

### accessControl

* **Type:** `Address`

The address of the ExternalAccessControl contract.

### role

* **Type:** `Hex`

The role to revoke.

### scope

* **Type:** `Address`

The scope (contract address) for the role.

### grantee

* **Type:** `Address`

The address whose role is being revoked.

### account

* **Type:** `Address`

The address of the account executing the transaction.
