Difference between revisions of "Avalanchego"

From wikieduonline
Jump to navigation Jump to search
 
(51 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{lc}}
 
{{lc}}
* https://github.com/ava-labs/avalanchego
+
<code>avalanchego</code> [[Node]] implementation for the [[Avalanche network]]( [https://github.com/ava-labs/avalanchego GitHub], [https://hub.docker.com/r/avaplatform/avalanchego/tags Docker hub])
 +
* Binaries: <code>[[avalanchego]], [[subnet-evm]]</code>
 +
* <code>[[avalanchego --help]]</code>
 +
* Ports: <code>9650, 9651</code>
 +
* Configuration:
 +
** <code>[[~/.avalanchego/]]staking/[[staker.crt]]</code>
 +
** <code>~/.avalanchego/staking/[[staker.key]]</code>
  
[[avalanchego --help]]
+
== Examples ==
 
+
                    [[avalanchego]]
                    avalanchego
 
 
                     "--db-dir=/data/avax",
 
                     "--db-dir=/data/avax",
 
                     "--data-dir=/home/avax",
 
                     "--data-dir=/home/avax",
Line 13: Line 18:
 
                     "--staking-tls-cert-file=/home/avax/staking/staker.crt",
 
                     "--staking-tls-cert-file=/home/avax/staking/staker.crt",
 
                     "--staking-tls-key-file=/home/avax/staking/staker.key",
 
                     "--staking-tls-key-file=/home/avax/staking/staker.key",
                     "--track-subnets=2exxxxxxxxKBLdNkQRk",
+
                     "[[--track-subnets]]=2exxxxxxxxKBLdNkQRk",
                     "--public-ip=xx.xx.xx.xx"
+
                     "[[--public-ip]]=xx.xx.xx.xx"
  
  
* macOS: git clone [email protected]:ava-labs/avalanchego.git && cd avalanchego && ./scripts/build.sh
+
{{Avalanchego example}}
  
 +
  avalanchego --network-id=[[fuji]]
  
* Linux:  
+
* Docker: https://hub.docker.com/r/avaplatform/avalanchego/tags
 +
: [[avaplatform/avalanchego]]
 +
:<code>docker run -ti -p [[9650]]:9650 -p [[9651]]:9651 avaplatform/avalanchego:xxxxxxxx /avalanchego/build/avalanchego</code>
 +
 
 +
== Installation ==
 +
* Build from source macOS/Ubuntu:
 +
** macOS: <code>git clone https://github.com/ava-labs/avalanchego.git && cd avalanchego && ./scripts/build.sh</code>
 +
** Ubuntu: <code>[[apt install golang-go]] -y -qqq && git clone https://github.com/ava-labs/avalanchego.git && cd avalanchego && ./[[scripts/build.sh]]</code>
 +
 
 +
* Ubuntu:  
 
  sudo su -
 
  sudo su -
  wget -qO - https://downloads.avax.network/avalanchego.gpg.key | tee /etc/apt/trusted.gpg.d/avalanchego.asc source /etc/os-release && echo "deb https://downloads.avax.network/apt $UBUNTU_CODENAME main" > [[/etc/apt/sources.list.d/avalanche.list]]
+
  [[wget -qO]] - https://downloads.avax.network/avalanchego.gpg.key | tee [[/etc/apt/trusted.gpg.d/]]avalanchego.asc && source /etc/os-release && echo "deb https://downloads.avax.network/apt $[[UBUNTU_CODENAME]] main" > [[/etc/apt/sources.list.d/avalanche.list]]
 
  exit
 
  exit
 
  sudo apt update && sudo [[apt install avalanchego]]
 
  sudo apt update && sudo [[apt install avalanchego]]
 +
[[apt info avalanchego]]
  
 +
== Related ==
 +
* [[Avalanche Cortina]]
 +
* [[Upgrade avalanchego]]: https://docs.avax.network/nodes/maintain/upgrade-your-avalanchego-node
 +
* [[Avalanchego logs]]
 +
* <code>[[apt install golang-go]]</code>
 +
* [[Cryptocurrency nodes]]
 +
* <code>[[avalanche-cli]]</code>
  
avalanchego --network-id=[[fuji]]
+
== See also ==
 
+
* {{avax logs}}
 
* {{avalanchego}}
 
* {{avalanchego}}
 
* {{Avalanche}}
 
* {{Avalanche}}
 +
 +
[[Category:Avalanche]]

Latest revision as of 13:06, 1 July 2024

avalanchego Node implementation for the Avalanche network( GitHub, Docker hub)

Examples[edit]

                   avalanchego
                   "--db-dir=/data/avax",
                   "--data-dir=/home/avax",
                   "--network-id=fuji",
                   "--api-admin-enabled=true",
                   "--http-host=0.0.0.0",
                   "--bootstrap-retry-enabled",
                   "--staking-tls-cert-file=/home/avax/staking/staker.crt",
                   "--staking-tls-key-file=/home/avax/staking/staker.key",
                   "--track-subnets=2exxxxxxxxKBLdNkQRk",
                   "--public-ip=xx.xx.xx.xx"


 avalanchego --db-dir=/data/avax --data-dir=/home/avax --network-id=fuji --api-admin-enabled=true --http-host=0.0.0.0 --bootstrap-retry-enabled
 avalanchego --network-id=fuji
avaplatform/avalanchego
docker run -ti -p 9650:9650 -p 9651:9651 avaplatform/avalanchego:xxxxxxxx /avalanchego/build/avalanchego

Installation[edit]

  • Ubuntu:
sudo su -
wget -qO - https://downloads.avax.network/avalanchego.gpg.key | tee /etc/apt/trusted.gpg.d/avalanchego.asc && source /etc/os-release && echo "deb https://downloads.avax.network/apt $UBUNTU_CODENAME main" > /etc/apt/sources.list.d/avalanche.list
exit
sudo apt update && sudo apt install avalanchego
apt info avalanchego

Related[edit]

See also[edit]

Advertising: