• About
  • Privacy Poilicy
  • Disclaimer
  • Contact
CoinInsight
  • Home
  • Bitcoin
  • Ethereum
  • Regulation
  • Market
  • Blockchain
  • Ripple
  • Future of Crypto
  • Crypto Mining
No Result
View All Result
  • Home
  • Bitcoin
  • Ethereum
  • Regulation
  • Market
  • Blockchain
  • Ripple
  • Future of Crypto
  • Crypto Mining
No Result
View All Result
CoinInsight
No Result
View All Result
Home Bitcoin

How do I calculate transaction charge for name to createpsbt()?

Coininsight by Coininsight
June 13, 2025
in Bitcoin
0
How do I calculate transaction charge for name to createpsbt()?
189
SHARES
1.5k
VIEWS
Share on FacebookShare on Twitter


When my consumer invokes my app, he passes as an enter parameter the specified worth of the TX charge in satoshis per byte. I create a PSBT by calling createpsbt(). I exert full management over the dedication of inputs and outputs. For instance, I do not name walletcreatefundedpsbt(), as a result of I do not need bitcoind to pick out inputs on my behalf. I’ve a rooster and egg drawback in that I must name createpsbt() with a purpose to decide the dimensions of the TX in bytes, however I must specify the charge quantity earlier than the decision to createpsbt(). The most effective resolution that I can consider is to execute a dummy name to createpsbt() utilizing a dummy charge worth, then measure the dimensions of the TX, then do an actual name to createpsbt() after accurately calculating the charge quantity. Is there a greater approach?

Related articles

Coinbase CPO Rejects Claims Of Opposing Bitcoin Tax Aid As Jack Dorsey Calls for Readability From Brian Armstrong

Coinbase CPO Rejects Claims Of Opposing Bitcoin Tax Aid As Jack Dorsey Calls for Readability From Brian Armstrong

March 12, 2026
How Governments Use Crypto When Lower Off From SWIFT – UseTheBitcoin

How Governments Use Crypto When Lower Off From SWIFT – UseTheBitcoin

March 12, 2026

Edit: I wish to spend all UTXOs. I would like two outputs, one to obtain a set quantity, the opposite to obtain change much less the charge. I’ve tried many incantations, I can not get it to work. This is my newest try:

raw_psbt = rpc.walletcreatefundedpsbt(
    # all UTXOs, as returned by listunspent():
    inputs,
    # one recipient: [ { addr : amount } ]
    outputs,
    0,  # locktime
    {
        "replaceable" : True,
        # I would really like for the change much less the charge to go right here:
        "changeAddress" : xxx,
        "includeWatching" : True,
        "feeRate" : 0.005,
    }
)

This fails with Signing transaction failed (-4). Any thought what I am doing incorrect?

Edit #2: I can not use walletcreatefundedpsbt() as recommended beneath to create the PSBT, as a result of that operate requires that its inputs be “solvable”, which isn’t the case in my surroundings. Extra information at this hyperlink:

Errors with walletcreatefundedpsbt & non-solvable UTXOs

So my unique query stays unresolved at this level.

Edit #3: So I requested on Slack. The issue is that our UTXOs are 1) not “solvable” and a pair of) can’t be expressed within the descriptor language, so Bitcoin Core has no strategy to calculate the TX measurement earlier than the TX is signed. Apparently I must calculated it manually as defined within the hooked up screenshot.slack chat

Tags: calculatecallcreatepsbtfeeTransaction
Share76Tweet47

Related Posts

Coinbase CPO Rejects Claims Of Opposing Bitcoin Tax Aid As Jack Dorsey Calls for Readability From Brian Armstrong

Coinbase CPO Rejects Claims Of Opposing Bitcoin Tax Aid As Jack Dorsey Calls for Readability From Brian Armstrong

by Coininsight
March 12, 2026
0

Coinbase Chief Coverage Officer Faryar Shirzad straight denied allegations that the corporate is lobbying in opposition to a proposed de...

How Governments Use Crypto When Lower Off From SWIFT – UseTheBitcoin

How Governments Use Crypto When Lower Off From SWIFT – UseTheBitcoin

by Coininsight
March 12, 2026
0

Key TakeawaysSanctions from conventional monetary organisations comparable to SWIFT and regulators have led many governments and international locations to evade...

testnet – I can not ship a transaction from electrums cli

testnet – I can not ship a transaction from electrums cli

by Coininsight
March 11, 2026
0

I'm making an attempt to ship a transaction within the cli utilizing electrum with the command ~$ electrum --testnet payto...

U.S. Senators File Amendments on Crypto Invoice

Polymarket Places January US Authorities Shutdown Odds At 79%

by Coininsight
March 11, 2026
0

Be part of Our Telegram channel to remain updated on breaking information protection Polymarket buyers are actually putting a 79%...

Dogecoin Worth Evaluation: X Cash Nears Launch With out DOGE

Dogecoin Worth Evaluation: X Cash Nears Launch With out DOGE

by Coininsight
March 11, 2026
0

Elon Musk confirmed this week that X Cash is coming into “early public entry” in April, marking the primary concrete...

Load More
  • Trending
  • Comments
  • Latest
MetaMask Launches An NFT Reward Program – Right here’s Extra Data..

MetaMask Launches An NFT Reward Program – Right here’s Extra Data..

July 24, 2025
Finest Bitaxe Gamma 601 Overclock Settings & Tuning Information

Finest Bitaxe Gamma 601 Overclock Settings & Tuning Information

November 26, 2025
Naval Ravikant’s Web Price (2025)

Naval Ravikant’s Web Price (2025)

September 21, 2025
Haedal token airdrop information

Haedal token airdrop information

April 24, 2025
Kuwait bans Bitcoin mining over power issues and authorized violations

Kuwait bans Bitcoin mining over power issues and authorized violations

2
The Ethereum Basis’s Imaginative and prescient | Ethereum Basis Weblog

The Ethereum Basis’s Imaginative and prescient | Ethereum Basis Weblog

2
Unchained Launches Multi-Million Greenback Bitcoin Legacy Mission

Unchained Launches Multi-Million Greenback Bitcoin Legacy Mission

1
Earnings Preview: Microsoft anticipated to report larger Q3 income, revenue

Earnings Preview: Microsoft anticipated to report larger Q3 income, revenue

1
Coinbase CPO Rejects Claims Of Opposing Bitcoin Tax Aid As Jack Dorsey Calls for Readability From Brian Armstrong

Coinbase CPO Rejects Claims Of Opposing Bitcoin Tax Aid As Jack Dorsey Calls for Readability From Brian Armstrong

March 12, 2026
Crypto betting agency Stake secures naming rights to Sauber’s F1 Group

Crypto betting agency Stake secures naming rights to Sauber’s F1 Group

March 12, 2026
Three extra ships struck within the Gulf as Iran warns of oil hitting $200

Three extra ships struck within the Gulf as Iran warns of oil hitting $200

March 12, 2026
FCPA Enforcement Isn’t Lifeless; a Former Coal Govt Discovered Out the Exhausting Approach

FCPA Enforcement Isn’t Lifeless; a Former Coal Govt Discovered Out the Exhausting Approach

March 12, 2026

CoinInight

Welcome to CoinInsight.co.uk – your trusted source for all things cryptocurrency! We are passionate about educating and informing our audience on the rapidly evolving world of digital assets, blockchain technology, and the future of finance.

Categories

  • Bitcoin
  • Blockchain
  • Crypto Mining
  • Ethereum
  • Future of Crypto
  • Market
  • Regulation
  • Ripple

Recent News

Coinbase CPO Rejects Claims Of Opposing Bitcoin Tax Aid As Jack Dorsey Calls for Readability From Brian Armstrong

Coinbase CPO Rejects Claims Of Opposing Bitcoin Tax Aid As Jack Dorsey Calls for Readability From Brian Armstrong

March 12, 2026
Crypto betting agency Stake secures naming rights to Sauber’s F1 Group

Crypto betting agency Stake secures naming rights to Sauber’s F1 Group

March 12, 2026
  • About
  • Privacy Poilicy
  • Disclaimer
  • Contact

© 2025- https://coininsight.co.uk/ - All Rights Reserved

No Result
View All Result
  • Home
  • Bitcoin
  • Ethereum
  • Regulation
  • Market
  • Blockchain
  • Ripple
  • Future of Crypto
  • Crypto Mining

© 2025- https://coininsight.co.uk/ - All Rights Reserved

Social Media Auto Publish Powered By : XYZScripts.com
Verified by MonsterInsights