I wanted to see a Transaction ID. And The type is fc::sha256.

So I inserted some code :

std::cout << "The transaction ID :   "  << trx->get_transaction().id() << std::endl;

But the log was printed to byte code. I expected that hex strings.

So how can i convert the sha256 to hex string?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.