Skip to content

jjohnson5253/test-cpp-httplib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

test-cpp-httplib

Test of the cpp-httplib library. This will read the latest block number on Ethereum.

Dependencies

Linux

sudo apt-get install libssl-dev
  • Comment out the OS_WINDOWS macro in main.cpp

Windows

  • Follow MSYS2 installation to get g++ compiler on windows

Usage

Linux

g++ main.cpp -lcrypto -lssl
./a.out

Windows

g++ main.cpp -lwsock32 -lWs2_32 -lcrypt32 -lcrypto -lssl
a.exe

Should see a result like this:

{"jsonrpc":"2.0","id":1,"result":"0xd1369c"}

where "result" is the latest blocknumber on ethereum

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages