You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
384 B

#include <libjsconsole/JSRemoteConsole.h>
using namespace std;
using namespace dev;
using namespace dev::eth;
int main(int argc, char** argv)
{
if (argc != 2)
{
cout << "You must provide remote url\n";
cout << "eg:\n";
cout << "./ethconsole http://localhost:8545\n";
return 1;
}
JSRemoteConsole console(argv[1]);
while (true)
console.readExpression();
return 0;
}