#!/usr/bin/env python3
import os
import sys
import json
import stakerlib

if not os.path.isfile("list.json"):
    sys.exit('No list.json file present. Use genaddresses.py script to generate one.')

CHAIN = input('Please specify chain to import list.json keys to: ')

rpc_connection = stakerlib.def_credentials(CHAIN)

with open('list.json') as key_list:
    json_data = json.load(key_list)
    for i in json_data:
        print(i[3])
        try:
            rpc_connection.importprivkey(i[2])
        except:
            pass

de72bf2c7be018d2c8a3e5496d15fc8a9857f19a
<mask token>

<mask token>
if not os.path.isfile('list.json'):
    sys.exit(
        'No list.json file present. Use genaddresses.py script to generate one.'
        )
<mask token>
with open('list.json') as key_list:
    json_data = json.load(key_list)
    for i in json_data:
        print(i[3])
        try:
            rpc_connection.importprivkey(i[2])
        except:
            pass

<mask token>
if not os.path.isfile('list.json'):
    sys.exit(
        'No list.json file present. Use genaddresses.py script to generate one.'
        )
CHAIN = input('Please specify chain to import list.json keys to: ')
rpc_connection = stakerlib.def_credentials(CHAIN)
with open('list.json') as key_list:
    json_data = json.load(key_list)
    for i in json_data:
        print(i[3])
        try:
            rpc_connection.importprivkey(i[2])
        except:
            pass

import os
import sys
import json
import stakerlib
if not os.path.isfile('list.json'):
    sys.exit(
        'No list.json file present. Use genaddresses.py script to generate one.'
        )
CHAIN = input('Please specify chain to import list.json keys to: ')
rpc_connection = stakerlib.def_credentials(CHAIN)
with open('list.json') as key_list:
    json_data = json.load(key_list)
    for i in json_data:
        print(i[3])
        try:
            rpc_connection.importprivkey(i[2])
        except:
            pass

#!/usr/bin/env python3
import os
import sys
import json
import stakerlib

if not os.path.isfile("list.json"):
    sys.exit('No list.json file present. Use genaddresses.py script to generate one.')

CHAIN = input('Please specify chain to import list.json keys to: ')

rpc_connection = stakerlib.def_credentials(CHAIN)

with open('list.json') as key_list:
    json_data = json.load(key_list)
    for i in json_data:
        print(i[3])
        try:
            rpc_connection.importprivkey(i[2])
        except:
            pass
