Crypto Flexs
  • DIRECTORY
  • CRYPTO
    • ETHEREUM
    • BITCOIN
    • ALTCOIN
  • BLOCKCHAIN
  • EXCHANGE
  • ADOPTION
  • TRADING
  • HACKING
  • SLOT
  • CASINO
Crypto Flexs
  • DIRECTORY
  • CRYPTO
    • ETHEREUM
    • BITCOIN
    • ALTCOIN
  • BLOCKCHAIN
  • EXCHANGE
  • ADOPTION
  • TRADING
  • HACKING
  • SLOT
  • CASINO
Crypto Flexs
Home»BITCOIN NEWS»How to use BlockCypher’s test network with BitcoinJS-lib?
BITCOIN NEWS

How to use BlockCypher’s test network with BitcoinJS-lib?

By Crypto FlexsJanuary 13, 20241 Min Read
Facebook Twitter Pinterest LinkedIn Tumblr Email
How to use BlockCypher’s test network with BitcoinJS-lib?
Share
Facebook Twitter LinkedIn Pinterest Email

I am trying to create PSBT through BitcoinJS-lib.

I’m using BlockCypher’s internal testnet (bcy/test) because I have no choice. Literally every other testnet faucet I tested was broken.

When you create a new address using BlockCypher’s API, address, private, public and wif

(In their document wifBut it actually gives you one…)

Below is an example response:


  "private": "9125ea9f573e23ce178d98cc2ec2a78655bd030c14b525729a026d6570b411c8",
  "public": "03f1fbc34305c61d7638c449030c32a66eb36726c208fca9962923a98ca75d77fe",
  "address": "C1E96vE5GvKd5kXU4T4hhF6QioZzACrmdD",
  "wif": "BtCBNtS2noEXwm4rJi9nyiVbmZJMR9CEBMbF5Uz6JTSaR9EQn8jS"

However, none of this information can be used on its own. sign Functions in BitcoinJS-lib require a signer (KeyPair) class object..providing the private key on its own will not work.

in other words psbt.signInput(0, privateKey); The results are as follows: Error: Need Signer to sign input

I am KeyPair It comes from WIF, but because BitcoinJS-lib lacks WIF bitcoin.networks Configuration suitable for bcy/test It doesn’t always work out…

ECPair.fromWIF(wif, bitcoin.networks.testnet); // Error: Invalid network version
ECPair.fromWIF(wif, bitcoin.networks.main); // Error: Invalid network version
ECPair.fromWIF(wif); // Error: Invalid network version

The error message indicates that WIF is not possible on the network you are trying.

How do I make it? KeyPair for bcy/test ?

Share. Facebook Twitter Pinterest LinkedIn Tumblr Email

Related Posts

Bitfinex Alpha | While the market is waiting for the catalyst, BTC is integrated and leverage falls.

August 4, 2025

Is it really possible to sell Memecoins?

July 29, 2025

Big Bob Slot -Self -There fish, bite wins!

July 23, 2025
Add A Comment

Comments are closed.

Recent Posts

Did you miss the TRON ‘S (TRX) 100X? Ruvi AI (Ruvi)

August 9, 2025

Re -creation attack in ERC -721 -Ackee Blockchain

August 8, 2025

The New Bybit Web3 Is Here–Fueling On-Chain Thrills With $200,000 Up For Grabs

August 8, 2025

Stella (XLM) Eye 35% Rally and Ripple and SEC END 5 years legal battle

August 8, 2025

Builders Are Proving What’s Possible With CARV’s AI Stack

August 8, 2025

Caldera Announces Partnership With EigenCloud To Integrate EigenDA V2

August 7, 2025

Are Monero in danger? Five orphan blocks were found during the Cubic Mining War.

August 7, 2025

One Card To Seamlessly Bridge Web3 Assets And Real-World Spending

August 7, 2025

Coinbase’s USDC fee, encryption or other banks?

August 7, 2025

Protocol Update 001 -scale L1

August 7, 2025

As you challenge the mixed technology signal, OnDo Price Hovers challenges the August Bullish predictions.

August 7, 2025

Crypto Flexs is a Professional Cryptocurrency News Platform. Here we will provide you only interesting content, which you will like very much. We’re dedicated to providing you the best of Cryptocurrency. We hope you enjoy our Cryptocurrency News as much as we enjoy offering them to you.

Contact Us : Partner(@)Cryptoflexs.com

Top Insights

Did you miss the TRON ‘S (TRX) 100X? Ruvi AI (Ruvi)

August 9, 2025

Re -creation attack in ERC -721 -Ackee Blockchain

August 8, 2025

The New Bybit Web3 Is Here–Fueling On-Chain Thrills With $200,000 Up For Grabs

August 8, 2025
Most Popular

Bitcoin Price Prediction: BTC Surpasses $44,000 as BTC Whales Hit Multi-Month High and Analysts Say This Bitcoin Derivative Could Increase Tenfold.

February 8, 2024

Uniswap (UNI) v4 Hooks: Request for AVS Proposals from EigenLayer Research

June 29, 2024

The future of blockchain, AI and wearable technology

January 30, 2025
  • Home
  • About Us
  • Contact Us
  • Disclaimer
  • Privacy Policy
  • Terms and Conditions
© 2025 Crypto Flexs

Type above and press Enter to search. Press Esc to cancel.