Questions tagged [raw-transaction]
This tag should be used for questions related to raw transactions, bitcoin transactions that have been serialized for network transmission.
373
questions
1
vote
1
answer
226
views
Accurately calculate fees to sweep all coins
We have an instance of bitcoin core running a watch only wallet. This wallet receives a lot of transactions that we need to (once a day) sweep and split into other personal wallets.
The distribution ...
1
vote
1
answer
2k
views
How to sign rawtransaction with private key
How to sign raw transaction with private key.
this is my raw transaction :
...
1
vote
1
answer
97
views
Open source, how can I view "Transaction Create a new transaction" and "Sign Transaction"?
Not long ago I saw on the site github.com the very first Nakamoto code:
https://github.com/livegnik/BitCoin-v0.01-ALPHA
Running bitcoin.exe, I did not find the console. If the program is open source,...
1
vote
1
answer
566
views
How to retrieve transactions in realtime from bitcoind .dat files
I want to get all the data from blocks as they get updated on my local node.
Abe offers very poor performance, and fast-dat-parser creates other .dat files and doesn't have enough documentation for me ...
1
vote
1
answer
397
views
MultiSig address transaction high fee with no change
I was testing MultiSig transaction on testnet with raw transactions. I sent a transaction of 0.0012 from MultiSig 2-2 to a bitcoin address:
https://live.blockcypher.com/btc-testnet/tx/...
1
vote
2
answers
617
views
Is there any python library could be used to decodescript in output
For example decode the ScriptPubKey like
4104678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38c4f35504e51ec112de5c384df7ba0b8d578a4c702b6bf11d5fac
to some data like ...
1
vote
1
answer
1k
views
how generate <sig> part of scriptSig in bitcoin transactions
I studied many links about bitcoin trxs and about generating scriptSig.
Finally I couldn't understand how to make this part.
for example I read this links:
What is relation between scriptSig and ...
1
vote
2
answers
1k
views
Can not decode transaction. Script was manually verified successfull
I can not decode transaction in Bitcoin-QT.
The error is: TX decode failed (code -22). But blockexplorer site decode it.
Then I try to send transaction from blockcypher.com site, and the error is:
...
1
vote
1
answer
319
views
ScriptSig raw hex to sign raw tx
i have a p2sh address that is created using an uncompressed public key (from my ledger nano) and a compressed public key (bitcoincore wallet). It requires both signatures to send the funds. When i use ...
1
vote
1
answer
2k
views
How to broadcast a transaction
I think this question is not only matter of bitcoin but also of every other crypto currency.
My question is if I lets say have an app or wallet or website. And I want to send money to certain address,...
1
vote
1
answer
39
views
Any stress-tests done after 2015?
I was considering running a small test using Bitcoin transactions when I ran into the stress-test / DDOS that Coinwallet.eu conducted in July 2015 (and maybe September too, I am not really sure) where ...
1
vote
1
answer
321
views
Can arbitrary transactions be aggregated?
Is it possible to take multiple transactions in the form:
[A->X] , [B->Y] , [C->Z], where A,B,C,X,Y,Z are arbitrary, unrelated Bitcoin users/wallets
and aggregate them to a single transaction:
[...
1
vote
1
answer
507
views
Duplicate addresses in transaction possible?
I am making a bitcoin laravel package.
I have a table with all transactions.
The txid and the address are unique together.
So it is possible to have only one column with the same txid and address.
...
1
vote
1
answer
643
views
Bitcoin testnet3: unable to push/publish raw transaction: how to verify validity of transaction?
I have created a raw transaction and am now trying to push the hex format into testnet3. I have used following two ways and both are giving me two different errors, first one:
curl -d '{"hex":"...
1
vote
1
answer
2k
views
getnewaddress vs. getrawchangeaddress
I'm using the Golang btcsuite/btcd library to write a Bitcoin app that creates custom OP_RETURN TXs in the blockchain.
I understand Bitcoin at a high-level (proof-of-work consensus, Merkle trees, ...
1
vote
2
answers
488
views
Manually crafted multisig Tx: non-mandatory-script-verify-flag
I'm trying to broadcast a manually crafted and signed transaction. As far as I can tell, the scripts are correct and the signatures pass BIP 66 validation.
However, I keep getting:
{'message': '64: ...
1
vote
1
answer
3k
views
Bitcoin offline transaction
Consider the following scenario:
create an entire bitcoin raw transaction while offline (no access to the blockchain)
only when you decided to broadcast it that you would need to get online
Is ...
1
vote
1
answer
1k
views
How to return change (utxo - inputs) to output address?
I've been learning to create bitcoin transactions for 3 weeks now, but keep paying the entire unspent_outputs - inputs as fees, even if the transacted amount was like 1/100 th of the outputs. How do I ...
1
vote
1
answer
452
views
How to redeem Non-standard script Tx (testnet instance)
Th testnet TxID 8d897ca91774a7fafa086a3275e679248d6bffee015d3b2efefd5dab00df152d has the following scriptPubKey:
scriptPubKey: "OP_DUP OP_HASH160
5f1426c2ce4a8e1abaa9dbe819b6303eb8a25a26 ...
1
vote
2
answers
118
views
Specific instance of Tx using a malformed null byte vector for P2SH; insight req
From Biteasy's API for TXID fccf964964c34994e5dbbb9ff7f914159b524b0831f6eea12255aa424b39090e we can see the following info regarding inputs (for a P2SH Tx):
"script_sig_string": "[] [...
1
vote
1
answer
367
views
What is the easiest way to associate an utxo to a specific account?
I'm building a web application that uses bitcoind's accounts to track user balances. My dev env is currently in regtest mode. I am working on calculating the network transaction fee prior to creating ...
1
vote
1
answer
572
views
Understanding Bitcoin protocol (through practice)
OK, firstly, Ken Sheriff (the guy who mined Bitcoin using pencil and paper) has posted some fantastic Bitcoin articles on his blog.
In "Using Bitcoins the Hard Way" he writes (emphasis added):
It ...
1
vote
1
answer
284
views
Bitcoind, Multisig, and the default account ""
I've been attempting to do transactions to and from a multisig address for a couple of days, but I'm finding that my default account "" keeps paying for things, even though I'm explicitly saying other ...
1
vote
1
answer
116
views
Bitcoind need blockchain to sign transaction
I'm trying to sign a transaction using bitcoind via rpc.
Here is the request I send.
signrawtransaction "...
1
vote
2
answers
91
views
Decode a signing raw transaction
I'm trying to compare raw_transaction with a sign_raw_transaction.
is there any way to do that ? ( Using rpc commande if possible)
What i want to do is :
create raw_transaction
signing it
compare the ...
1
vote
0
answers
145
views
Send transaction with 2 inputs and 2 outputs using Blockcypher
I'm using a node.js client of Blockcypher in order to broadcast a Bitcoin transaction.
My code:
const originWalletBalance = getBalance(originAddress)
const fee = calculateFee()
const txBody = {
...
1
vote
0
answers
137
views
Transfer all funds to another wallet with node.js
I have a segwit address (starts with bc...) and its private key, that holds some BTC value.
Using node.js I would like to transfer all my funds to another address.
This should be pretty straight ...
1
vote
0
answers
252
views
How do you sign an unsigned transaction using Electrum in a multisig setup?
I am experimenting with multisig in testNet between Electrum and Caravan by Unchained Capital. I created a 2-of-2 multisig in Electrum with BIP 39 seeds.
I then created a watch-only wallet in Caravan ...
1
vote
1
answer
390
views
Creating Witness Signature: non-mandatory-script-verify-flag (Signature must be zero for failed CHECK(MULTI)SIG operation)
So I am trying to do my own witness signatures as described in bip143. I have code that correctly verifies the example signature, so I thought I had a hold of the basic signing and verification. I ...
1
vote
2
answers
235
views
Error validating a transaction with blockcypher
I've created a testnet transaction using blockcypher API (https://api.blockcypher.com/v1/btc/test3/txs/new) and then signed the transaction using the signer (go lang). And then sent signed transaction ...
1
vote
0
answers
38
views
Is there an API to create transactions in the Bitcoin blockchain with only a private key?
Is there an API to create transactions in the Bitcoin blockchain with only a private key?
I am new to working with the Bitcoin and using its API. So, I have searched the API documentation. And here is ...
1
vote
0
answers
161
views
Missing input returned from sendrawtransaction on P2SH multisig?
I'm playing around on regtest to build a flow for P2SH multisig. I'm getting "missing inputs" back from the sendrawtransaction RPC call, but I see inputs when I put it in a decoder. They each have a ...
1
vote
0
answers
409
views
How to add money to my Bitcoin Wallet and send my first Raw Transaction with OP_RETURN using bitcoin-cli
Background
So after reading these two articles (Learning Bitcoin from the Command Line and Mastering Bitcoin), I am trying to piece together how I can get my first transaction with OP_RETURN data ...
1
vote
0
answers
108
views
Parse signature and public key from scriptsig in an input transaction of bitcoin protocol [duplicate]
I'm interested in bitcoin protocol and checking validation of a transaction.
in a TX message, we can see one or more than one input transaction and every input transaction has a previous transaction ...
1
vote
1
answer
711
views
Multisig scripts hashing (p2sh): difference between legacy and segwit
Some time ago I noticed that, given the same inputs, addmultisigaddress and createmultisig Bitcoin core's methods were generating different p2sh (addresses).
I asked around and a user from the ...
1
vote
0
answers
265
views
Error mandatory-script-verify-flag-failed (Signature is found in scriptCode)
I found a few questions with the specific error, but couldn't find also the appropriate answer. So, here I am.
I am working on regtest in a Python library that create transactions and then use JSON-...
1
vote
0
answers
43
views
Determining the byte size of multisig transaction beforehand knowing the details of the transaction [duplicate]
If I know the m of n values of the multisig, the # of inputs (all of which are from the multisig and require m signatures) and outputs and the redeem script, how can I determine the size of the ...
1
vote
1
answer
849
views
P2SH-P2WPKH - has always segwit UTXOs?
I've been reading a lot of docs on BTC transaction structure, and find it really confusing when it comes to SegWit story.
So, the very first thing is, if I've P2SH-P2WPKH address, does it mean that ...
1
vote
1
answer
560
views
Is the any workable testnet3 Bitcoin solution for creating, signing, broadcast a normal transaction using Golang?
Currently I'm trying to create, sign & broadcast bitcoin transaction using btcsuite. For start, I've already had testnet3 address & its associated privatekey for testing. However, hunting ...
1
vote
0
answers
169
views
how to validate rawTx in bitcoinCash [closed]
I am implementing Bitcoincash by bitcoincashjs module using Nodejs.
Referring site from below,
https://github.com/bitcoincashjs/bitcoincashjs/blob/master/docs/examples.md#create-a-transaction
In ...
1
vote
0
answers
149
views
Creating a raw transaction, Please help
I want to create a raw transaction with python and i found the script
Makes a transaction from the inputsoutputs is a list of [redemptionSatoshis, outputScript]
def makeRawTransaction(...
1
vote
0
answers
99
views
How can I use raw litecoin protocol to connect to nodes?
I am trying to connect to litecoin nodes using raw protocol. I follow Ken Shirriff instructions from this article . My code works perfect with bitcoin, so I just replaced bitcoin nodes connection ...
1
vote
1
answer
235
views
Unable to broadcast raw transaction
I am a real beginner and am having trouble with signing this P2sh code:
...
1
vote
1
answer
731
views
NBitcoin: Get address out of raw block stream
OK, I am sure that this is a really dumb, rookie question, so sorry in advance...
I am trying to read through the blockchain and display the receiving address(es) for all transactions in the chain. (...
1
vote
1
answer
2k
views
How to create raw transactions with custom fees?
I have a website where users can send and withdraw funds using Bitcoin. I would like to give them the possibility to use different fees (low, medium and high) instead of a fixed fee or to let bitcoind ...
1
vote
0
answers
236
views
transacton fees for raw transactions
I'm building a merchant system for a client that will accept payments in bitcoin and send all coins to a cold storage wallet once a week (or month). The system is using a deterministic wallet to ...
1
vote
0
answers
57
views
What is the expected rate of transactions per second that I should expect from Bitcoin's ZMQ service?
I'm currently subscribed to the hashtx topic for Bitcoin's ZMQ service. I am noticing that I used to get an average of 3 transactions/second, but lately, I've been getting an average of 0.1 ...
1
vote
0
answers
29
views
How can I tell what the latest version is which can conduct a transaction?
In my planned setup I have two machines: a connected machine (HOT) and a non-connected machine (COLD). My plan, in the event that I need to send bitcoins, is that I will:
formulate desired ...
1
vote
1
answer
81
views
Complex Transaction Signing?
I am trying to recreate this complex transaction in my own project, but it seems my scriptSigs are off. My guess is that I am assembling the rawTX incorrectly, and my best explanation would probably ...
1
vote
0
answers
35
views
Is it possible to to create an output in a transaction that has a value of zero? [duplicate]
When you create a transaction, can you create outputs that have values of zero? Or does every output have to have a value greater than zero?