# Control

### getnotarysendmany

**getnotarysendmany**

The `getnotarysendmany` method returns a sendmany JSON array with Raddresses of the current notaries.

Examples:

> komodo-cli getnotarysendmany 10 curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getnotarysendmany", "params": \[10] }' -H 'content-type: text/plain;' <http://127.0.0.1:7771/>

### getiguanajson

\-->

### getinfo

**getinfo**

The `getinfo` method returns an object containing various state info.

#### Arguments

| Name   | Type | Description |
| ------ | ---- | ----------- |
| (none) |      |             |

#### Response

| Name              | Type               | Description                                                                                                                            |
| ----------------- | ------------------ | -------------------------------------------------------------------------------------------------------------------------------------- |
| "version"         | (numeric)          | the server version                                                                                                                     |
| "protocolversion" | (numeric)          | the protocol version                                                                                                                   |
| "walletversion"   | (numeric)          | the wallet version                                                                                                                     |
| "balance"         | (numeric)          | the total balance of the wallet                                                                                                        |
| "blocks"          | (numeric)          | the current number of blocks processed in the server                                                                                   |
| "timeoffset"      | (numeric)          | the time offset                                                                                                                        |
| "connections"     | (numeric)          | the number of connections                                                                                                              |
| "proxy"           | (string, optional) | the proxy used by the server                                                                                                           |
| "difficulty"      | (numeric)          | the current difficulty                                                                                                                 |
| "testnet"         | (boolean)          | if the server is using testnet or not                                                                                                  |
| "keypoololdest"   | (numeric)          | the timestamp (seconds since GMT epoch) of the oldest pre-generated key in the key pool                                                |
| "keypoolsize"     | (numeric)          | how many new keys are pre-generated                                                                                                    |
| "unlocked\_until" | (numeric)          | the timestamp in seconds since epoch (midnight Jan 1 1970 GMT) that the wallet is unlocked for transfers, or 0 if the wallet is locked |
| "paytxfee"        | (numeric)          | the transaction fee set in COIN/kB                                                                                                     |
| "relayfee"        | (numeric)          | minimum relay fee for non-free transactions in COIN/kB                                                                                 |
| "errors"          | (string)           | any error messages                                                                                                                     |

**📌 Examples**

Command:

```
./komodo-cli getinfo
```

\<collapse-text hidden title="Response">

```
{
  "version": 1001550,
  "protocolversion": 170003,
  "DICversion": "0.2.0",
  "notarized": 0,
  "prevMoMheight": 0,
  "notarizedhash": "0000000000000000000000000000000000000000000000000000000000000000",
  "notarizedtxid": "0000000000000000000000000000000000000000000000000000000000000000",
  "notarizedtxid_height": "mempool",
  "DICnotarized_height": 0,
  "notarized_confirms": 0,
  "walletversion": 60000,
  "balance": 10.16429765,
  "blocks": 459,
  "longestchain": 0,
  "timeoffset": 0,
  "tiptime": 1536624090,
  "connections": 0,
  "proxy": "",
  "difficulty": 1.000026345948652,
  "testnet": false,
  "keypoololdest": 1536262464,
  "keypoolsize": 101,
  "paytxfee": 0.0,
  "relayfee": 0.000001,
  "errors": "",
  "name": "SIDD",
  "p2pport": 9800,
  "rpcport": 9801,
  "magic": -759875707,
  "premine": 10
}
```

\</collapse-text>

You can find your `rpcuser`, `rpcpassword`, and `rpcport` in the coin's `.conf` file.

Command:

```
curl --user $rpcuser:$rpcpassword --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:$rpcport/
```

\<collapse-text hidden title="Response">

```
{
  "result": {
    "version": 1001550,
    "protocolversion": 170003,
    "DICversion": "0.2.0",
    "notarized": 0,
    "prevMoMheight": 0,
    "notarizedhash": "0000000000000000000000000000000000000000000000000000000000000000",
    "notarizedtxid": "0000000000000000000000000000000000000000000000000000000000000000",
    "notarizedtxid_height": "mempool",
    "DICnotarized_height": 0,
    "notarized_confirms": 0,
    "walletversion": 60000,
    "balance": 10.16429765,
    "blocks": 459,
    "longestchain": 0,
    "timeoffset": 0,
    "tiptime": 1536624090,
    "connections": 0,
    "proxy": "",
    "difficulty": 1.000026345948652,
    "testnet": false,
    "keypoololdest": 1536262464,
    "keypoolsize": 101,
    "relayfee": 1e-6,
    "paytxfee": 0,
    "errors": "",
    "name": "SIDD",
    "p2pport": 9800,
    "rpcport": 9801,
    "magic": -759875707,
    "premine": 10
  },
  "error": null,
  "id": "curltest"
}
```

\</collapse-text>

### help

**help ( "command" )**

The `help` method lists all commands, or all information for a specified command.

#### Arguments

| Name      | Type               | Description                      |
| --------- | ------------------ | -------------------------------- |
| "command" | (string, optional) | the command requiring assistance |

#### Response

| Name      | Type               | Description                      |
| --------- | ------------------ | -------------------------------- |
| "command" | (string, optional) | the command requiring assistance |

**📌 Examples**

Command:

```
./komodo-cli help
```

\<collapse-text hidden title="Response">

```
== Addressindex ==
getaddressbalance
getaddressdeltas
getaddressmempool
getaddresstxids
getaddressutxos
getsnapshot
​
== Auction ==
auctionaddress [pubkey]
​
== Blockchain ==
coinsupply <height>
getbestblockhash
getblock "hash|height" ( verbose )
getblockchaininfo
getblockcount
​
getblockhash index
getblockhashes timestamp
getblockheader "hash" ( verbose )
getchaintips
getdifficulty
​
........ (other responses omitted for brevity)
```

\</collapse-text>

Command:

```
./komodo-cli help getaddressbalance
```

\<collapse-text hidden title="Response">

```
Returns the balance for an address(es) (requires addressindex to be enabled).
​
Arguments:
{
  "addresses"
    [
      "address"  (string) The base58check encoded address
      ,...
    ]
}
​
Result:
{
  "balance"  (string) The current balance in satoshis
  "received"  (string) The total number of satoshis received (including change)
}
​
Examples:
> komodo-cli getaddressbalance '{"addresses": ["RY5LccmGiX9bUHYGtSWQouNy1yFhc5rM87"]}'
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddressbalance", "params": [{"addresses": ["RY5LccmGiX9bUHYGtSWQouNy1yFhc5rM87"]}] }' -H 'content-type: text/plain;' http://127.0.0.1:7771/
```

\</collapse-text>

### stop

**stop**

The `stop` method instructs the coin daemon to shut down.

The amount of time it takes to shut down the chain will vary depending on the chain's current state.

::: warning Forcefully stopping the chain should be avoided, as it may corrupt the local database. In the event of a corrupted database, the user will need to **resync**. :::

#### Arguments

| Name   | Type | Description |
| ------ | ---- | ----------- |
| (none) |      |             |

#### Response

| Name                               | Type | Description |
| ---------------------------------- | ---- | ----------- |
| Indexchain server stopping         |      |             |
| \[COIN] Indexchain server stopping |      |             |

**📌 Examples**

Command:

```
./komodo-cli stop
```

\<collapse-text hidden title="Response">

```
"Indexchain server stopping"
```

\</collapse-text>

You can find your `rpcuser`, `rpcpassword`, and `rpcport` in the coin's `.conf` file.

Command:

```
curl --user $rpcuser:$rpcpassword --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "stop", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:$rpcport/
```

\<collapse-text hidden title="Response">

```
{ "result": "Indexchain server stopping", "error": null, "id": "curltest" }
```

\</collapse-text>


---

# 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://dicdoc.gitbook.io/doc/smart-chain-api/control.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.
