org.bcos.web3j.console.WalletRunner Maven / Gradle / Ivy
package org.bcos.web3j.console;
import org.bcos.web3j.utils.Console;
import static org.bcos.web3j.utils.Collection.tail;
/**
* Class for managing our wallet command line utilities.
*/
public class WalletRunner {
private static final String USAGE = "wallet create|update|send|fromkey";
public static void run(String[] args) {
main(args);
}
public static void main(String[] args) {
if (args.length < 1) {
Console.exitError(USAGE);
} else {
switch (args[0]) {
case "create":
WalletCreator.main(new String[] {});
break;
case "update":
WalletUpdater.main(tail(args));
break;
case "send":
WalletSendFunds.main(tail(args));
break;
case "fromkey":
KeyImporter.main(tail(args));
break;
default:
Console.exitError(USAGE);
}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy