Airchains EVM

cd
rm -rf tracks
wget http://37.120.189.81/airchain_testnet/tracks
chmod +x tracks
systemctl stop tracksd
./tracks rollback
./tracks start
wget -O baslat.sh https://github.com/ynranil/Airchains/raw/main/baslat.sh && chmod +x baslat.sh && ./baslat.sh
screen -S etm -p 0 -X quit
ps aux | grep tracks
kill -9 
sudo apt update && sudo apt upgrade -y
sudo apt install curl git wget htop tmux build-essential jq make lz4 gcc unzip screen -y
sudo apt install -y curl git jq lz4 build-essential cmake perl automake autoconf libtool wget libssl-dev -y

ufw allow 16545

cd $HOME && \
ver="1.21.3" && \
wget "https://golang.org/dl/go$ver.linux-amd64.tar.gz" && \
sudo rm -rf /usr/local/go && \
sudo tar -C /usr/local -xzf "go$ver.linux-amd64.tar.gz" && \
rm "go$ver.linux-amd64.tar.gz" && \
echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> $HOME/.bash_profile && \
source $HOME/.bash_profile && \
go version

git clone https://github.com/airchains-network/evm-station.git

wget http://37.120.189.81/airchain_testnet/tracks
chmod +x tracks

cd evm-station
go mod tidy

İsim gir xxxx_1234-1

nano /root/evm-station/scripts/local-setup.sh

keyleri kaydet

/bin/bash ./scripts/local-setup.sh

echo "export G_PORT="16"" >> $HOME/.bash_profile
source $HOME/.bash_profile

sed -i.bak -e "s%:1317%:${G_PORT}317%g;
s%:8080%:${G_PORT}080%g;
s%:9090%:${G_PORT}090%g;
s%:9091%:${G_PORT}091%g;
s%:8545%:${G_PORT}545%g;
s%:8546%:${G_PORT}546%g;
s%:6065%:${G_PORT}065%g" $HOME/.evmosd/config/app.toml

sed -i.bak -e "s%:26658%:${G_PORT}658%g;
s%:26657%:${G_PORT}657%g;
s%:6060%:${G_PORT}060%g;
s%:26656%:${G_PORT}656%g;
s%^external_address = \"\"%external_address = \"$(wget -qO- eth0.me):${G_PORT}656\"%;
s%:26660%:${G_PORT}660%g" $HOME/.evmosd/config/config.toml

cd
cd evm-station
/bin/bash ./scripts/local-keys.sh

chain id gir xxx_1234-1

CHAINID=
sudo tee /etc/systemd/system/evmosd.service > /dev/null <<EOF
[Unit]
Description=evmosd node
After=network-online.target
[Service]
User=$USER
WorkingDirectory=$HOME/.evmosd
ExecStart=/root/evm-station/build/station-evm start \
--metrics "" \
--log_level "info" \
--json-rpc.api eth,txpool,personal,net,debug,web3 \
--chain-id "$CHAINID"
Restart=on-failure
RestartSec=5
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF

sudo systemctl daemon-reload
sudo systemctl enable evmosd
sudo systemctl restart evmosd
sudo journalctl -u evmosd -fo cat

Avail Turing

avail adresini ve pubkeyini kaydet

cd
wget https://github.com/availproject/avail-light/releases/download/v1.9.0/avail-light-linux-amd64.tar.gz
tar -xvzf avail-light-linux-amd64.tar.gz
mv avail-light-linux-amd64 avail-light
chmod +x avail-light
rm -rf avail-light-linux-amd64.tar.gz


mkdir -p $HOME/.avail/turing/bin
mkdir -p $HOME/.avail/turing/data
mkdir -p $HOME/.avail/turing/config
mkdir -p $HOME/.avail/identity

curl -Ls https://raw.githubusercontent.com/Core-Node-Team/Testnet-TR/main/Avail-Turing/config.yml > $HOME/.avail/turing/config/config.yml


sudo tee /etc/systemd/system/availd.service > /dev/null <<EOF
[Unit]
Description=Avail Light Client
After=network.target
StartLimitIntervalSec=0

[Service]
User=root
ExecStart=/root/avail-light \
--network "turing" \
--config /root/.avail/turing/config/config.yml \
--app-id 0 \
--identity /root/.avail/identity/identity.toml
 
Restart=always
RestartSec=30
Environment="DAEMON_HOME=$HOME/.avail"

[Install]
WantedBy=multi-user.target
EOF

sudo systemctl daemon-reload
systemctl enable availd
sudo systemctl restart availd && journalctl -u availd -fo cat

TRACK KURMA

cd
./tracks init --daRpc "http://127.0.0.1:7000" --daKey "0xpubkey" --daType "avail" --moniker "isim" --stationRpc "http://127.0.0.1:16545" --stationAPI "http://127.0.0.1:16545" --stationType "evm"

Faucet Al Discord

./tracks keys junction --accountName wallet --accountPath $HOME/.tracks/junction-accounts/keys

./tracks prover v1EVM

node id al p2p kısmında

nano /root/.tracks/config/sequencer.toml
./tracks create-station --accountName wallet --accountPath $HOME/.tracks/junction-accounts/keys --jsonRPC "https://airchains-testnet-rpc.cosmonautstakes.com/" --info "EVM Track" --tracks airadresinigir --bootstrapNode "/ip4/sunucuip/tcp/2300/p2p/id"

screen'den ctrl a+d ile çık

screen -S etm
wget -O tekrarbaslat.sh https://raw.githubusercontent.com/ynranil/Airchains/main/tekrarbaslat.sh && chmod +x tekrarbaslat.sh && ./tekrarbaslat.sh

OTO TX

sudo apt install curl git wget htop tmux build-essential jq make lz4 gcc unzip screen -y
sudo apt install -y curl git jq lz4 build-essential cmake perl automake autoconf libtool wget libssl-dev -y
curl -sL https://deb.nodesource.com/setup_20.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo apt install nodejs npm 
npm install -g npm@10.8.1
npm install web3@1.5.3
nano corenodetx.js
const readline = require('readline');
const Web3 = require('web3');

const rl = readline.createInterface({
  input: process.stdin,
  output: process.stdout
});

rl.question('MetaMask cüzdanının özel anahtarını girin: ', (privateKey) => {
  rl.question('Göndermek istediğiniz cüzdan adresini girin: ', (toAddress) => {
    rl.question('Göndermek istediğiniz miktarı girin (tevmos): ', (amount) => {
      rl.question('İşlemi kaç saniyede bir tekrar etmek istiyorsunuz? (saniye cinsinden): ', (interval) => {

        const rpcURL = "http://localhost:16545"; // veya sunucunuzun IP'si: "http://your-server-ip:16545"
        const web3 = new Web3(new Web3.providers.HttpProvider(rpcURL));

        function sendTransaction() {
          const account = web3.eth.accounts.privateKeyToAccount(privateKey);
          web3.eth.accounts.wallet.add(account);
          web3.eth.defaultAccount = account.address;

          const tx = {
            from: web3.eth.defaultAccount,
            to: toAddress,
            value: web3.utils.toWei(amount, 'ether'),
            gas: 21000,
            gasPrice: web3.utils.toWei('1', 'gwei')
          };

          web3.eth.sendTransaction(tx)
            .then(receipt => {
              console.log('Transaction successful with hash:', receipt.transactionHash);
            })
            .catch(err => {
              console.error('Error sending transaction:', err);
            });
        }

        setInterval(sendTransaction, interval * 1000);

        rl.close();
      });
    });
  });
});

ctrl x+y enter

/root/evm-station/build/station-evm keys export mykey --unarmored-hex --unsafe --keyring-backend test

ototx'ye girilcek

screem -S tx

node corenodetx.js

Last updated