Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [javascript]

The tag has no usage guidance.

0
votes
0answers
12 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. ...
0
votes
1answer
19 views

Using only Javascript and JS related Bitcoin Libraries. How do you extract the Bitcoin Address from a private key?

I'm building an js related application that only stores my user's bitcoin private keys, but not the public key or bitcoin address to save space. Is there a javascript library that can output the ...
0
votes
1answer
85 views

How do you sign data with a private key? [javascript]

Using BlockCypher’s signing tool (link), I can sign the following data: 05de69f5d37f41340eed3230f03d2394dde5e497738a76f027b7d962a0cbdf39 with the private key: ...
0
votes
1answer
45 views

Creating a raw bitcoin transaction and signing it with the private key using php and javascript

I have a full bitcoin core node setup and would like to use it to just "broadcast" my signed transactions. But what is required to make a raw transaction using PHP and Javascript? The variables I have ...
2
votes
1answer
22 views

Ardor: How to decide if an asset can be send?

My (Javascript) frontend needs to decide whether the user can send an Ardor/Ignis asset in his account. My code checked for: quantityQNT >= amount_to_send But I realise that this doesn't work if ...
0
votes
1answer
275 views

generating private key from bip39 seed

according to bip39, I maked 12 mnemonic words and then get a 512 bit seed from them. now I want to know how must I convert this seed to private key ? what functions must I use ? please introduce me ...
1
vote
1answer
116 views

Derive next HD segwit address from xpub/ypub

I've been using the smartbit api to derive the next receiving address for a while now. However it only works for Legacy addresses and not Segwit addresses. I now have a Ledger Nano s and need a ...
2
votes
1answer
65 views

I have a 100 character text message and I want to encrypt this message with my bitcoin “PUBLIC KEY” and decrypt it with my private key in Javascript

Are there any javascript libraries that can encrypt a 100 character text message using your bitcoin public key, but only be able to decrypt it with your bitcoin private key? I'm looking to create a ...
2
votes
1answer
196 views

A NodeJS implementation on creating addresses from a Bitcoin (zpub, xpub) address

I'm looking for a lightweight node package which can handle creating btc receiving addresses on the server using an extended public key (segwit). Like this one: ...
0
votes
1answer
182 views

UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'fromSeedBuffer' of undefined

I am getting Getting error at this line var root = bitcoin.HDNode.fromSeedBuffer(seed); UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'fromSeedBuffer' of undefined Here is ...
0
votes
1answer
48 views

Explain blockexplorer UTXO

Bitcoin testnet I used the following code to obtain info about unspent outputs: const blockchainInfo = require('blockchain.info') const blockexplorer = blockchainInfo.blockexplorer.usingNetwork(3) ...
1
vote
1answer
237 views

Ardor API: Not able to use POST requests with Axios due to CORS issues [closed]

I am having issues with POST requests to the Ardor API. This code: <!DOCTYPE html> <html> <head> <script src="https://unpkg.com/axios/dist/axios.min.js"></script> &...
0
votes
1answer
132 views

How to make a persistent SPV wallet? (bcoin)

I created a wallet on a SPV node. The wallet is initialized from a mnemonic. After receiving some transactions, the wallet's balance looks like: { account: -1, tx: 3, coin: 3, unconfirmed: 136300, ...
0
votes
1answer
116 views

Generating Output Script from Bitcoin.js or other Javascript Library

I'm attempting to use the Ledger Wallet API to sign a multi-sig transaction. The API works as follows: var inputs = [ [ "71f97fa2a21486ecd99674a8ae068d92acd2e9db49c199473be39984e6cbe0f6", "00000000"...
1
vote
1answer
41 views

How can I generate the qrcode client-side that would be compatible with the Ardor Wallet qrcode

I'd like to generate a qrcode the same way the Ardor Wallet generates it, such that it would be compatible. I found qrcode related javascript shipped with the Ardor node download in ardor/html/www/js/...
1
vote
2answers
62 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 bitcoinjs-lib@2.2.0" didn't work. No idea what flow-typed is and the ...
-1
votes
1answer
159 views

How to Create Bitcoin Cash HD Walllet in Javascript

I am trying to create a Bitcoin Cash HD wallet through mnemonic phrase, but I don't know any npm package that is compatible with HD wallets and Bitcoin Cash. Could someone help me build the BCH HD ...
1
vote
1answer
121 views

Can you explain this JS code?

Can someone explain this JS code to me please? Maybe line by line? I am trying to understand and learn from it. Is this code creating a raw transaction based on an existing redeemScript? Or is it ...
0
votes
0answers
44 views

Komodo (KMD) javascript library

Is there any officially supported library for operating on KMD blockchain? Desired features: Create wallet Save private key as HEX, WIF, Mnemonic Restore address from private key Build transaction ...
1
vote
1answer
427 views

Creating Testnet Bitcoin Transaction with bitcoinjs-lib

I'm trying to setup a simple bitcoin testnet transaction using the bitcoinjs-lib npm module. It seems like I'm building the transaction correctly, and I receive the hex code but I think I'm unable to ...
3
votes
1answer
797 views

Bruteforce bitcoin address - I know the words + public address but not the order

I have a long list of 1million+ permutations of a 12 word BIP39 seed. How can I try them all on a bitcoin address? edit: I know the address and the 12 words but i don't know the order of the words
0
votes
1answer
436 views

Javascript library to explore bitcoin blockchain data by connecting to a local running node

I need to get data of a block using the block height. Is there a javascript library to get block data from the Bitcoin blockchain, by connecting to local running node or a 3rd party blockchain ...
5
votes
1answer
213 views

How do the JavaScript SecureRandom() vulnerabilities affect me?

A recent post on the Bitcoin-dev mailing list talks about multiple vulnerabilities in JavaScript SecureRandom() class. Apparently this class has been used in multiple cryptocurrency wallets that use ...
0
votes
0answers
417 views

How to use RPC javascript to connect to bitcoin daemon running in the server?

I'm new in RPC. I developed a board which use many coin to exchange . But my board is based on other website api to get the BTC address for users. And i want it to be independent. So i was searching ...
5
votes
3answers
3k views

Ripple testnet explorer

This is Ripple main Explorer. But where can i find the transactions ledger from wallets on Ripple testnet.
0
votes
0answers
40 views

Where to get api to fetch list of all crypto exchange and their available pairs

I have searched too much but I didn't find any php or js api to fetch list of all crypto exchange with available pairs. Please help me.
0
votes
1answer
294 views

How to set up a private chain/local testnet : reverse engineering the blockchain code

Long story short, I want to set up a private chain/a testnet blockchain that can run locally just to fiddle and play with it just to learn how it works. So I have a general understanding of how things ...
1
vote
0answers
82 views

Wordpress exchange platform [closed]

Hello from where I should start to built my own cryptocurrency exchange and Fiat/crypto exchange on wordpress? What steps I should take to built that kind of platform? I have some knowledge of ...
0
votes
1answer
662 views

Can I use walletnotify or blocknotify remotely with a NodeJS application?

I'd like to get information from my bitcoin node running on a cloud server to be used to make changes in my NodeJS app running on my computer. So, in the bitcoin.conf file, should I have something ...
0
votes
1answer
385 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() + "&...
0
votes
1answer
140 views

How does a mining pool coordinate with different Javascript clients?

I've been reading a little about those web sites taht surreptitiously had Javascript running on the page that is mining cryptocurrency. How do those pieces of JS work code generally? Specifically ...
1
vote
4answers
5k views

Is bitdigger chrome extension is fraud?

Today, while I was watching the video on youtube, I found the video on the bitdigger extension that mine bitcoins with chrome browser. I just want to know is it fraud or legit? Is it possible mining ...
2
votes
2answers
725 views

How can I check the hash of a bitcoin block?

Let's pick an example bitcoin block: #499583 This is the block: https://insight.bitpay.com/api/rawblock/000000000000000000677c4077da7c9f01dde5f332ba2fbff962ee699714d5da It starts with ...
1
vote
1answer
276 views

Help finding a “throttle-able” Javascript based miner?

I am trying to find a Javascript based miner that is able to be throttled or capped at say 10% CPU usage, do any of you know of one? If not, do any of you know how to create a throttle for a JS-based ...
0
votes
1answer
967 views

Coinhive for bitcoin/ethereum

I know that CPU mining wouldn't pay for electricity bill, but what if some sort of CPU miner was deployed to a website? Similarly to CoinHive with Monero. Would such mining make sense? I started ...
5
votes
1answer
1k views

How do I remove Wallet from Bcoin?

I'm playing with bcoin cli and created lots of wallets. Is there any way to remove wallet via WalletDB Api?
2
votes
1answer
175 views

Bcoin - Database backend not found

/root/BCoin/node_modules/bcoin/lib/db/backends.js:16 throw new Error('Database backend "' + name + '" not found.'); ^ Error: Database backend "leveldown" not found. at Object.get (/root/...
1
vote
1answer
167 views

Bcoin crashes with node version error

I installed bcoin and I get this error about the version: $ node -v v8.2.1 $ npm -v 5.3.0 $ bcoin /usr/lib/node_modules/bcoin/lib/db/backends.js:26 throw e; ^ Error: The module '/usr/lib/...
3
votes
1answer
228 views

How do I get transactions from the Bitcoin Blockchain with bcoin?

Is this possible with bcoin? Do I need a full node to get transactions or does it work with an SPV?
2
votes
1answer
111 views

Resyncing bcoin brings up database version error

I was resyncing my bcoin node and got the following error: Error: Warning: Your database does not match the current database version. This is likely because the database layout or serialization ...
0
votes
1answer
94 views

General Block Chain questions / Js Block Chain [closed]

First of all. I'm very new to block chain technology so please forgive any noob questions. So I'm going a lot on the following tutorial on youtube regarding the knowledge that I do have other than ...
2
votes
2answers
425 views

how to use bitcoin blockchain be useful to authenticate documents?

have read a little about blockchains and found there is lot of blockchain npm libraries available. How can I take benefit of the bitcoin blockchain to authenticate documents : to obtain a proof a ...
6
votes
1answer
10k views

Byte array to hexadecimal and back again in JavaScript [closed]

I can generate a byte array with var myByteArray = window.crypto.getRandomValues(new Uint8Array(16)) and I get 181,143,16,173,231,56,63,149,181,185,224,124,84,230,123,36 I can then turn this into ...
0
votes
1answer
295 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 ...
5
votes
1answer
751 views

how do you sign and verify a message that you own a bitcoin address using javascript?

Is there a bitcoin library or even just pure javascript way of signing and verifying you own a btc address?
1
vote
0answers
288 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 = ...
0
votes
2answers
1k views

What are the best JavaScript libraries to accept Bitcoin payments?

I used search engine "accept bitcoin payments" and: https://bitpay.com/ - top result in my google charges 1% fee and requires some verification Stripe charges 0.8% - https://stripe.com/bitcoin - ...
2
votes
1answer
487 views

How to send portion of funds from a private key programmatically?

I'm building an app and one of my features is being able to scan a bitcoin private key and then send a portion of its funds to another address. How can I do something like this in javascript or php? ...
4
votes
2answers
687 views

Is the generated Public Key from Private Key Unique in Bitcoin?

I am generating public key from my private key. I did in Java script and C#. but generated public keys are different. My Code in c# (KeyCore.NET): PrivateKey pv = new PrivateKey(Globals....
3
votes
1answer
622 views

How can I verify my merkle root function is correct?

I've started playing with Bitcoin on a more technical level recently (I'm an experienced software developer but just a user of Bitcoin up until now). I'm trying to implement a function to calculate a ...