Link to Github project: EOS.IO-cpp-client
Introduction
EOSIO is a blockchain that aims to :
EOSIO is designed for enterprise-grade use cases and built for both public and private blockchain deployments.
EOSIO
This blockchain enable easy decentralized application creation.
What is the EOS.IO-cpp-client project about?
This project aims to have a 100% standalone EOS client that can: build, sign, and send transactions to an EOS node. This program also demonstrates that it is possible to run a client application in C++ for the EOSIO blockchain.
How does it work?
In EOS.IO, the client application needs to follow these steps :
- Initialize variables and objects (JSON object, cryptography object, etc.)
- Retrieve node information:
- Get the node last irreversible block number ID: is the identifier of the last immutable block that has been pushed to the blockchain ledger
- Get the node chain ID: an identifier for the EOS node
- Get the last irreversible ref block prefix and build expiration based on block timestamp
- Get the transaction smart contract ABI (and cache it)
- Build the transaction:
- Transform the transaction action (a JSON string object describing the inputs for the smart contract action) into a binary format
- Pack the transaction with all previous data (transaction JSON to binary)
- Built a signature with the transaction binary
- Append signature to the transaction
- Send the transaction
After a quick profiling of the program with valdgrind you’d get:

Leave a Reply