Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more

Questions tagged [javascript]

JavaScript is a high-level programming language widely used for web development.

25 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2 votes
1 answer
246 views

Invalid checksum when generating BIP-39 Mnemonic

I am trying to generate a mnemonic seed in Javascript, and while everything seems to be working, I am not getting a mnemonic with a correct checksum. Here is my implementation: export const ...
Egge's user avatar
  • 21
2 votes
1 answer
270 views

How to spend from a custom P2SH script using bitcore-lib

My Javascript/typescript project uses bitcore-lib. It uses Script.buildScriptHashOut to build custom P2SH outputs. How do I spend from this custom output?
MCCCS's user avatar
  • 10.2k
2 votes
0 answers
75 views

Sign transaction externally

I create a transaction with inputs from a given address / public key without signatures. Every input needs to be signed. I use a different method to generate the signatures so I can't provide a ...
Bernd Strehl's user avatar
2 votes
0 answers
434 views

How to connect to an ElectrumX server using JavaScript WebSockets?

I'm trying to connect to an ElectrumX server from an HTML webpage. But I can't get a working connection. I've tried with many servers from Electrum's servers.json list but none worked. Here's the ...
M.K. Safi's user avatar
  • 143
1 vote
1 answer
167 views

non-mandatory-script-verify-flag (Invalid Schnorr signature)

I try to put this into a Psbt: Alice make payment to purchase an amount of BRC-20 from Bob Bob request to inscribe a transfer of BRC-20 by using Burner account Burner inscribe the transfer of BRC-20 ...
LikKee 沥祺 Richie's user avatar
1 vote
0 answers
132 views

Transactions only work the first time

I'm implementing the code to sign and send Bitcoin transactions on testnet, using the bitcore library, in javascript. I need some help, as once I try to broadcast my transaction, it gives me this ...
AlexCav's user avatar
  • 51
1 vote
0 answers
90 views

Cannot unserialize chainstate transaction outputs after de-obfuscation

I was able to read chainstate database. Getting the key and de-obfuscating to get a valid last block. However, when it comes to transactions that follow after that, I cannot de-serialize them no ...
Anonymous's user avatar
  • 111
1 vote
0 answers
85 views

Bitcoin Script - Beautify

My question is if something exists to do the job in the opposite direction of miniscript. Miniscript's intention is to help:     ...writing (a subset of) Bitcoin Scripts in a structured way, enabling ...
Vlad Stan's user avatar
1 vote
0 answers
208 views

How can I use PSBT in a JavaScript project?

I am trying to use PSBT in a Bitcoin project. The idea is to generate keys and sign transactions client-side. I am already familiar with bitcoinjs-lib but I find the API rather complicated. It would ...
Mario Mazzola's user avatar
1 vote
0 answers
645 views

bitcoind: How to get rawblock data with ZeroMQ

I am trying to use the zeromq api for bitcoind to get rawblock but its not working with the code I've provided below. I am able to get hashtx and rawtx if I remove the filter but not hashblock and ...
Kevin Kelbie's user avatar
1 vote
2 answers
149 views

Bitcoinja-lib. bitcoin.payments is null

I installed bitcoinjs-lib with command: meteor npm install bitcoinjs-lib. The installation command "flow-typed install -f 0.27 [email protected]" didn't work. No idea what flow-typed is and the ...
educob's user avatar
  • 19
1 vote
0 answers
625 views

Decrypting BitcoinJ/MultiBit key (scrypt/aes-256) from protobuf with NodeJS

I'm trying to decrypt an encrypted private key from an encrypted Multibit Classic .wallet file but the resulting public key / wif doesn't match the original. Here is my code: 'use strict' var fs = ...
01BTC10's user avatar
  • 353
1 vote
0 answers
55 views

How to sign messages deterministically with bitcore?

How do you sign messages deterministically with bitcore?
Jason's user avatar
  • 11
0 votes
1 answer
55 views

How to recover wallet from Master Private Key?

I've tried this approach to recover litecoin wallet, but it seem to print wrongly generated hashes (as I actually have wallet public and private keys for comparison), what can be wrong here? my wallet ...
Masofke's user avatar
0 votes
0 answers
259 views

Generate a Bitcoin taproot address with specific prefix for burning assets

I would like to generate a bitcoin taproot address (bc1p) for burning assets. Which means not one would have the private key. But in the mean time I would also want a vanity address (an address start ...
daniaoren's user avatar
0 votes
1 answer
117 views

How to implement stake.com model of deposit & withdraw flow for my crypto poker casino?

In stake.com for each user they generate separate bech32 address for deposit & displays the deposited amount as balance in top of the navigation bar. Similarly for withdraw they just ask for the ...
Kimi Raikkonen 9790's user avatar
0 votes
0 answers
59 views

Cryptocurrency Wallet 3rd party access

Do Crypto wallets such as Exodus etc have something like an API? For example is it possible to perform a cryptocurrency transaction directly from the web browser client (using the specified amount and ...
shauna vayne's user avatar
0 votes
0 answers
87 views

How can i mine bitcoins to direct wallet using JavaScript?

I heard that we can mine bitcoins using javascript direct to the wallet? How can I create Program, script or application which direct mines to the wallet & I even search online but did not get ...
user avatar
0 votes
0 answers
194 views

broadcasting bitcoin transaction issue using bitcore-explorers

I have been trying to do a transaction using bitcore-lib. I have successfully created transaction object. let bitcore_transaction = new bitcore.Transaction() .from(utxos[0]) .to(to, +...
Komal Bansal's user avatar
0 votes
1 answer
733 views

how to place a bitforex api buy order

I have read the documentation for BitForex on placing a buy order here: https://github.com/bitforexapi/API_Doc_en/wiki/Order Then after understanding that, I read the API Call Description ...
adbarads's user avatar
  • 101
0 votes
1 answer
184 views

How to create an application which constructs a transaction using `bcoin` (javascript)?

I am new to development. I am working on a project and I am trying to use bcoin. I want to create an application which has a UI, where the user will be asked to enter Destination address and amount. ...
Deb's user avatar
  • 133
0 votes
1 answer
924 views

Signature for this request is not valid

im testing the binance api but cant get over the signature problem can u spot a mistake on my signature?: const crypted = CryptoJs.HmacSHA256("timestamp=" + new Date().getTime().toString() + "&...
change is amazing's user avatar
0 votes
1 answer
456 views

Is it possible to talk to bitcoin RPC API with Javascript and WITHOUT using a node server?

I am planning on building a Wallet and want to know if I can hook something like an Electron native JavaScript app to Bitcoin RPC without running node.js for the server calls, so using something like ...
DUDE139's user avatar
0 votes
1 answer
205 views

Redeem script for input #0 doesn't match the scriptPubKey in the prevout

I'm trying to create a new bitcoin transaction using bitcoinjs-lib. Here is my transaction. { "weight" : 661, "txid" : "...
Berry Blue's user avatar
-1 votes
1 answer
321 views

Anybody using bitcore.io? I can't seem to make it work properly

I've installed bitcore.io on a folder for my nodejs, using the npm command. npm install bitcore npm install classtool Of course, I tried to run an example code, the one is shown at their website. I ...
ParanoidE's user avatar
  • 101