I notice that vin has a value field denoting the amount of money being spent from the input transaction. Am I correct that this is here for convenience and must equal the value of the specified transaction output?

The only other case I can think of is splitting the same transaction output into two transaction inputs, but I don't see the point of this.

"vin": [{

1 Answer 1


That field in the RPC response is by definition just information about the output being spent, so yes, it is always going to be equal.

As for whether it's necessary - no, of course not. But the RPC in the first place exists because of convenience.

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.