-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeploy.sh
executable file
·20 lines (12 loc) · 1.28 KB
/
deploy.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
tmux new -d -sEDBTestNode ../parity-ethereum/target/release/parity --chain dev-conf.json --reseal-min-period 0 --min-gas-price 0 -l INFO --jsonrpc-apis=all --config ./EDBTEST.toml
echo "Parity node booting ...."
sleep 3
echo "Parity node finished ..."
echo "Adding accounts ..."
# curl --data '{method:parity_setAccountName,params:[0x1337000000000000000000000000000000000000,Coinbase],id:1,jsonrpc:2.0}' -H Content-Type: application/json -X POST localhost:8545
curl --data '{"method":"parity_newAccountFromPhrase","params":["stylus outing overhand dime radial seducing harmless uselessly evasive tastiness eradicate imperfect",""],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545 &&
curl --data '{"method":"parity_setAccountName","params":["0x004385d8be6140e6f889833f68b51e17b6eacb29","Coinbase"],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545 &&
curl --data '{"method":"eth_accounts","params":[],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
echo "Unlocking account 'Coinbase'..."
curl --data '{"method":"personal_unlockAccount","params":["0x004385d8be6140e6f889833f68b51e17b6eacb29","", null],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545