Adapting for Ethereum as a library style:
 + API for submit transaction