https://github.com/debianmaster/eth-cheatsheet
https://github.com/debianmaster/eth-cheatsheet
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/debianmaster/eth-cheatsheet
- Owner: debianmaster
- Created: 2018-01-30T07:34:46.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-30T07:37:56.000Z (over 8 years ago)
- Last Synced: 2025-01-29T14:53:43.444Z (over 1 year ago)
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## docker.io
```sh
apt install docker.io
```
## Run ETH node
```sh
docker run -d --name ethereum-node -v /ethdata:/root \
-p 8545:8545 -p 30303:30303 \
ethereum/client-go --fast --cache=512 --rpc --rpcaddr "0.0.0.0" --rpcapi "personal,eth,web3"
```
## API calls
```sh
curl --request POST --header 'Content-type: application/json' --data '{"jsonrpc":"2.0","method":"personal_newAccount","params":["pass"],"id":74}' http://localhost:8545
```
```sh
curl -H "Content-Type: application/json" -X POST -d '{"method":"eth_accounts","id":1}' 127.0.0.1:8545
```