1,769 questions
1
vote
0
answers
28
views
lightning wallet connection by LNURL Auth + LNBits [closed]
I'm currently integrating a Bitcoin Lightning wallet into my Node.js backend and React.js frontend. Right now, I'm trying to solve a bug where creating an invoice through my LNURL Auth client doesn't ...
-1
votes
1
answer
23
views
Is `scantxoutset` in Bitcoin Core stable enough for production use?
I'm developing an application that depends on the scantxoutset RPC method in Bitcoin Core. However, the official documentation includes the following warning:
EXPERIMENTAL warning: this call may be ...
1
vote
0
answers
62
views
Why 'send-crypto' returns different address btc account?
I am trying to send btc transaction using send-crypto.
This reference blog is really helpful for me (How to send bitcoin BTC using send-crypto using WIF key in node,js)
I created btc account like this ...
-2
votes
2
answers
139
views
Issue with Signing a Taproot P2TR Input in Bitcoin
Issue with Signing a Taproot P2TR Input in Bitcoin
I am trying to sign a Bitcoin transaction spending a Taproot (P2TR) input but keep encountering an error: mandatory-script-verify-flag-failed (...
-1
votes
1
answer
69
views
I/flutter (16610): type 'int' is not a subtype of type 'double'
I'm working on Bitcoin Ticker project, I've updated the URL "coingecko" in order to put the id and currency with the list I provided and return the url as double. I'm still getting this ...
0
votes
2
answers
168
views
bitcoinlib signing raw text message using python
I am trying to sign a raw message, like "Hello World", using the Python library bitcoinlib. The goal is to generate a base64-encoded signature for the message that can be verified. However, ...
0
votes
0
answers
23
views
ElectrumX Crashes on Reading blocks from Bitcoind regtest node
Can anyone help me to debug this issue?
What I Am Trying to Do
I am attempting to run a bitcoind regtest node and connect it to electrumx_server
The Problem
When I run electrumx_server, it connects to ...
-1
votes
1
answer
41
views
ElectrumX Server Fails to Connect to bitcoind Node
What I Am Trying to Do
I am attempting to run a bitcoind regtest node and connect it to electrumx_server
The Problem
When I run electrumx_server, I encounter the following error repeatedly:
ERROR:...
-1
votes
1
answer
46
views
Extract forecast from an ARIMA with log and difference (R)
I computed AR's models to predict the value of BTC. In order to make the data stationary i have transformed it :
yt=log(BTS_t)
dyt = yt-yt-1
I take the difference of logarithms (interpretable as the ...
0
votes
0
answers
54
views
Electrum too many transactions on a single address
I have an Electrum wallet, and I use it a lot, and when I send or receive bitcoin I only use one address, now the address has around 10695 transactions, and I cannot send the bitcoin inside it using ...
1
vote
0
answers
60
views
Get Bitcoin's wallet change addresses
Is there any way to get the associated change addresses of bitcoin wallet .??
I am using typescript as my backend language.
I have a use case i need to subtract a value going out from user's wallet ...
0
votes
2
answers
156
views
Sign message with Bitcoin private key
I need to create a bitcoin family text signing tool.
After researching the issue, I found the NBitcoin package and used it to implement the following code:
using System;
using System.Data;
using ...
0
votes
0
answers
71
views
Calculate zpub based on seedphrase, passphrase, and account number in Bitcoin
Can I use the bitcoinlib Python library to create a function that takes a mnemonic phrase, a passphrase and an account number and returns the corresponding zpub (purpose=84)?
Something like this:
from ...
0
votes
0
answers
197
views
Bitcoin Hex private key
Is it possible to generate a wallet on the Bitcoin main-net without having the number "80" for main net added at the beginning and the double SHA at the end?
I have tried using a random HEX ...
0
votes
1
answer
506
views
Regenerating a 4-Year-Old Bitcoin Address Created by BRD Wallet using bip-utils
I have a Bitcoin wallet that I originally created 4 years ago using the BRD wallet app, which has since became the Coinbase Wallet app. I'm playing around with this wallet for educational purposes, it ...
0
votes
1
answer
345
views
Get Bech32 (Native SegWit) Bitcoin Address From The Public Key (ec_compressed) Using libbitcoin-system 3.8.0
How can I get the Bech32 (Native SegWit) Bitcoin Address from the ec_private without using HD Keys. My code is as follows and I am quite struggling to use libbitcoin documentation.
#include <...
0
votes
1
answer
264
views
Get Segwit Bitcoin Address From Simple Private Key (ec_private) Using libbitcoin-system 3.8.0
How can I get the Segwit Bitcoin Address from the ec_private without using HD Keys. My code is as follows and I am quite struggling to use libbitcoin documentation.
#include <bitcoin/system.hpp>
...
-3
votes
1
answer
192
views
Ubuntu 22.04 | Error sending request for url (http://127.0.0.1/blockcount) connection refused [closed]
good day,
I'm running a Bitcoin node on Ubuntu 22.04, Have Bitcoin Ordinals library installed and trying to listen to Ord server using below command:
ord --cookie-file ~/snap/bitcoin-core/common/....
-3
votes
1
answer
547
views
How to make bitcoin compressed public key
This is my code
from bitcoinlib.keys import PrivateKey
from bitcoinlib.encoding import pubkeyhash_to_addr
# Example WIF private key
wif_private_key = "...
-1
votes
1
answer
183
views
Import Bitcoin Wallet using Private Key
How can I import a Testnet bitcoin wallet using private key just for testing in a react native expo project.
I have tried bitcoin js but it isn't supported in expo managed project.
0
votes
2
answers
388
views
How to Create P2SH Address From Multiple Public Keys
this is what i tried:
i created a reedem script : [OP_2, PB1 Length(1-byte), PB1, PB2 Length(1-byte), PB2, PB3 Length(1-byte), PB3, 83 (OP_3), 174 (OP_CHECKMULTISIG)]
Hash = calcualte ripemd160 of ...
0
votes
1
answer
872
views
How to transfer BRC-20 token from one wallet to another in React JS
I am researching on this topic since long, but didn't get the solution. Looking for someone to help me with the code.
Here is what i have found till now:
Its a two step process, first we can inscribe ...
0
votes
1
answer
228
views
How do developers manage to update new source code on blockchain due to the difficulty of distributed and decentralized consensus process
I am just wondering and struggling to understand how blockchain developers of crypto coins like BTC, ETH, etc. manage to update the code due to the consensus nature. Do they stop all nodes, so later ...
0
votes
1
answer
105
views
How to calculate BTC supply in profit in dune analytics?
I'm trying to calculate the BTC supply in profit (%) in dune analytics.
Based on the metric definition: The percentage of circulating supply in profit, i.e. the percentage of existing coins whose ...
0
votes
1
answer
28
views
How do I specify a recipient for a webln invoice?
await webln.enable();
const invoice = await webln.makeInvoice({
amount: 1000,
});
I need to generate an invoice for a paywall on my site.
-1
votes
1
answer
384
views
error on login: SES_UNHANDLED_REJECTION: TypeError: relays[url] is undefined
SES_UNHANDLED_REJECTION: TypeError: relays[url] is undefined
console.log('nostr login');
const nip07signer = new NDKNip07Signer();
const ndk = new NDK({
signer: ...
0
votes
0
answers
930
views
OKX API compute for sz(size) "Order quantity must be a multiple of the lot size."
https://www.okx.com/docs-v5/en/#order-book-trading-trade-post-place-order
In the documentation above I'm getting an error of:
"Order quantity must be a multiple of the lot size.".
Upon ...
0
votes
0
answers
175
views
How to get value of nbits from Bitcoin mining pool stratum response
I'm looking at the stratum protocol and I'm having a problem with the nbits value of the mining.notify method. I am having problem with calculating the leading zeros value. So I am using below job
{
...
1
vote
1
answer
193
views
Bitcoin Mining : How to regenerate the hash of already mined bitcoin block
For testing purpose I am trying to verify a already mined block from the Bitcoin blockchain. I am using this block Block #814283
Below is my simple code in Python to check
import hashlib
version = ...
0
votes
1
answer
134
views
Get Bitcoin data issue
I was using below code to collect bitcoin data:
# -*- coding: UTF-8 -*-
import os
import re
import requests
import datetime
from bs4 import BeautifulSoup
first_date = datetime.datetime(2010,7,16)
...
-1
votes
1
answer
1k
views
My python code for a bitcoin wallet website can't seem to find my wallet.dat bitcoin core file?
I'm trying to create a bitcoin wallet website and I've written some python code so far.
I have downloaded bitcoin core and have created a wallet in the directory:
C:\Users\MylesUsername\AppData\...
-3
votes
1
answer
4k
views
Generate a bitcoin core private key from a seed phrase
Bitcoin core don't use seed phrase so I am trying to convert the seed phrase to private key, for some reason the output is not correct.
Here's my code:
import bip39 from "bip39";
import * as ...
0
votes
1
answer
158
views
Automatic Currency Conversion From USD to BTC Using blockchain.com URL
The idea is very simple since the URL automatically updates the price itself, all I need is to add the BTC price within brackets.
Example: 0.00003573 is the result from using this URL:
https://www....
0
votes
1
answer
342
views
Bitcoin transaction (testnet) submit fails
I am trying to create a simple native segwit transaction on bitcoin testnet but it is failing on submit with RPC error -26 which based on the source code is this:
RPC_VERIFY_REJECTED = -26,...
1
vote
1
answer
2k
views
How to send bitcoin BTC using send-crypto using WIF key in node,js
I am trying to send bitcoin using the send-crypto library. It seems to require the private key to be in hex format, but my key is of the form "L3fKJ..." which I understand to be in WIF ...
0
votes
1
answer
545
views
How to generate public key from private key in python3 with out importing any module
When I run the command btc_address_dump "0x0000000000000000000000000000000000000000000000000000000000000001" the outputed public key is ...
0
votes
1
answer
83
views
Can we use the bitcoin idea to get rid of traditional password schemes? (usernames, hashing)
I considered the traditional password hashing:
https://security.stackexchange.com/questions/211/how-to-securely-hash-passwords/31846#31846
However, bitcoin has a way of letting people use human ...
-1
votes
1
answer
497
views
Custom buy/sell/transfer fee on a bridged ERC-20 token
Do tokens bridged on to another network maintain the tokenomics like selling fees and what not that was added to it on the original network? Is there a way to make it possible if not?
0
votes
1
answer
997
views
How to properly implement key derivation in bip32, bip44, etc.?
How to properly implement key derivation in bip32, bip44, etc.? I get it right to generate the parent extended key, but then I can’t get the correct keys, they do not match the "Test Vectors"...
1
vote
1
answer
127
views
Multistep LSTM: Why am i getting the same curve/pattern for each prediction?
I'm new to tensorflow and LSTM models (and coding in general) and would really appreciate some help. I'm getting somewhere, but no matter what i try i seem to always get the same pattern in each ...
2
votes
1
answer
87
views
Can not find mnr_getWork method
I am going to run my own private merged mining pool compatible with RSK.
I have installed ckpool on my server. ckpool is merged mining pool software written by C.
I installed RSK and BTC node on my ...
1
vote
1
answer
609
views
What is a reliable way to generate bitcoin private key in browser?
Is there a way to generate truly random bitcoin private key without relying on 3rd party libraries like ECPair nor tiny-secp256k1?
As a recommended approach to generate secure random key is to use ...
-3
votes
1
answer
993
views
Can't get private keys for my bitcoin wallet on own node
I deployed bitcoin prune node on my own server and can't figure out how to get the private keys for my wallet. getwalletinfo doesn't return my wallet number, but dumpprivkey requires it:
curl --data-...
0
votes
1
answer
52
views
php SplFixedArray no longer Iterator but InteratorAggregate
Now that SplFixedArray is not an Interator but rather an IteratorAggregate how do i change below code to work for PHP 8
<?php
declare(strict_types=1);
namespace BitWasp\Bitcoin\Transaction\...
1
vote
0
answers
116
views
Building old schildbach wallet (android bitcoin-wallet) version on a modern java/maven environment
The problem I'm currently facing is that as far as I understand, for example, the com.google.bitcoin.core package belongs to is the same as the com.google.bitcoinj.core package but this one is not ...
1
vote
0
answers
889
views
How to build a transaction using bitcoinjs-lib
I'm trying to build a transaction using bitcoinjs-lib.
Here is my last transaction.
https://blockstream.info/api/tx/91feea5f5c7b67b3e56c0f5d23d6da3065855c23b4cc7dded8efd8ff8065500f
{
"weight&...
0
votes
1
answer
606
views
I don't rectify the error "bitcoinlib.wallets.WalletError: Wallet 'Private_Key' not found, please specify correct wallet ID or name"
Python Code :
from bitcoinlib.wallets import Wallet
# Set up sender and recipient wallet addresses
sender_wallet = Wallet('L3ZoqFs7WYDUdCrzeNgY6ThKP8hEY2ozrpHgk4auDLpNbfeTaxyi')
recipient_wallet = '...
1
vote
0
answers
916
views
Code to inscribe ordinal on bitcoin testnet using bitcoinjs-lib not working: transaction does not show as an inscription
After sending a raw taproot transaction intended to inscribe an Ordinal, it is not showing as an inscription by the ord explorer.
Transaction
...
0
votes
2
answers
117
views
How to resolve "error of type null" on easybitcoin line 187
I have set-up bitcoin core on my windows and I have bitcoin-qt running. I am also using easybitcoin.php library to run rpc commands but when i try to run json rpc commands I dont get the results I ...
1
vote
1
answer
280
views
Make check FAIL: test/test_bitcoin
I am new to Ubuntu environment and I am trying to build the Bitcoin Core 0.15.0 executables (following chapter 3 of the book Mastering Bitcoin) through WSL on Windows 10. Everything seemed to be ...