1

With bitcoin, I'd use the JSON-RPC and keep track of transactions in blocks and have to build the UTXO database myself. Is it the same with ethereum?

2 Answers 2

5

There is no such thing as UTXOs with Ethereum, it's account based instead. You can query a nodes JSON-RPC to get balances, code, storage, etc. There are also many libraries (including Web3.js) to make this much easier.

2
  • I can query ANY account balance directly, regardless of whether or not I have the private keys?
    – Shamoon
    May 8, 2018 at 17:07
  • Correct. You do not need an accounts private key to query balances.
    – natewelch_
    May 8, 2018 at 17:34
1

Ethereum is not depended upon the unspent transaction output or UTXo. Instead, it depends on the state of the system. It only has account address linked with balance. For spending a certain amount, we only required an account with a balance greater than the amount to spend and its passphrase.[spending with wallet]

1
  • 1
    What adds your answer wrt to the other answer?
    – Briomkez
    Oct 4, 2018 at 6:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.