docker pull ethereum/client-go:latest
mkdir ~/.geth-ropsten
docker run --name eth -p 8546:8546 -v ~/.geth-ropsten:/geth -it \
ethereum/client-go --testnet --syncmode light --ws \
--wsaddr 0.0.0.0 --wsorigins="*" --datadir /geth --ipcdisable
INFO [07-02|18:18:23.681] Dropping default light client cache provided=1024 updated=128
INFO [07-02|18:18:23.682] Maximum peer count ETH=0 LES=100 total=50
INFO [07-02|18:18:23.682] Smartcard socket not found, disabling err="stat /run/pcscd/pcscd.comm: no such file or directory"
ERROR[07-02|18:18:23.682] Failed to enumerate USB devices hub=ledger vendor=11415 failcount=1 err="failed to initialize libusb: libusb: unknown error [code -99]"
ERROR[07-02|18:18:23.682] Failed to enumerate USB devices hub=trezor vendor=21324 failcount=1 err="failed to initialize libusb: libusb: unknown error [code -99]"
ERROR[07-02|18:18:23.682] Failed to enumerate USB devices hub=trezor vendor=4617 failcount=1 err="failed to initialize libusb: libusb: unknown error [code -99]"
ERROR[07-02|18:18:23.682] Failed to enumerate USB devices hub=ledger vendor=11415 failcount=2 err="failed to initialize libusb: libusb: unknown error [code -99]"
ERROR[07-02|18:18:23.682] Failed to enumerate USB devices hub=trezor vendor=21324 failcount=2 err="failed to initialize libusb: libusb: unknown error [code -99]"
ERROR[07-02|18:18:23.682] Failed to enumerate USB devices hub=trezor vendor=4617 failcount=2 err="failed to initialize libusb: libusb: unknown error [code -99]"
INFO [07-02|18:18:23.683] Starting peer-to-peer node instance=Geth/v1.9.0-unstable-32273df0-20190702/linux-amd64/go1.12.6
INFO [07-02|18:18:23.683] Allocated cache and file handles database=/geth/geth/lightchaindata cache=64.00MiB handles=524288
INFO [07-02|18:18:23.794] Writing custom genesis block
INFO [07-02|18:18:23.800] Persisted trie from memory database nodes=355 size=50.67KiB time=1.070506ms gcnodes=0 gcsize=0.00B gctime=0s livenodes=1 livesize=0.00B
INFO [07-02|18:18:23.800] Initialised chain configuration config="{ChainID: 3 Homestead: 0 DAO: <nil> DAOSupport: true EIP150: 0 EIP155: 10 EIP158: 10 Byzantium: 1700000 Constantinople: 4230000 Petersburg: 4939394 Engine: ethash}"
INFO [07-02|18:18:23.800] Disk storage enabled for ethash caches dir=/geth/geth/ethash count=3
INFO [07-02|18:18:23.800] Disk storage enabled for ethash DAGs dir=/root/.ethash count=2
INFO [07-02|18:18:23.803] Added trusted checkpoint block=5308415 hash=5378af…cececc
INFO [07-02|18:18:23.803] Loaded most recent local header number=0 hash=419410…ca4a2d td=1048576 age=50y2mo2w
INFO [07-02|18:18:23.803] Checkpoint registrar is not enabled
INFO [07-02|18:18:23.911] UDP listener up net=enode://bf7aeb332d542b482a5200d80bcb4b1d6f2f95d126b397b96b8be5b849ddb25ae7d637f4bc02931adf9e6434b084c604c00223cd482daed14c3ccb9e27b54fd0@[::]:30303
WARN [07-02|18:18:23.912] Light client mode is an experimental feature
INFO [07-02|18:18:23.913] New local node record seq=1 id=f3031ca4ee3e83a3 ip=127.0.0.1 udp=30303 tcp=30303
INFO [07-02|18:18:23.913] Started P2P networking self=enode://bf7aeb332d542b482a5200d80bcb4b1d6f2f95d126b397b96b8be5b849ddb25ae7d637f4bc02931adf9e6434b084c604c00223cd482daed14c3ccb9e27b54fd0@127.0.0.1:30303
INFO [07-02|18:18:23.913] WebSocket endpoint opened url=ws://[::]:8546
ERROR[07-02|18:18:24.683] Failed to enumerate USB devices hub=ledger vendor=11415 failcount=3 err="failed to initialize libusb: libusb: unknown error [code -99]"
ERROR[07-02|18:18:24.683] Failed to enumerate USB devices hub=trezor vendor=4617 failcount=3 err="failed to initialize libusb: libusb: unknown error [code -99]"
ERROR[07-02|18:18:24.684] Failed to enumerate USB devices hub=trezor vendor=21324 failcount=3 err="failed to initialize libusb: libusb: unknown error [code -99]"
mkdir ~/.chainlink-ropsten
echo "ROOT=/chainlink
LOG_LEVEL=debug
ETH_CHAIN_ID=3
MIN_OUTGOING_CONFIRMATIONS=2
LINK_CONTRACT_ADDRESS=0x20fe562d797a42dcb3399062ae9546cd06f63280
CHAINLINK_TLS_PORT=0
SECURE_COOKIES=false
ALLOW_ORIGINS=*" > ~/.chainlink-ropsten/.env
ETH_CONTAINER_IP=$(sudo docker inspect --format '{{ .NetworkSettings.IPAddress }}' $(sudo docker ps -f name=eth -q))
echo "ETH_URL=ws://$ETH_CONTAINER_IP:8546" >> ~/.chainlink-ropsten/.env
Command
cat ~/.chainlink-ropsten/.env
Output
ROOT=/chainlink
LOG_LEVEL=debug
ETH_CHAIN_ID=3
MIN_OUTGOING_CONFIRMATIONS=2
LINK_CONTRACT_ADDRESS=0x20fe562d797a42dcb3399062ae9546cd06f63280
CHAINLINK_TLS_PORT=0
SECURE_COOKIES=false
ALLOW_ORIGINS=*
ETH_URL=ws://172.17.0.2:8546
Commands
cd ~/.chainlink-ropsten
docker pull smartcontract/chainlink:latest
docker run -p 6688:6688 -v ~/.chainlink-ropsten:/chainlink -it --env-file=.env smartcontract/chainlink local n
Output
2019-07-02T18:32:59Z [INFO] Starting Chainlink Node 0.6.2 at commit 5f748959380bc0dffea6e8795fd2f2f6ad3133e5 cmd/local_client.go:25
2019-07-02T18:32:59Z [INFO] SGX enclave *NOT* loaded cmd/enclave.go:11
2019-07-02T18:32:59Z [INFO] This version of chainlink was not built with support for SGX tasks cmd/enclave.go:12
2019-07-02T18:32:59Z [INFO] Locking sqlite3 for exclusive access with 500ms timeout orm/orm.go:61
2019-07-02T18:32:59Z [INFO] [sql /go/src/github.com/smartcontractkit/chainlink/vendor/gopkg.in/gormigrate.v1/gormigrate.go:372 94.176µs SELECT count(*) FROM "migrations" WHERE (id = ?) [0] 0] orm/log_wrapper.go:10
2019-07-02T18:32:59Z [INFO] [sql /go/src/github.com/smartcontractkit/chainlink/vendor/gopkg.in/gormigrate.v1/gormigrate.go:372 54.375µs SELECT count(*) FROM "migrations" WHERE (id = ?) [1559081901] 0] orm/log_wrapper.go:10
2019-07-02T18:32:59Z [INFO] [sql /go/src/github.com/smartcontractkit/chainlink/vendor/gopkg.in/gormigrate.v1/gormigrate.go:372 56.733µs SELECT count(*) FROM "migrations" WHERE (id = ?) [1559767166] 0] orm/log_wrapper.go:10
2019-07-02T18:32:59Z [INFO] [sql /go/src/github.com/smartcontractkit/chainlink/vendor/gopkg.in/gormigrate.v1/gormigrate.go:372 54.711µs SELECT count(*) FROM "migrations" WHERE (id = ?) [1560433987] 0] orm/log_wrapper.go:10
2019-07-02T18:32:59Z [INFO] [sql /go/src/github.com/smartcontractkit/chainlink/vendor/gopkg.in/gormigrate.v1/gormigrate.go:372 57.095µs SELECT count(*) FROM "migrations" WHERE (id = ?) [1560791143] 0] orm/log_wrapper.go:10
2019-07-02T18:32:59Z [INFO] [sql /go/src/github.com/smartcontractkit/chainlink/vendor/gopkg.in/gormigrate.v1/gormigrate.go:372 61.431µs SELECT count(*) FROM "migrations" WHERE (id = ?) [1560881846] 0] orm/log_wrapper.go:10
2019-07-02T18:32:59Z [INFO] [sql /go/src/github.com/smartcontractkit/chainlink/vendor/gopkg.in/gormigrate.v1/gormigrate.go:372 45.579µs SELECT count(*) FROM "migrations" WHERE (id = ?) [1560886530] 0] orm/log_wrapper.go:10
2019-07-02T18:33:10Z [INFO] Unlocked account 0x093A255Ae4710C2fEaA990969169E2d8bFEe4a5a store/key_store.go:48 address=0x093A255Ae4710C2fEaA990969169E2d8bFEe4a5a
Enter API Email: a@b.com
Error creating API user: Must enter a password with 8 - 1028 characters
Enter API Email: faelcavalcanti@gmail.com
Error creating API user: Must enter a password with 8 - 1028 characters
Enter API Email: faelcavalcanti@gmail.com
2019-07-02T18:34:05Z [INFO] API exposed for user faelcavalcanti@gmail.com cmd/local_client.go:57
2019-07-02T18:34:05Z [INFO] Started StatsPusher synchronization/stats_pusher.go:75
2019-07-02T18:34:05Z [DEBUG] Entered StatsPusher event loop synchronization/stats_pusher.go:105
2019-07-02T18:34:05Z [DEBUG] Entered StatsPusher push loop synchronization/stats_pusher.go:125
2019-07-02T18:34:05Z [INFO] Connecting to node ws://172.17.0.2:8546 in 0s services/head_tracker.go:182
2019-07-02T18:34:05Z [DEBUG] Environment variables
ACCOUNT_ADDRESS: 0x093A255Ae4710C2fEaA990969169E2d8bFEe4a5a
ALLOW_ORIGINS: *
BRIDGE_RESPONSE_URL:
ETH_CHAIN_ID: 3
CLIENT_NODE_URL: http://localhost:6688
CHAINLINK_DEV: false
DATABASE_TIMEOUT: 500ms
ETH_URL: ws://172.17.0.2:8546
ETH_GAS_BUMP_THRESHOLD: 12
ETH_GAS_BUMP_WEI: 5000000000
ETH_GAS_PRICE_DEFAULT: 20000000000
JSON_CONSOLE: false
LINK_CONTRACT_ADDRESS: 0x20fe562d797a42dcb3399062ae9546cd06f63280
EXPLORER_URL:
LOG_LEVEL: debug
LOG_TO_DISK: true
MINIMUM_CONTRACT_PAYMENT: 1.000000000000000000
MINIMUM_REQUEST_EXPIRATION: 300
MIN_INCOMING_CONFIRMATIONS: 3
MIN_OUTGOING_CONFIRMATIONS: 2
ORACLE_CONTRACT_ADDRESS:
CHAINLINK_PORT: 6688
REAPER_EXPIRATION: 240h0m0s
ROOT: /chainlink
SESSION_TIMEOUT: 15m0s
CHAINLINK_TLS_HOST:
CHAINLINK_TLS_PORT: 0
cmd/local_client.go:137
[GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
- using env: export GIN_MODE=release
- using code: gin.SetMode(gin.ReleaseMode)
2019-07-02T18:34:05Z [DEBUG] GET /debug/vars --> github.com/smartcontractkit/chainlink/vendor/github.com/gin-contrib/expvar.Handler.func1 (9 handlers) web/router.go:39
2019-07-02T18:34:05Z [DEBUG] POST /sessions --> github.com/smartcontractkit/chainlink/core/web.(*SessionsController).Create-fm (9 handlers) web/router.go:39
2019-07-02T18:34:05Z [DEBUG] DELETE /sessions --> github.com/smartcontractkit/chainlink/core/web.(*SessionsController).Destroy-fm (9 handlers) web/router.go:39
2019-07-02T18:34:05Z [DEBUG] PATCH /v2/runs/:RunID --> github.com/smartcontractkit/chainlink/core/web.(*JobRunsController).Update-fm (8 handlers) web/router.go:39
2019-07-02T18:34:05Z [DEBUG] POST /v2/service_agreements --> github.com/smartcontractkit/chainlink/core/web.(*ServiceAgreementsController).Create-fm (8 handlers) web/router.go:39
2019-07-02T18:34:05Z [DEBUG] PATCH /v2/user/password --> github.com/smartcontractkit/chainlink/core/web.(*UserController).UpdatePassword-fm (9 handlers) web/router.go:39
2019-07-02T18:34:05Z [DEBUG] GET /v2/user/balances --> github.com/smartcontractkit/chainlink/core/web.(*UserController).AccountBalances-fm (9 handlers) web/router.go:39
2019-07-02T18:34:05Z [DEBUG] POST /v2/external_initiators --> github.com/smartcontractkit/chainlink/core/web.(*ExternalInitiatorsController).Create-fm (9 handlers) web/router.go:39
2019-07-02T18:34:05Z [DEBUG] DELETE /v2/external_initiators/:AccessKey --> github.com/smartcontractkit/chainlink/core/web.(*ExternalInitiatorsController).Destroy-fm (9 handlers) web/router.go:39
2019-07-02T18:34:05Z [DEBUG] GET /v2/specs --> github.com/smartcontractkit/chainlink/core/web.paginatedRequest.func1 (9 handlers) web/router.go:39
2019-07-02T18:34:05Z [DEBUG] GET /v2/specs/:SpecID --> github.com/smartcontractkit/chainlink/core/web.(*JobSpecsController).Show-fm (9 handlers) web/router.go:39
2019-07-02T18:34:05Z [DEBUG] DELETE /v2/specs/:SpecID --> github.com/smartcontractkit/chainlink/core/web.(*JobSpecsController).Destroy-fm (9 handlers) web/router.go:39
2019-07-02T18:34:05Z [DEBUG] GET /v2/runs --> github.com/smartcontractkit/chainlink/core/web.paginatedRequest.func1 (9 handlers) web/router.go:39
2019-07-02T18:34:05Z [DEBUG] GET /v2/runs/:RunID --> github.com/smartcontractkit/chainlink/core/web.(*JobRunsController).Show-fm (9 handlers) web/router.go:39
2019-07-02T18:34:05Z [DEBUG] GET /v2/service_agreements/:SAID --> github.com/smartcontractkit/chainlink/core/web.(*ServiceAgreementsController).Show-fm (9 handlers) web/router.go:39
2019-07-02T18:34:05Z [DEBUG] GET /v2/bridge_types --> github.com/smartcontractkit/chainlink/core/web.paginatedRequest.func1 (9 handlers) web/router.go:39
2019-07-02T18:34:05Z [DEBUG] POST /v2/bridge_types --> github.com/smartcontractkit/chainlink/core/web.(*BridgeTypesController).Create-fm (9 handlers) web/router.go:39
2019-07-02T18:34:05Z [DEBUG] GET /v2/bridge_types/:BridgeName --> github.com/smartcontractkit/chainlink/core/web.(*BridgeTypesController).Show-fm (9 handlers) web/router.go:39
2019-07-02T18:34:05Z [DEBUG] PATCH /v2/bridge_types/:BridgeName --> github.com/smartcontractkit/chainlink/core/web.(*BridgeTypesController).Update-fm (9 handlers) web/router.go:39
2019-07-02T18:34:05Z [DEBUG] DELETE /v2/bridge_types/:BridgeName --> github.com/smartcontractkit/chainlink/core/web.(*BridgeTypesController).Destroy-fm (9 handlers) web/router.go:39
2019-07-02T18:34:05Z [DEBUG] POST /v2/withdrawals --> github.com/smartcontractkit/chainlink/core/web.(*WithdrawalsController).Create-fm (9 handlers) web/router.go:39
2019-07-02T18:34:05Z [DEBUG] POST /v2/transfers --> github.com/smartcontractkit/chainlink/core/web.(*TransfersController).Create-fm (9 handlers) web/router.go:39
2019-07-02T18:34:05Z [DEBUG] GET /v2/config --> github.com/smartcontractkit/chainlink/core/web.(*ConfigController).Show-fm (9 handlers) web/router.go:39
2019-07-02T18:34:05Z [DEBUG] GET /v2/tx_attempts --> github.com/smartcontractkit/chainlink/core/web.paginatedRequest.func1 (9 handlers) web/router.go:39
2019-07-02T18:34:05Z [DEBUG] GET /v2/transactions --> github.com/smartcontractkit/chainlink/core/web.paginatedRequest.func1 (9 handlers) web/router.go:39
2019-07-02T18:34:05Z [DEBUG] GET /v2/transactions/:TxHash --> github.com/smartcontractkit/chainlink/core/web.(*TransactionsController).Show-fm (9 handlers) web/router.go:39
2019-07-02T18:34:05Z [DEBUG] DELETE /v2/bulk_delete_runs --> github.com/smartcontractkit/chainlink/core/web.(*BulkDeletesController).Delete-fm (9 handlers) web/router.go:39
2019-07-02T18:34:05Z [DEBUG] POST /v2/specs/:SpecID/runs --> github.com/smartcontractkit/chainlink/core/web.(*JobRunsController).Create-fm (9 handlers) web/router.go:39
2019-07-02T18:34:05Z [DEBUG] POST /v2/specs --> github.com/smartcontractkit/chainlink/core/web.(*JobSpecsController).Create-fm (9 handlers) web/router.go:39
2019-07-02T18:34:05Z [WARN] 0 ETH Balance. Chainlink node not fully functional, please deposit ETH into your address: 0x093A255Ae4710C2fEaA990969169E2d8bFEe4a5a cmd/local_client.go:115
2019-07-02T18:34:05Z [INFO] LINK Balance for 0x093A255Ae4710C2fEaA990969169E2d8bFEe4a5a: 0.000000000000000000 cmd/local_client.go:128 address=0x093A255Ae4710C2fEaA990969169E2d8bFEe4a5a balance=0.000000000000000000
2019-07-02T18:34:05Z [INFO] Connected to ethereum node ws://172.17.0.2:8546 services/head_tracker.go:191
2019-07-02T18:34:05Z [INFO] Listening and serving HTTP on port 6688 cmd/client.go:107
Link print image https://photos.app.goo.gl/vTfy6NUW2rca6cP19
Link from another snippet here.