I can help you understand Ethereum’s txid and vout values in the context of multisig transactions.
Understanding txid:
txid
(short for transaction ID) is a unique identifier assigned to each transaction on the Ethereum blockchain. It represents a single block on the chain, containing multiple input transactions.
When you create an input transaction using the multisig feature, it includes two entries: txin0
and txin1
. The txid
value for these entries is what we are interested in finding.
Finding the txid for an entry:
To find the txid
of an input transaction, you can use the following steps:
- Check if your multisig wallet has any pending transactions or unspent outputs (i.e.
txout
values). You can do this by looking at your wallet balance and checking for any unspent outputs.
- If there are no unspent results, you will need to check the blockchain for any blocks that have been mined since your wallet was last updated. The first block after a new transaction is confirmed on the Ethereum network usually contains the
txid' of the incoming transaction.
- Once you find thetxid
, you can look up the corresponding output value in the block's
txoutarray.
Finding vout values:
Thevoutvalues (short for output) are what you actually spend on your transaction. To find the
voutvalues, you will need to:
- Look at the blockchain for any blocks that have been mined since your wallet was last updated.
- Check thetxout
array of each block to see if it contains an output value with a corresponding
voutvalue.
Example of Presentation:
Let's say you want to spend 10 Ethereum (ETH) on your input transaction withtxidof
0x1234567890abcdef. You can follow these steps:
- Check for unspent results in your wallet:
- Check your balance and look for any unspent results.
- Check the blockchain for the first block after a new transaction (usually 10-15 blocks):
- Look at thetxout
array of the first block to see if it contains an output value with a corresponding
voutvalue.
Assuming you checked your wallet balance and found no unspent results, and then analyzed the blockchain for the first block after the new transaction (block 10), you will find that:
- Thetxid
of the incoming transaction is indeed
0x1234567890abcdef.
- In block 10, thevout
values are:
0x00000000000000001,
0x000000000000000002, etc.
- These correspond to the two unspent results that will be used in your spending transaction.
Note that the Ethereum blockchain is constantly updating, so it may take some time to find the correcttxidand
vout` values for a multisig incoming transaction.