Skip to content

Instantly share code, notes, and snippets.

@jaonoctus
Last active August 22, 2025 03:06
Show Gist options
  • Select an option

  • Save jaonoctus/348288966d2af7cfc7aeb5409fa70bc5 to your computer and use it in GitHub Desktop.

Select an option

Save jaonoctus/348288966d2af7cfc7aeb5409fa70bc5 to your computer and use it in GitHub Desktop.
cd "$env:UserProfile"
New-Item -Path btc -ItemType Directory
cd btc
Invoke-WebRequest -Uri "https://bitcoincore.org/bin/bitcoin-core-29.0/bitcoin-29.0-win64.zip" -OutFile bitcoin.zip
# espere terminar de baixar
Expand-Archive -Path "bitcoin.zip" -DestinationPath .
New-Item -Path "$env:LocalAppData\Bitcoin" -ItemType Directory -Force
"signet=1`ntxindex=1`n[signet]`nsignetchallenge=0014bdec02fe5ec499cc2cb52dc160230643a84dd118" | Set-Content "$env:LocalAppData\Bitcoin\bitcoin.conf"
cd "$env:UserProfile\btc\bitcoin-29.0\bin"
./bitcoind.exe
---
# em outro terminal PowerShell
cd "$env:UserProfile\btc\bitcoin-29.0\bin"
./bitcoin-cli.exe getblockchaininfo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment