mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 20:56:42 +00:00
Create offline-tx-signing.md
Provides a detailed guide on preparing, signing and broadcasting transactions in an offline/online setup using geth.
This commit is contained in:
parent
27b3a6087e
commit
c8cd481327
1 changed files with 15 additions and 0 deletions
15
docs/offline-tx-signing.md
Normal file
15
docs/offline-tx-signing.md
Normal file
|
|
@ -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
|
||||
Loading…
Reference in a new issue