# MoCWhitelist

View Source: [contracts/base/MoCWhitelist.sol](https://github.com/money-on-chain/main-RBTC-contract/blob/master-gitbook/contracts/base/MoCWhitelist.sol)

**↘ Derived Contracts:** [**MoCConnector**](/main-rbtc-contract/smart-contracts/abis-documentation/mocconnector.md)

**MoCWhitelist** - version: 0.1.12

Provides access control between all MoC Contracts

## Contract Members

**Constants & Variables**

```js
mapping(address => bool) internal whitelist;
```

***

```js
uint256[50] private upgradeGap;
```

***

## Functions

* [isWhitelisted(address account)](#iswhitelisted)
* [add(address account)](#add)
* [remove(address account)](#remove)

### isWhitelisted

Check if an account is whitelisted

```js
function isWhitelisted(address account) public view
returns(bool)
```

**Returns**

Bool

**Arguments**

| Name    | Type    | Description |
| ------- | ------- | ----------- |
| account | address |             |

### add

Add account to whitelist

```js
function add(address account) internal nonpayable
```

**Arguments**

| Name    | Type    | Description |
| ------- | ------- | ----------- |
| account | address |             |

### remove

Remove account from whitelist

```js
function remove(address account) internal nonpayable
```

**Arguments**

| Name    | Type    | Description |
| ------- | ------- | ----------- |
| account | address |             |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.moneyonchain.com/main-rbtc-contract/smart-contracts/abis-documentation/mocwhitelist.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
