> ## Documentation Index
> Fetch the complete documentation index at: https://base-a060aa97-docs-sync-code-change-91427ab.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# IPolicyRegistry.pendingPolicyAdmin

> Returns the staged pending admin for a policy, or address(0) if no transfer is in flight.

## Signature

```solidity IPolicyRegistry.sol theme={null}
function pendingPolicyAdmin(uint64 policyId) external view returns (address);
```

| Field               | Value                        |
| ------------------- | ---------------------------- |
| Selector            | `0x017548b7`                 |
| Canonical signature | `pendingPolicyAdmin(uint64)` |

## Description

Returns the currently-staged pending admin for `policyId`, or `address(0)` when no transfer is in flight or for built-in sentinels, unknown IDs, and malformed IDs. Never reverts.

If `policyId` has the invert flag set (bit 63), the function strips that bit and returns the base policy's pending admin. An inverted ID has no record of its own.

The pending admin is set by `stageUpdateAdmin(policyId, newAdmin)` and cleared when `finalizeUpdateAdmin(policyId)` succeeds or when the current admin calls `stageUpdateAdmin` with `address(0)`. Until `finalizeUpdateAdmin` is called, `policyAdmin` still returns the current admin; the pending admin has no privileges yet.

## Parameters

| Name       | Type     | Description                                                                           |
| ---------- | -------- | ------------------------------------------------------------------------------------- |
| `policyId` | `uint64` | Policy to query. Pass the plain or inverted ID; bit 63 is stripped before the lookup. |

## Returns

| Type      | Description                                           |
| --------- | ----------------------------------------------------- |
| `address` | Staged pending admin, or `address(0)` if none is set. |

## Reverts

Never reverts.

## Access Control

Read-only. No role required.
