> For the complete documentation index, see [llms.txt](https://docs.onefinity.network/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.onefinity.network/validators/interact-with-the-blockchain.md).

# Interact with the blockchain

### MXPY

To interact with the blockchain and make transactions, you need to install `mxpy`. You can find more detailed installation instructions and additional setup steps for `mxpy` [here](https://docs.multiversx.com/sdk-and-tools/sdk-py/installing-mxpy).

### Configure mxpy Address HRP

mxpy config set default\_address\_hrp one<br>

### For the validator pem to interact with the mxpy we need to create a json with the path having the following structure

```
{
  "validators": [
    {
      "pemFile": "validatorKey.pem"
    }
  ]
}
```

### Add a validator

```
mxpy validator stake \
  --pem=walletKey.pem \
  --value="2500000000000000000000" \
  --validators-file=validator.json \
  --proxy="https://gateway.validators.onefinity.network" \
  --gas-limit 25000000 \
  --recall-nonce \
  --send
```

### Unstake a validator

```
mxpy validator unstake \
  --pem=walletKey.pem \
  --nodes-public-keys address \
  --proxy="https://gateway.validators.onefinity.network" \
  --gas-limit 25000000 \
  --recall-nonce \
  --send
```
