Skip to content

Commit

Permalink
New translations datalayer.md (Chinese Simplified)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChiaAutomation committed Oct 4, 2023
1 parent f642ee3 commit e422ada
Showing 1 changed file with 80 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,50 @@ Response:

---

### `clear_pending_roots`

Functionality: Clear pending roots that will not be published, associated data may not be recoverable

Usage: chia rpc data_layer [OPTIONS] clear_pending_roots [REQUEST]

Options:

| Short Command | Long Command | Type | Required | Description |
|:------------- |:------------ |:-------- |:-------- |:------------------------------------------------------------------------------------- |
| -j | --json-file | FILENAME | False | Optionally instead of REQUEST you can provide a json file containing the request data |
| -h | --help | None | False | Show a help message and exit |

Request Parameters:

| Flag | Type | Required | Description |
|:-------- |:---- |:-------- |:------------------------ |
| store_id | TEXT | True | The hexadecimal store ID |

<details>
<summary>Example</summary>

```json
chia rpc data_layer clear_pending_roots '{"store_id":"2772c8108e19f9fa98ff7bc7d4bafd821319bc90af6b610d086b85f4c21fa816"}'
```

Response:

```json
{
"root": {
"generation": 2,
"node_hash": "ab8da7d5adec29fe1d12888fec462d0b18d72cec975599e178f98037cf3b8d13",
"status": 1,
"tree_id": "2772c8108e19f9fa98ff7bc7d4bafd821319bc90af6b610d086b85f4c21fa816"
},
"success": true
}
```

</details>

---

### `create_data_store`

Functionality: Create a data store. Triggers a Chia transaction
Expand Down Expand Up @@ -2118,6 +2162,42 @@ Request failed: {'error': 'non-hexadecimal number found in fromhex() arg at posi

---

### `wallet_log_in`

Functionality: Request that the wallet service be logged in to the specified fingerprint

Options:

| Short Command | Long Command | Type | Required | Description |
|:------------- |:------------ |:-------- |:-------- |:------------------------------------------------------------------------------------- |
| -j | --json-file | FILENAME | False | Optionally instead of REQUEST you can provide a json file containing the request data |
| -h | --help | None | False | Show a help message and exit |

Request Parameters:

| Flag | Type | Required | Description |
|:----------- |:------ |:-------- |:------------------------------------ |
| fingerprint | STRING | True | The fingerprint of the wallet to use |

<details>
<summary>Example</summary>

```json
chia rpc data_layer wallet_log_in '{"fingerprint":"3404181419"}'
```

Response:

```json
{
"success": true
}
```

</details>

---

## Inherited commands

### `close_connection`
Expand Down

0 comments on commit e422ada

Please sign in to comment.