diff --git a/local_node.sh b/local_node.sh deleted file mode 100644 index 2d599c2..0000000 --- a/local_node.sh +++ /dev/null @@ -1,51 +0,0 @@ -#!/bin/bash - -./build/aircosmicd version - -rm -rf ./private/.ethermintapp - -./build/aircosmicd init demo --home ./private/.ethermintapp --chain-id air_1337-1 - -cat ./private/.ethermintapp/config/genesis.json - -./build/aircosmicd keys list \ - --home ./private/.ethermintapp \ - --keyring-backend test - -./build/aircosmicd keys add alice \ - --home ./private/.ethermintapp \ - --keyring-backend test - -./build/aircosmicd keys show alice \ - --home ./private/.ethermintapp \ - --keyring-backend test - - -grep bond_denom ./private/.ethermintapp/config/genesis.json - -./build/aircosmicd add-genesis-account alice 100000000stake \ - --home ./private/.ethermintapp \ - --keyring-backend test - -grep -A 10 balances ./private/.ethermintapp/config/genesis.json - -./build/aircosmicd gentx alice 70000000stake \ - --home ./private/.ethermintapp \ - --keyring-backend test \ - --chain-id air_1337-1 - - -./build/aircosmicd collect-gentxs \ - --home ./private/.ethermintapp - - -./build/aircosmicd start \ - --home ./private/.ethermintapp - - -# NEW CODES - -./build/aircosmicd keys unsafe-export-eth-key mykey\ - --home ./private/.ethermintapp\ - --keyring-backend test - diff --git a/privateKeyEVM.sh b/privateKeyEVM.sh new file mode 100644 index 0000000..e9bd016 --- /dev/null +++ b/privateKeyEVM.sh @@ -0,0 +1,7 @@ +#!/bin/bash +command -v jq > /dev/null 2>&1 || { echo >&2 "jq not installed. More info: https://stedolan.github.io/jq/download/"; exit 1; } +CONFIG_FILE="../config/config.json" +KEY=$(jq -r '.chainInfo.key' $CONFIG_FILE) + +./build/aircosmicd keys unsafe-export-eth-key $KEY +