0

The transaction object in Ethereum must have a number of fields, ie, nonce, gasPrice, to, data, value, gasLimit. In the Ethereum yellow paper, it specifies these fields, but doesn't go into specifics. For example, it just says nonce must be a scalar value.

Is there a more specific specification? Like, must nonce be a u16, u128, u256, or some other scalar value? Does it matter?

1 Answer 1

0

The official client go-ethereum is a great source of information if you don't find what you are looking for in the papers.

You can find the definition of the tx data here where it states that nonce is of type uint64. You can check for almost every other field that you are interested in at the same place.

1
  • Hmm, I guess then there is no specific scalar value? I noticed that a separate library uses U256 as the type for nonce.
    – vw1262
    Commented Feb 25, 2022 at 21:47

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.