Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save JokerCatz/601c25acfb018fcd1cd3fed770776acf to your computer and use it in GitHub Desktop.
Save JokerCatz/601c25acfb018fcd1cd3fed770776acf to your computer and use it in GitHub Desktop.
Arweave or Testweave error wrong_network

Arweave or Testweave error wrong_network

easy ... it no doc ... WTF ... like this

if use like this

curl -X POST http://127.0.0.1:1984/peers

will return

{"error":"wrong_network"}

anyway the source code contain header check , you can use like

curl http://127.0.0.1:1984/info

return

{"network":"arweave.testnet","version":5,"release":45,"height":0,"current":"Y5JtcdePT9vcJeFUYJ01TLy3qqWLlKP2GvS_8iHykt0oTvedQO8IU67yl1q1e43E","blocks":0,"peers":0,"queue_length":0,"node_state_latency":2}

so {network} = "arweave.testnet" , and add http header to request , like

curl --header "X-Network: arweave.testnet" -X POST http://127.0.0.1:1984/peers

will be success(but no response , it not POST method) , and if you need mine , just use

curl --header "X-Network: arweave.testnet" -X POST http://127.0.0.1:1984/mine

then GET /info , the block num will +1 , and root wallet at Testweave is MlV6DeOtRmakDOf6vgOBlif795tcWimgyPsYYNQ8q1Y I think you can find keypair source , request AR drop just use the root wallet to transfer to target wallet

anyway for fun : )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment