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

Does Ethereum start their business? MorningStar Candlestick Pattern tells the story

June 6, 2025

Bitcoin Is An Unreplicable Lifeline In Authoritarian Regimes

June 6, 2025

South Africa central bank insists on the ‘old -fashioned’ exchange control law, which is still valid for encryption regulations.

June 5, 2025
Add A Comment

Comments are closed.

Recent Posts

Binance Alpha Listing Drive Skating Token Price 33%

June 7, 2025

Data Center security improvement: Role and risk of base board management controller

June 7, 2025

Is the Solana -SOL route that is involved in whale movements still alive for $ 160?

June 7, 2025

Gala Games unveils a new byte pack in VEXI village.

June 7, 2025

XRP price prediction by reducing the volume of RLUSD (RIPPLE USD)

June 7, 2025

ARCA is disappointed with the IPO allocation and dumps the circle sharing.

June 7, 2025

Eigenlayer starts the redistribution function in testnets

June 6, 2025

Musk & Trump SPAT sends trenches from DOGE Price Crumbling, Tesla.

June 6, 2025

Musk & Trump SPAT sends trenches from DOGE Price Crumbling, Tesla.

June 6, 2025

Vortex uses NVIDIA Jetson to innovate medical imaging with CT-similar ultrasound.

June 6, 2025

2025 Best Free Cloud Mining

June 6, 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

Binance Alpha Listing Drive Skating Token Price 33%

June 7, 2025

Data Center security improvement: Role and risk of base board management controller

June 7, 2025

Is the Solana -SOL route that is involved in whale movements still alive for $ 160?

June 7, 2025
Most Popular

BitMEX Lists ZROUSDT and TREMPUSDT with 10x Leverage

June 21, 2024

Wintermute Launches OutcomeMarket, a US Election Prediction Token

September 17, 2024

Analyst Predicts XRP Rally To $1.20 In These Crucial Conditions

March 30, 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.