Ethereum  PoC-8
The C++ Implementation of Ethereum
CommonJS.cpp File Reference
#include "CommonJS.h"

Go to the source code of this file.

Namespaces

 dev
 
 dev::eth
 

Functions

std::string dev::prettyU256 (u256 _n, bool _abridged=true)
 Convert u256 into user-readable string. Returns int/hex value of 64 bits int, hex of 160 bits FixedHash. As a fallback try to handle input as h256. More...
 
BlockNumber dev::eth::jsToBlockNumber (std::string const &_js)
 Convert to a block number, a bit like jsToInt, except that it correctly recognises "pending" and "latest". More...