> For the complete documentation index, see [llms.txt](https://services.node39.top/index.html/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://services.node39.top/index.html/end/autonity/rpc.md).

# RPC

#### Install Dependencies: <a href="#install-dependencies" id="install-dependencies"></a>

```
sudo apt update && apt upgrade -y
sudo apt install git curl wget -y
sudo apt install make clang pkg-config libssl-dev jq build-essential -y
```

**Install GO:**&#x20;

```
rm -rf $HOME/go
sudo rm -rf /usr/local/go
cd $HOME
curl https://dl.google.com/go/go1.22.4.linux-amd64.tar.gz | sudo tar -C/usr/local -zxvf -
cat <<'EOF' >>$HOME/.profile
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export GO111MODULE=on
export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin
EOF
source $HOME/.profile
go version
```

**PIPX Install:**

```
sudo apt install pipx -y
pipx install --force git+https://github.com/autonity/aut.git
pipx ensurepath
```

**Download Binary:**

```
mkdir autonity-client && cd autonity-client 
wget https://github.com/autonity/autonity/releases/download/v0.14.0/autonity-linux-amd64-0.14.0.tar.gz
tar -xzf autonity-linux-amd64-0.14.0.tar.gz
rm -rf autonity-linux-amd64-0.14.0.tar.gz
sudo cp -r autonity /usr/local/bin/autonity
autonity version

mkdir autonity-chaindata

// set 
cd  $HOME
your_ip="$(curl ifconfig.me)"
```

**Create Service:**

```
sudo tee /etc/systemd/system/autonityd.service > /dev/null << EOF
[Unit]
Description=Autonityd Node
After=network-online.target
StartLimitIntervalSec=0
[Service]
User=$USER
Restart=always
RestartSec=3
LimitNOFILE=65535
ExecStart=autonity \
    --datadir ${HOME}/autonity-client/autonity-chaindata  \
    --piccadilly  \
    --http  \
    --http.addr 0.0.0.0 \
    --http.api aut,eth,net,txpool,web3,admin  \
    --http.vhosts \* \
    --ws  \
    --ws.addr 0.0.0.0 \
    --ws.api aut,eth,net,txpool,web3,admin  \
    --nat extip:$your_ip \
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable autonityd
```

\=> <mark style="color:red;">Reboot</mark>&#x20;

```
pipx ensurepath
cd $HOME
mkdir piccadilly-keystore && chmod +x piccadilly-keystore && cd $HOME
sleep 1
cp -r $HOME/autonity-client/autonity-chaindata/autonity/autonitykeys $HOME/piccadilly-keystore/
sleep 1
head -c 64 $HOME/autonity-client/autonity-chaindata/autonity/autonitykeys > $HOME/piccadilly-keystore/autonitykeys_private.key
sleep 1
aut account import-private-key $HOME/piccadilly-keystore/autonitykeys_private.key > $HOME/piccadilly-keystore/autonity_keystore.txt
sleep 1
keystore="$(cat  $HOME/piccadilly-keystore/autonity_keystore.txt | grep "keystore" |   awk 'NR==1{print $2}')"
sleep 1
sudo tee .autrc > /dev/null << EOF
[aut]
rpc_endpoint=http://127.0.0.1:8545
keyfile=$keystore
EOF
echo "OK"
```

**Get info and form**

**Form:** [**https://game.autonity.org/awards/register-node.html**](<https://game.autonity.org/awards/register-node.html&#xA;>)

```
// Get sign-message public rpc
aut account sign-message "public rpc" > $HOME/piccadilly-keystore/logs_rpc.txt && cat $HOME/piccadilly-keystore/logs_rpc.txt

// Get enode
echo "$(aut node info | jq -r '.admin_enode')"
```

**Command:**&#x20;

```
sudo systemctl daemon-reload
sudo systemctl enable autonityd
sudo systemctl restart autonityd
sudo journalctl -u autonityd -f -o cat
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://services.node39.top/index.html/end/autonity/rpc.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
