# getBankFromIBAN

Source: https://pakdatakit.dev/api/typescript/iban/functions/getbankfromiban/

```ts
function getBankFromIBAN(iban): string | null;
```

Defined in: [iban.ts:119](https://github.com/chmuzamil/pakdatakit/blob/a6eeaa47381308c4e4fcda45b29642fe4fbfb1fc/src/iban.ts#L119)

Returns the bank name for a valid Pakistani IBAN based on its 4-letter bank code.

Returns `null` when the IBAN is invalid or the bank code is not in the dataset.

## Parameters

| Parameter | Type | Description |
| :------ | :------ | :------ |
| `iban` | `string` | IBAN string to look up |

## Returns

`string` \| `null`

Bank name or `null` if not found
