Understanding the Bitcoin Headquarters Fundrawtransaction
: input weights
When using the Cli Bitcoin Core (BTC), in particular the “Fundrawtransation” command, you are probably trying to add non -standard transaction entrances. However, when determining the “Input_weights” parameter, it seems that there is a problem finding the right wallet outputs.
What are the input scales?
Input scales refer to the amount of bitcoins, which can be paid as fees for transactions covering specific input data. This is crucial in creating non -standard transactions, in which only specific results are generated from other programs. The “Input_weights” parameter allows you to determine these fees, ensuring that your transaction has sufficient funds.
Problem with the recommendation “Fundrawtransaction”
When using Fundravtransaction
, the exit is the object of Bitcoin transactions, which includes various fields, such as ‘Inputs’, ‘Output’ and ‘Fee’. However, when searching for specific results from other programs in your wallet, you will usually find that only some of these exits were taken into account. This is because:
- Only specific outputs are generated : If the program generates outputs with a specific prefix or a set of addresses, you will not see them in the “Inputs” field.
- Exits cannot be taken into account due to the portfolio settings : Configuration of the portfolio may exclude some outputs by default.
Finding the correct input data
To add non -standard input data to the transaction using “Fundravtransaction”, you must:
- Create a new transaction : Use ‘Gettransaction’ or ‘Sendrawtransaction’ to create a new, empty transaction.
2.
After finding the correct input, you can use it by adding the right exit to the transaction using “Addoutputor" Addinput "methods.
Sample code
Here is an example of how you can use "Fundravtransaction" to add non -standard input data:
Bash
Bitcoin -Cli Gettransaction -Pid
-tx_hash
-From
-out << EOF
Eof
`
In this example, “Gettransaction” is used to find transactions with a specific PID address, shortcut and sender. The resulting output data contains the necessary information to add custom inputs.
best practices
- Check the portfolio settings : Make sure that the portfolio configuration excludes unwanted outputs or addresses.
2.
- Test and check the validation : Test the creation of transactions to make sure it meets your requirements.
Understanding the “Input_Weights” parameter, creating a new transaction, finding correct input data and adding custom outings, you should be able to effectively create Bitcoin transactions with specific outputs generated from other programs in the wallet.
Application
In this article, we examined the input parameter of the “Fundravtransation` Command” and showed how to use it to add custom entries to Bitcoin transaction. Understanding these concepts and implementing the best practices of finding correct input data, you can create efficient and reliable bitcoin transactions with specific results generated from other programs in the portfolio.
Additional resources
- [Basic documentation Bitcoin: Transactional objects] (
- [Basic documentation Bitcoin: create a new transaction] (