Crypto Flexs
  • DIRECTORY
  • CRYPTO
    • ETHEREUM
    • BITCOIN
    • ALTCOIN
  • BLOCKCHAIN
  • EXCHANGE
  • ADOPTION
  • TRADING
  • HACKING
  • SLOT
Crypto Flexs
  • DIRECTORY
  • CRYPTO
    • ETHEREUM
    • BITCOIN
    • ALTCOIN
  • BLOCKCHAIN
  • EXCHANGE
  • ADOPTION
  • TRADING
  • HACKING
  • SLOT
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

Bitcoin can be traded sideways for two weeks before raising the next leg.

May 16, 2025

It starts the flash launch flash 2.0 and simplifies Bitcoin payment for business around the world.

May 15, 2025

Binance: 80%of Asian encryption users adopt 2FA but advanced security delay

May 15, 2025
Add A Comment

Comments are closed.

Recent Posts

NVIDIA CUDA-X and Coil-based Data Science Improvement

May 17, 2025

Bitget Nexpace (NXPC) Pairs of Spot Margin Trading to convert distributed games.

May 17, 2025

Filecoin, Lockheed Martin Test Space IPF

May 16, 2025

Altcoins has been on the verge of ‘most powerful rally’ since 2017 -Analysts

May 16, 2025

Altcoins has been on the verge of ‘most powerful rally’ since 2017 -Analysts

May 16, 2025

Trump Coin aims to crank $ 25. DON ‘S MEME DINNER Flop?

May 16, 2025

Stablecoins: Global Payment and the Future of the Future

May 16, 2025

Bitfinex Bitcoin Long is a total of $ 6.8B, while shorts stand for $ 25 million.

May 16, 2025

Bitcoin has more than $ 100k and Altcoins Slide Analyst has seen the crypto rally in the summer.

May 16, 2025

Openai-Coreweave Deal, Bitcoin Price Steady $ 104K

May 16, 2025

BPEP gets steam with cheap BTCs and competitors Saylor in the eyes of Eric Trump.

May 16, 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

NVIDIA CUDA-X and Coil-based Data Science Improvement

May 17, 2025

Bitget Nexpace (NXPC) Pairs of Spot Margin Trading to convert distributed games.

May 17, 2025

Filecoin, Lockheed Martin Test Space IPF

May 16, 2025
Most Popular

Ethereum price reclaims $3K, but can ETH continue to climb higher?

April 15, 2024

Blockchain – Can a second signer add data to a Bitcoin PSBT transaction?

June 27, 2024

The latest technology news in cryptocurrency and blockchain

February 19, 2024
  • 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.