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

ZBCN is tradable!

October 15, 2025

Mobile App Change Log 7.17.0

October 9, 2025

Free bitcoin.in app withdrawal request My satoshi

October 3, 2025
Add A Comment

Comments are closed.

Recent Posts

5 Best Crypto Flash Crash And Buy The Dip Crypto Bots (2025)

October 18, 2025

Billionaire Tim Draper Leads $3.2M Seed Round For Ryder To Replace Seed Phrases With TapSafe Recovery

October 18, 2025

IRANcoin Global Reserve (IRCOIN) launches to reshape global digital payments

October 18, 2025

Fusaka Update – Information for Blob Users

October 18, 2025

6 Best AI Quant Bots To Use In 2025: Smarter Trading Starts Here

October 18, 2025

BTC RSI hits April low as Coinbase premium turns red.

October 18, 2025

The Great Inheritance and Crypto: What you need to know.

October 17, 2025

6 Best AI Quant Bots To Use In 2025: Smarter Trading Starts Here

October 17, 2025

AI and Bitcoin mining stocks soar after OpenAI closes multibillion-dollar chip deal with AMD

October 17, 2025

MEXC Celebrates ZEROBASE (ZBT) Listing With Airdrop+ Event Featuring 55,000 USDT Prize Pool

October 16, 2025

How MasterQuant’s AI Trading Bot Is Becoming Every Investor’s Favorite Trade Machine

October 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

5 Best Crypto Flash Crash And Buy The Dip Crypto Bots (2025)

October 18, 2025

Billionaire Tim Draper Leads $3.2M Seed Round For Ryder To Replace Seed Phrases With TapSafe Recovery

October 18, 2025

IRANcoin Global Reserve (IRCOIN) launches to reshape global digital payments

October 18, 2025
Most Popular

Binance Launches New Trading Pairs and Trading Bot Service

July 11, 2024

Pepe memecoin overturns the market capitalization of Uniswap tokens and hits an all-time high

December 9, 2024

Senator Lummis’ Bitcoin Reserve Proposal Faces an Uphill Fight

November 7, 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.