Skip to content

Question about the Vin #102

Closed Answered by dr-orlovsky
cymqqqq asked this question in Q&A
Discussion options

You must be logged in to vote

Vin means the ordinal number of some transaction input. It is just a u32 integer. It is defined that way since it is the same type int as Vout.

Your comment

Like this?
"Vin" : [
{
"txid": "8adbca5e652c68f8f3c30ac658115bc4af395d0cc7e6beaea18168295c29d011",
"vout": 0,
"scriptSig": ""
}
]

does not make any sense to me

So what's the definition of the input_map?

The definition of the input map is exactly given in the code:

  pub input_map: Confined<BTreeMap<Vin, OpId>, 1, U16>,

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by cymqqqq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants