File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed
Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -11,9 +11,20 @@ def main():
1111 STAKING_CONTRACT = sys .argv [2 ]
1212 FEE_RECIPIENT = sys .argv [3 ]
1313
14- is_mainnet = input ('Are you using mainnet? (y/n): ' ).lower () == 'y'
15- api_url = 'https://api.kiln.fi/v1/eth/onchain/v1/keys' if is_mainnet else 'https://api.testnet.kiln.fi/v1/eth/onchain/v1/keys'
1614
15+ api_url = ""
16+ chain = input ('Enter the chain (1 for mainnet, 2 for testnet, 3 for devnet): ' )
17+ if chain == '1' :
18+ api_url = 'https://api.kiln.fi/v1/eth/onchain/v1/keys'
19+ if chain == '2' :
20+ api_url = 'https://api.testnet.kiln.fi/v1/eth/onchain/v1/keys'
21+ if chain == '3' :
22+ api_url = 'https://api.devnet.kiln.fi/v1/eth/onchain/v1/keys'
23+ else :
24+ print ('Invalid chain. Please enter 1 for mainnet, 2 for testnet, or 3 for devnet.' )
25+ sys .exit (1 )
26+
27+
1728 api_token = input ('Enter the Kiln API token: ' )
1829
1930 total_count = input ('Enter the total number of validators to create: ' )
You can’t perform that action at this time.
0 commit comments