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 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

Price prediction of BTC, ETH, XRP, BNB, SOL, DOGE, ADA, Sui, Hype, Link

June 4, 2025
Add A Comment

Comments are closed.

Recent Posts

Solana’s Journey: Promotion of Challenge, Innovation and Speed

June 6, 2025

Ether Leeum’s imminent brake out in major chart patterns

June 6, 2025

Bittensor increases rapidly after 118 subnets in the $ 1,000 TAO price guess.

June 6, 2025

Bitcoin’s $ 100k drop in caught many merchants for many merchants.

June 6, 2025

As the ETF rises, Bitcoin Eye Major Rally -but this can ruin the party.

June 6, 2025

Secure the Treasury in the BNB chain and launch VANECK

June 6, 2025

Use Sunny Mining Cloud Mining to earn $ 12,000 a day

June 6, 2025

Investors are the main level of support of the eyes.

June 6, 2025

Encryption Inheritance Update: April 2, 2025

June 6, 2025

Defi, not MICA II at the front line

June 6, 2025

Improve video content with VEO 3: Comprehensive guide to effective prompt

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

Solana’s Journey: Promotion of Challenge, Innovation and Speed

June 6, 2025

Ether Leeum’s imminent brake out in major chart patterns

June 6, 2025

Bittensor increases rapidly after 118 subnets in the $ 1,000 TAO price guess.

June 6, 2025
Most Popular

How Dave Portnoy changes over millions

February 22, 2025

German government office holds 39,826 BTC, blockchain data shows

July 8, 2024

BlackRock Enters Asset Tokenization Race with New Funds on Ethereum Network

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