> ## Documentation Index
> Fetch the complete documentation index at: https://dev.mc2.fi/llms.txt
> Use this file to discover all available pages before exploring further.

# Admin

## admin

### AdminListUsers

Code: 30010

**Parameters:**

| Name     | Type              |
| -------- | ----------------- |
| limit    | BigInt            |
| offset   | BigInt            |
| user\_id | Optional\[BigInt] |
| address  | Optional\[String] |
| username | Optional\[String] |
| email    | Optional\[String] |
| role     | Optional\[role]   |

**Returns:**

| Name         | Type                    |
| ------------ | ----------------------- |
| users\_total | BigInt                  |
| users        | DataTable\[ListUserRow] |

### AdminSetUserRole

Code: 30020

**Parameters:**

| Name     | Type   |
| -------- | ------ |
| user\_id | BigInt |
| role     | role   |

**Returns:**

| Name | Type |
| ---- | ---- |

### AdminSetBlockUser

Code: 30030

**Parameters:**

| Name     | Type    |
| -------- | ------- |
| user\_id | BigInt  |
| blocked  | Boolean |

**Returns:**

| Name | Type |
| ---- | ---- |

### AdminListPendingExpertApplications

Code: 30060

**Parameters:**

| Name   | Type              |
| ------ | ----------------- |
| offset | Optional\[BigInt] |
| limit  | Optional\[BigInt] |

**Returns:**

| Name         | Type                                         |
| ------------ | -------------------------------------------- |
| users\_total | BigInt                                       |
| users        | DataTable\[ListPendingExpertApplicationsRow] |

### AdminApproveUserBecomeExpert

Code: 30040

**Parameters:**

| Name     | Type   |
| -------- | ------ |
| user\_id | BigInt |

**Returns:**

| Name    | Type    |
| ------- | ------- |
| success | Boolean |

### AdminRejectUserBecomeExpert

Code: 30050

**Parameters:**

| Name     | Type   |
| -------- | ------ |
| user\_id | BigInt |

**Returns:**

| Name    | Type    |
| ------- | ------- |
| success | Boolean |

### AdminGetSystemConfig

Code: 30070

**Parameters:**

| Name | Type |
| ---- | ---- |

**Returns:**

| Name                                    | Type              |
| --------------------------------------- | ----------------- |
| platform\_fee                           | Numeric           |
| allow\_domain\_urls                     | String            |
| escrow\_contract\_address\_ethereum     | BlockchainAddress |
| escrow\_contract\_address\_goerli       | BlockchainAddress |
| escrow\_contract\_address\_bsc          | BlockchainAddress |
| escrow\_contract\_address\_bsc\_testnet | BlockchainAddress |

### AdminUpdateSystemConfig

Code: 30080

**Parameters:**

| Name                                    | Type                         |
| --------------------------------------- | ---------------------------- |
| platform\_fee                           | Optional\[Numeric]           |
| allow\_domain\_urls                     | Optional\[String]            |
| escrow\_contract\_address\_ethereum     | Optional\[BlockchainAddress] |
| escrow\_contract\_address\_goerli       | Optional\[BlockchainAddress] |
| escrow\_contract\_address\_bsc          | Optional\[BlockchainAddress] |
| escrow\_contract\_address\_bsc\_testnet | Optional\[BlockchainAddress] |

**Returns:**

| Name    | Type    |
| ------- | ------- |
| success | Boolean |

### AdminListExperts

Code: 30090

**Parameters:**

| Name             | Type              |
| ---------------- | ----------------- |
| limit            | Optional\[BigInt] |
| offset           | Optional\[BigInt] |
| expert\_id       | Optional\[BigInt] |
| user\_id         | Optional\[BigInt] |
| user\_public\_id | Optional\[BigInt] |
| username         | Optional\[String] |
| family\_name     | Optional\[String] |
| given\_name      | Optional\[String] |
| description      | Optional\[String] |
| social\_media    | Optional\[String] |

**Returns:**

| Name           | Type   |
| -------------- | ------ |
| experts\_total | BigInt |
| experts        |        |

### AdminListBackers

Code: 30100

**Parameters:**

| Name             | Type              |
| ---------------- | ----------------- |
| offset           | Optional\[BigInt] |
| limit            | Optional\[BigInt] |
| user\_id         | Optional\[BigInt] |
| user\_public\_id | Optional\[BigInt] |
| username         | Optional\[String] |
| family\_name     | Optional\[String] |
| given\_name      | Optional\[String] |

**Returns:**

| Name           | Type                            |
| -------------- | ------------------------------- |
| backers\_total | BigInt                          |
| backers        | DataTable\[AdminListBackersRow] |

### AdminListStrategies

Code: 30110

**Parameters:**

| Name              | Type               |
| ----------------- | ------------------ |
| offset            | Optional\[BigInt]  |
| limit             | Optional\[BigInt]  |
| strategy\_id      | Optional\[BigInt]  |
| strategy\_name    | Optional\[String]  |
| expert\_id        | Optional\[BigInt]  |
| expert\_name      | Optional\[String]  |
| description       | Optional\[String]  |
| pending\_approval | Optional\[Boolean] |
| approved          | Optional\[Boolean] |

**Returns:**

| Name              | Type   |
| ----------------- | ------ |
| strategies\_total | BigInt |
| strategies        |        |

### AdminApproveStrategy

Code: 30120

**Parameters:**

| Name         | Type   |
| ------------ | ------ |
| strategy\_id | BigInt |

**Returns:**

| Name    | Type    |
| ------- | ------- |
| success | Boolean |

### AdminRefreshExpertWalletBalance

Code: 30121

**Parameters:**

| Name         | Type   |
| ------------ | ------ |
| strategy\_id | BigInt |

**Returns:**

| Name    | Type    |
| ------- | ------- |
| success | Boolean |

### AdminRejectStrategy

Code: 30130

**Parameters:**

| Name         | Type   |
| ------------ | ------ |
| strategy\_id | BigInt |

**Returns:**

| Name    | Type    |
| ------- | ------- |
| success | Boolean |

### AdminAddAuditRule

Code: 31002

**Parameters:**

| Name        | Type   |
| ----------- | ------ |
| rule\_id    | BigInt |
| name        | String |
| description | String |

**Returns:**

| Name | Type |
| ---- | ---- |

### AdminNotifyEscrowLedgerChange

Code: 32010

**Parameters:**

| Name     | Type   |
| -------- | ------ |
| pkey\_id | BigInt |
| user\_id | BigInt |
| balance  |        |

**Returns:**

| Name | Type |
| ---- | ---- |

### AdminSubscribeDepositLedger

Code: 32011

**Parameters:**

| Name          | Type                    |
| ------------- | ----------------------- |
| initial\_data | Optional\[BigInt]       |
| blockchain    | Optional\[block\_chain] |
| mock\_data    | Optional\[Boolean]      |

**Returns:**

| Name | Type |
| ---- | ---- |

### AdminUnsubscribeDepositLedger

Code: 32012

**Parameters:**

| Name | Type |
| ---- | ---- |

**Returns:**

| Name | Type |
| ---- | ---- |

### AdminAddEscrowTokenContractAddress

Code: 32020

**Parameters:**

| Name           | Type              |
| -------------- | ----------------- |
| pkey\_id       | Optional\[BigInt] |
| symbol         | String            |
| short\_name    | String            |
| description    | String            |
| address        | BlockchainAddress |
| blockchain     | block\_chain      |
| is\_stablecoin | Boolean           |
| is\_wrapped    | Boolean           |

**Returns:**

| Name | Type |
| ---- | ---- |

### AdminAddEscrowContractAddress

Code: 32030

**Parameters:**

| Name       | Type              |
| ---------- | ----------------- |
| pkey\_id   | BigInt            |
| address    | BlockchainAddress |
| blockchain | block\_chain      |

**Returns:**

| Name | Type |
| ---- | ---- |

### AdminListBackStrategyLedger

Code: 32040

**Parameters:**

| Name         | Type              |
| ------------ | ----------------- |
| limit        | Optional\[BigInt] |
| offset       | Optional\[BigInt] |
| strategy\_id | Optional\[BigInt] |

**Returns:**

| Name                | Type                                   |
| ------------------- | -------------------------------------- |
| back\_ledger\_total | BigInt                                 |
| back\_ledger        | DataTable\[AdminBackStrategyLedgerRow] |

### AdminListExitStrategyLedger

Code: 32041

**Parameters:**

| Name         | Type              |
| ------------ | ----------------- |
| limit        | Optional\[BigInt] |
| offset       | Optional\[BigInt] |
| strategy\_id | Optional\[BigInt] |

**Returns:**

| Name                | Type                                   |
| ------------------- | -------------------------------------- |
| exit\_ledger\_total | BigInt                                 |
| exit\_ledger        | DataTable\[AdminExitStrategyLedgerRow] |

### AdminSetBlockchainLogger

Code: 32050

**Parameters:**

| Name    | Type    |
| ------- | ------- |
| enabled | Boolean |

**Returns:**

| Name | Type |
| ---- | ---- |

### AdminListEscrowTokenContractAddresses

Code: 32060

**Parameters:**

| Name       | Type                         |
| ---------- | ---------------------------- |
| limit      | Optional\[BigInt]            |
| offset     | Optional\[BigInt]            |
| symbol     | Optional\[String]            |
| address    | Optional\[BlockchainAddress] |
| blockchain | Optional\[block\_chain]      |

**Returns:**

| Name             | Type                                           |
| ---------------- | ---------------------------------------------- |
| addresses\_total | BigInt                                         |
| addresses        | DataTable\[AdminEscrowTokenContractAddressRow] |

### AdminUpdateEscrowTokenContractAddress

Code: 32080

**Parameters:**

| Name           | Type               |
| -------------- | ------------------ |
| pkey\_id       | BigInt             |
| symbol         | Optional\[String]  |
| short\_name    | Optional\[String]  |
| description    | Optional\[String]  |
| is\_stablecoin | Optional\[Boolean] |
| is\_wrapped    | Optional\[Boolean] |

**Returns:**

| Name | Type |
| ---- | ---- |
