> For the complete documentation index, see [llms.txt](https://xeqmlabs.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://xeqmlabs.gitbook.io/docs/documentation/guides/mainnet/testnet/get-sn-registration-command.md).

# Get SN Registration Command

Once your funds have been received and unlocked, you can get the registration command for your service node.

Make sure the wallet CLI is CLOSED (you should be back at the `PS C:\...>` prompt)

Replace `<MY_ADDRESS>` with your wallet address from Step 7.

#### PRIOR TO HF16 - Windows (PowerShell)

Copy and paste this command (replace `<MY_ADDRESS>` with your actual address)

* Use this command to display the full command and automatically copy it to your clipboard:
* Change operator cut for a different operator fee
* Change contributor amounts for different operator initial stakes

<pre data-overflow="wrap"><code><strong>$result = Invoke-RestMethod -Uri http://127.0.0.1:18091/json_rpc -Method Post -ContentType "application/json" -Body '{"jsonrpc":"2.0","id":"0","method":"get_service_node_registration_cmd","params":{"operator_cut":"10.0","contributor_addresses":["YOUR_ADDRESS"],"contributor_amounts":[18446744073709551612],"staking_requirement":100000000000000}}'; $result.result.registration_cmd
</strong></code></pre>

You'll get a response that looks like this:

{% code overflow="wrap" %}

```
register_service_node 1000 YOUR_ADDRESS 18446744073709551612 1770348590 9c6ea2a98ffee39d936a4fd19a375ad3f53fed492f67066148d6aaf39c25448d a0d622857ca707e43a3bd981c8c0bb66fa8148e42ba499bb59b39e0b141aaa0266b7c655cf9f4166535556dde1c071d8247bbbf730f2f2ce7c6872569e2b5b01
```

{% endcode %}

#### AFTER HF16 - Windows (Powershell)

Full Node (100k XEQ):

{% code overflow="wrap" %}

```
$result = Invoke-RestMethod -Uri http://127.0.0.1:18091/json_rpc -Method Post -ContentType "application/json" -Body '{"jsonrpc":"2.0","id":"0","method":"get_service_node_registration_cmd","params":{"operator_cut":"10.0","contributor_addresses":["XEQTTEHPnaGUxZrdNPqdjNDPryJCkGQxRBLwkRPk6Czm2Vuwmt7U1g85EPgCAQMGdfKzsor2rgiF7W7RPvsKiGXJ2uyy5AE8YR"],"contributor_amounts":[100000000000000],"staking_requirement":100000000000000}}'; $result.result.registration_cmd
```

{% endcode %}

Pool Node (25k XEQ Min):

{% code overflow="wrap" %}

```
$result = Invoke-RestMethod -Uri http://127.0.0.1:18091/json_rpc -Method Post -ContentType "application/json" -Body '{"jsonrpc":"2.0","id":"0","method":"get_service_node_registration_cmd","params":{"operator_cut":"10.0","contributor_addresses":["XEQTTEHPnaGUxZrdNPqdjNDPryJCkGQxRBLwkRPk6Czm2Vuwmt7U1g85EPgCAQMGdfKzsor2rgiF7W7RPvsKiGXJ2uyy5AE8YR"],"contributor_amounts":[25000000000000],"staking_requirement":100000000000000}}'; $result.result.registration_cmd
```

{% endcode %}

#### PRIOR TO HF16 - Linux

Copy and paste this command (replace `<MY_ADDRESS>` with your actual address):

{% code overflow="wrap" %}

```
curl -s http://127.0.0.1:18091/json_rpc -X POST -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","id":"0","method":"get_service_node_registration_cmd","params":{"operator_cut":"10.0","contributor_addresses":["YOUR_ADDRESS"],"contributor_amounts":[18446744073709551612],"staking_requirement":100000000000000}}' | jq -r '.result.registration_cmd'
```

{% endcode %}

If you don't have jq installed, use this alternative:

{% code overflow="wrap" %}

```
curl -s http://127.0.0.1:18091/json_rpc -X POST -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","id":"0","method":"get_service_node_registration_cmd","params":{"operator_cut":"10.0","contributor_addresses":["YOUR_ADDRESS"],"contributor_amounts":[18446744073709551612],"staking_requirement":100000000000000}}' | grep -o '"registration_cmd":"[^"]*"' | cut -d'"' -f4
```

{% endcode %}

You'll get a response that looks like this:

{% code overflow="wrap" %}

```
register_service_node 1000 YOUR_ADDRESS 18446744073709551612 1770348590 9c6ea2a98ffee39d936a4fd19a375ad3f53fed492f67066148d6aaf39c25448d a0d622857ca707e43a3bd981c8c0bb66fa8148e42ba499bb59b39e0b141aaa0266b7c655cf9f4166535556dde1c071d8247bbbf730f2f2ce7c6872569e2b5b01
```

{% endcode %}

#### AFTER HF16 - Linux

Full Node (100k XEQ):

{% code overflow="wrap" %}

```
curl -s http://127.0.0.1:18091/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"get_service_node_registration_cmd","params":{"operator_cut":"10.0","contributor_addresses":["XEQTTEHPnaGUxZrdNPqdjNDPryJCkGQxRBLwkRPk6Czm2Vuwmt7U1g85EPgCAQMGdfKzsor2rgiF7W7RPvsKiGXJ2uyy5AE8YR"],"contributor_amounts":[100000000000000],"staking_requirement":100000000000000}}' | jq -r '.result.registration_cmd'
```

{% endcode %}

Pool Node (25k XEQ):

{% code overflow="wrap" %}

```
curl -s http://127.0.0.1:18091/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"get_service_node_registration_cmd","params":{"operator_cut":"10.0","contributor_addresses":["XEQTTEHPnaGUxZrdNPqdjNDPryJCkGQxRBLwkRPk6Czm2Vuwmt7U1g85EPgCAQMGdfKzsor2rgiF7W7RPvsKiGXJ2uyy5AE8YR"],"contributor_amounts":[25000000000000],"staking_requirement":100000000000000}}' | jq -r '.result.registration_cmd'
```

{% endcode %}

Copy the `registration_cmd` value - it's the long command that starts with `register_service_node`.

**Note:** Replace `<MY_ADDRESS>` with your actual wallet address. The command starts with `register_service_node` and is very long (one continuous line).

**Note:** Make sure you have enough XEQ in your wallet and that the funds are unlocked.

***
