Questions tagged [bitcoin]

GENERAL BITCOIN QUESTIONS CAN BE ASKED ON https://bitcoin.stackexchange.com Bitcoin is a peer-to-peer digital currency with no central authority. Transactions are managed entirely by the network. Please ask only programming questions about Bitcoin.

Filter by
Sorted by
Tagged with
-3 votes
0 answers
15 views

Sending Bitcoin using Node.js send-crypto not successful [closed]

I am using the Node.js package send-crypto to send Bitcoin. It was working for several months but now I get this error when processing the transaction, Error: Request failed with status code 404 ...
James's user avatar
  • 17.9k
-2 votes
0 answers
37 views

{"code":-1102,"msg":"Param 'orderid' or 'origclientorderid' must be sent, but both were empty/null!"}

I need little help. while True: headers = {'X-MBX-APIKEY': api_key} timestamp = int(time.time() * 1000) params = {'symbol': symbol, 'interval': interval, 'limit': ...
Bogachan Uyar's user avatar
0 votes
1 answer
33 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 ...
Panagiotis Drakatos's user avatar
-1 votes
0 answers
10 views

Bitcoin - Finalize inputs for a merged psbt 'Can not finalize input #0'

I have a scenario: UserA (bc1pmd3tdzucfnpmq2m3d82yzqmht6hp7smfc2g0tze6ywkxn6h258aszxjdn6): wants to sell an inscription. (5d8c42c867f9c09c0a44397ad2c91d73e8ebb7734e75f54f7caba8ea95eba3b6:2) He signs a ...
dumedco's user avatar
0 votes
1 answer
28 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 ...
Công Lý's user avatar
-1 votes
0 answers
55 views

Bitcoin address in Wolfram Mathematica

I am trying to create a bitcoin address in Wolfram Mathematica as outlined in the blog post: https://medium.com/coinmonks/how-to-generate-a-bitcoin-address-step-by-step-9d7fcbf1ad0b This is the code i ...
JolyneKujo's user avatar
0 votes
0 answers
10 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.
chovy's user avatar
  • 73.2k
-2 votes
0 answers
25 views

Recovering Bitcoin address failed using Bit-Wasp/bitcoin-php

The address was successfully generated, but it is different from the address in my imtoken wallet use BitWasp\Bitcoin\Mnemonic\Bip39\Bip39SeedGenerator; use BitWasp\Bitcoin\Mnemonic\Bip39\...
AegisFor's user avatar
-1 votes
1 answer
16 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: ...
chovy's user avatar
  • 73.2k
0 votes
0 answers
30 views

Create a stop limit order in CCXT for Coinbase

I want to place a "stop limit order" using CCXT module in python. The stop price dictates the price whether the order is triggered, then the limit price dictates the price at which the order ...
user2512443's user avatar
2 votes
0 answers
139 views

What percentage of mined nonces fail to join the consensus blockchain? [migrated]

From Wikipedia: The PoW requires miners to find a number called a nonce (a number used just once), such that when the block content is hashed along with the nonce, the result is numerically smaller ...
MWB's user avatar
  • 11.9k
-2 votes
0 answers
55 views

I'm looking to execute a Bitcoin transaction and broadcast it using an API, but I've hit a snag in the broadcasting process

I'm using laravel 10 with bitwasp/bitcoin package to create an bitcoin address and transictions but i have a broblem during broadcast the $transiction Transaction Hex* ...
Ali Muhammad's user avatar
0 votes
0 answers
63 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 ...
user2530833's user avatar
  • 1,007
0 votes
0 answers
34 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 { ...
Sajjad Hossain Sagor's user avatar
1 vote
1 answer
48 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 = ...
Sajjad Hossain Sagor's user avatar
-2 votes
1 answer
54 views

Conducting transactions on Bitcoin and Tron platforms with PHP

For example, I want to transfer 1 bitcoin from account number 1 to account number 2. How can I connect to Bitcoin or Tron network with php and transfer bitcoins from one account to another? I tried to ...
mehran_s_w's user avatar
0 votes
0 answers
49 views

Are there several implementations of the Stratum mining protocol?

The best way to understand how something works is to get your hands dirty. With this in mind, I've started developing a cryptocurrency miner. I'm implementing the part that allows me to communicate ...
Jeremy A.'s user avatar
0 votes
1 answer
88 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) ...
Marcfly7's user avatar
-1 votes
1 answer
200 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\...
MylesIsHere's user avatar
0 votes
0 answers
37 views

How to make bitcoin lightning payment button on a web page launch android wallet app

Imagine you've got a bitcoin lightning invoice address from your server: ...
a7dc's user avatar
  • 3,335
-3 votes
1 answer
430 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 ...
Amr's user avatar
  • 1
0 votes
1 answer
58 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....
Learning WooStoreFront's user avatar
0 votes
1 answer
40 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,...
user22685947's user avatar
1 vote
2 answers
255 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 ...
James's user avatar
  • 17.9k
0 votes
0 answers
17 views

Benefit of saving merkle root in bitcoin block headers

Is there any benefit of saving merkle root in bitcoin block headers? Is it better than saving a sha256 hash of block data? If it just detects blockwise corruption, merkle root seems to have no benefit ...
You We Cho's user avatar
0 votes
1 answer
167 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 ...
Victor maith's user avatar
-1 votes
1 answer
46 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 ...
prime's user avatar
  • 25
-1 votes
1 answer
128 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?
OPP's user avatar
  • 45
0 votes
0 answers
107 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"...
Dilettante's user avatar
1 vote
1 answer
52 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 ...
The Bunnet Hypothesis's user avatar
1 vote
1 answer
47 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 ...
Cergei's user avatar
  • 11
0 votes
0 answers
25 views

Getting Fee amount from Electrum Transaction using CLI

I am trying to get the fee for a done transaction in Electrum: https://electrum.readthedocs.io/en/latest/cmdline.html I can run: # python3 Electrum-4.4.5/run_electrum getaddresshistory ...
user7261395's user avatar
1 vote
1 answer
278 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 ...
Maksim Shamihulau's user avatar
-2 votes
1 answer
122 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-...
James May's user avatar
  • 1,461
0 votes
1 answer
25 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\...
Kidd Kidd's user avatar
0 votes
0 answers
121 views

How to create psbt to send btc

I try to create psbt to send btc from xverse wallet to anouther wallet. I got the problem with sign psbt here is my code const UTXOData = await ( await fetch( `https://blockstream.info/...
Danil's user avatar
  • 97
1 vote
0 answers
43 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 ...
RicardoPHP's user avatar
0 votes
0 answers
253 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&...
Berry Blue's user avatar
  • 15.6k
0 votes
1 answer
158 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 = '...
Pranav Suchak's user avatar
1 vote
0 answers
324 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 ...
Crypto Trekker's user avatar
0 votes
2 answers
44 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 ...
WamuiT's user avatar
  • 1
0 votes
0 answers
183 views

Unable to connect to Binance Websocket in c++

I am trying to connect to Binance Websocket in C++ using Boost library, but I keep getting errors like: ./main Error: The WebSocket handshake was declined by the remote peer [boost.beast.websocket:20 ...
Aman's user avatar
  • 1
0 votes
0 answers
41 views

How to determine Input Output (var length) of RAW hexa data of BTC transaction?

For the following with respect to SHA-256 encoding; ...
ah_'s user avatar
  • 1
1 vote
1 answer
64 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 ...
adromo95's user avatar
1 vote
0 answers
263 views

how to sign a PSBT with bitcoinjs-lib in node js?

I am trying to sign a PSBT that is generated by magicEden (NFT marketplace) so I can purchase ordinals NFT from it using code, am using node js, and I was able to debug the site to find how they ...
Taha Daboussi's user avatar
2 votes
0 answers
108 views

gRPC connection error "CaUsedAsEndEntity" using Rust Tonic

I've been having some problem connecting to an LND node running on Polar. I keep constantly getting this error: tonic::transport::Error(Transport, hyper::Error(Connect, Custom { kind: InvalidData, ...
lescuer's user avatar
  • 63
1 vote
1 answer
101 views

bitcoind `listunspenttransactions` throws "Wallet file not specified" error

I am using btcd rpcClient. In a nutshell, what I am doing, is loading a wallet, listing unspent tx and then unloading the wallet. Here is a sample code: import ( "github.com/btcsuite/btcd/...
Валентин Стайков's user avatar
0 votes
0 answers
53 views

Is there a way to upgrade bitcoin daemon to version 25?

I downloaded bitcoin core 25 from bitcoincore.org, but the only instructions I could find relating to the installation of the bitcoin daemon was on bitcoin.org (which seems to only offer up to bitcoin ...
Meowsleydale's user avatar
-1 votes
1 answer
162 views

Bitcoin Compressed WIF (Starting with K and L) Issue

I am new to coding and blockchain. I have 2 private keys starting with K and L which are 52 characters and the address corresponding to these keys saved as screenshot when they were created using a ...
BeingCrypto's user avatar
1 vote
1 answer
183 views

How can I make contract with BRC20?

I'm going to develop DApp Game based on BRC20. But I don't know how to make contract and deployment with BRC20, because BRC20 was created a few months ago. It's very difficult for me to find out ...
stayForward09's user avatar

1
2 3 4 5
36