From c8cd481327036bf8c147952ba67a5284f974ab00 Mon Sep 17 00:00:00 2001 From: kirito201922 <52266724+kirito201922@users.noreply.github.com> Date: Thu, 25 Dec 2025 21:24:04 +0100 Subject: [PATCH] Create offline-tx-signing.md Provides a detailed guide on preparing, signing and broadcasting transactions in an offline/online setup using geth. --- docs/offline-tx-signing.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 docs/offline-tx-signing.md diff --git a/docs/offline-tx-signing.md b/docs/offline-tx-signing.md new file mode 100644 index 0000000000..79309981ec --- /dev/null +++ b/docs/offline-tx-signing.md @@ -0,0 +1,15 @@ +# Offline transaction signing with Geth + +Signing transactions offline improves security by keeping your private keys off of internet‑connected machines. + +## Prerequisites + +- A machine with geth installed (air‑gapped or offline). +- A machine with network access to broadcast the signed transaction. +- The account’s private key or keystore file. + +## Steps + +1. **Prepare the unsigned transaction** on an online machine using: + ```bash + geth --exec "eth.signTransaction({to: '0x...', value: web3.utils.toWei('1', 'ether'), gas: 21000, gasPrice: web3.utils.toWei('1', 'gwei'), nonce: web3.eth.getTransactionCount('0xYourAddress')})" attach