November 5, 2024

Инструкция по установке ExplorerRelayer/ ExplorerRelayer installation instructions

RU


Шаг 1. Клонируйте git-репозиторий.

Шаг 2. Начните сборку релеера, выполнив следующие команды:

apt-get update apt-get install libssl-dev libudev-dev pkg-config zlib1g-dev llvm clang cmake make libprotobuf-dev protobuf-compiler cargo b --release

Шаг 3. Создайте файл relayer.service в каталоге /etc/systemd/system:

ConditionPathExists=/root/keys/relayer-keypair.json ConditionPathExists=/root/keys/private.pem ConditionPathExists=/root/keys/public.pem [Service] Type=exec Restart=on-failure Environment=RUST_LOG=info Environment=SOLANA_METRICS_CONFIG="host=http://metrics.jito.wtf:8086,db=relayer,u=relayer-operators,p=jito-relayer-write" Environment=BLOCK_ENGINE_URL=https://amsterdam.mainnet.block-engine.jito.wtf Environment=GRPC_BIND_IP=127.0.0.1 ExecStart=/root/jito-relayer/solana-relayer/target/release/jito-transaction-relayer \ --keypair-path=/root/keys/relayer-keypair.json \ --signing-key-pem-path=/root/keys/private.pem \ --verifying-key-pem-path=/root/keys/public.pem \ --packet-delay-ms=200 \ --public-ip 176.99.142.179 [Install] WantedBy=multi-user.target\

Обратите внимание:

  • keypair должен быть в белом списке, для этого откройте тикет на сервере jito в Discord.
  • Файлы .pem могут быть сгенерированы на локальной машине.
  • public-ip должен быть IP-адресом вашего сервера.
  • Путь в параметре ExecStart должен указывать на файл, созданный на Шаге 2.

Шаг 4. Запустите валидатор и переключите релеер на локальный.

Шаг 5. Запустите релеер, выполните journalctl -u relayer.service | grep "begin", чтобы проверить, пересылаются ли транзакции на сервер AWS.

EN

Step 1. Clone the git repository.

Step 2. Start building the relayer by executing the following commands:

apt-get update apt-get install libssl-dev libudev-dev pkg-config zlib1g-dev llvm clang cmake make libprotobuf-dev protobuf-compiler cargo b --release

Step 3. Create a relayer.service file in the /etc/systemd/system directory:

ConditionPathExists=/root/keys/relayer-keypair.json ConditionPathExists=/root/keys/private.pem ConditionPathExists=/root/keys/public.pem [Service] Type=exec Restart=on-failure Environment=RUST_LOG=info Environment=SOLANA_METRICS_CONFIG="host=http://metrics.jito.wtf:8086,db=relayer,u=relayer-operators,p=jito-relayer-write" Environment=BLOCK_ENGINE_URL=https://amsterdam.mainnet.block-engine.jito.wtf Environment=GRPC_BIND_IP=127.0.0.1 ExecStart=/root/jito-relayer/solana-relayer/target/release/jito-transaction-relayer \ --keypair-path=/root/keys/relayer-keypair.json \ --signing-key-pem-path=/root/keys/private.pem \ --verifying-key-pem-path=/root/keys/public.pem \ --packet-delay-ms=200 \ --public-ip 176.99.142.179 [Install] WantedBy=multi-user.target

Note:

  • The keypair should be whitelisted by opening a ticket on the jito Discord server.
  • The .pem files can be generated on your local machine.
  • The public-ip should be your server's IP address.
  • The path in the ExecStart parameter should point to the file generated in Step 2.

Step 4. Start the validator and switch your relayer to the local one.

Step 5. Start the relayer, then run journalctl -u relayer.service | grep "begin" to check if any transactions are being forwarded to the server.