> For the complete documentation index, see [llms.txt](https://docs.blockxnet.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.blockxnet.com/protocol-developers/modules/feesplit/clients.md).

# Clients

### CLI <a href="#cli" id="cli"></a>

Find below a list of  `blockxd` commands added with the `x/feesplit` module. You can obtain the full list by using the `blockxd -h` command. A CLI command can look like this:

```
blockxd query fees params
```

#### Queries <a href="#queries" id="queries"></a>

| Command            | Subcommand             | Description                              |
| ------------------ | ---------------------- | ---------------------------------------- |
| `query` `feesplit` | `params`               | Get fees params                          |
| `query` `feesplit` | `contract`             | Get the fee split for a given contract   |
| `query` `feesplit` | `contracts`            | Get all fee splits                       |
| `query` `feesplit` | `deployer-contracts`   | Get all fee splits of a given deployer   |
| `query` `feesplit` | `withdrawer-contracts` | Get all fee splits of a given withdrawer |

#### Transactions <a href="#transactions" id="transactions"></a>

| Command         | Subcommand | Description                                |
| --------------- | ---------- | ------------------------------------------ |
| `tx` `feesplit` | `register` | Register a contract for receiving fees     |
| `tx` `feesplit` | `update`   | Update the withdraw address for a contract |
| `tx` `feesplit` | `cancel`   | Remove the fee split for a contract        |

### gRPC <a href="#grpc" id="grpc"></a>

#### Queries <a href="#queries-2" id="queries-2"></a>

| Verb   | Method                                             | Description                              |
| ------ | -------------------------------------------------- | ---------------------------------------- |
| `gRPC` | `blockx.feesplit.v1.Query/Params`                  | Get fees params                          |
| `gRPC` | `blockx.feesplit.v1.Query/FeeSplit`                | Get the fee split for a given contract   |
| `gRPC` | `blockx.feesplit.v1.Query/FeeSplits`               | Get all fee splits                       |
| `gRPC` | `blockx.feesplit.v1.Query/DeployerFeeSplits`       | Get all fee splits of a given deployer   |
| `gRPC` | `blockx.feesplit.v1.Query/WithdrawerFeeSplits`     | Get all fee splits of a given withdrawer |
| `GET`  | `/blockx/feesplit/v1/params`                       | Get fees params                          |
| `GET`  | `/blockx/feesplit/v1/feesplits/{contract_address}` | Get the fee split for a given contract   |
| `GET`  | `/blockx/feesplit/v1/feesplits`                    | Get all fee splits                       |
| `GET`  | `/blockx/feesplit/v1/feesplits/{deployer_address}` | Get all fee splits of a given deployer   |
| `GET`  | `/blockx/feesplit/v1/feesplits/{withdraw_address}` | Get all fee splits of a given withdrawer |

#### Transactions <a href="#transactions-2" id="transactions-2"></a>

| Verb   | Method                                      | Description                                |
| ------ | ------------------------------------------- | ------------------------------------------ |
| `gRPC` | `blockx.feesplit.v1.Msg/RegisterFeeSplit`   | Register a contract for receiving fees     |
| `gRPC` | `blockx.feesplit.v1.Msg/UpdateFeeSplit`     | Update the withdraw address for a contract |
| `gRPC` | `blockx.feesplit.v1.Msg/CancelFeeSplit`     | Remove the fee split for a contract        |
| `POST` | `/blockx/feesplit/v1/tx/register_fee_split` | Register a contract for receiving fees     |
| `POST` | `/blockx/feesplit/v1/tx/update_fee_split`   | Update the withdraw address for a contract |
| `POST` | `/blockx/feesplit/v1/tx/cancel_fee_split`   | Remove the fee split for a contract        |
