Skip to main content

Questions tagged [raw-transaction]

This tag should be used for questions related to raw transactions, bitcoin transactions that have been serialized for network transmission.

Filter by
Sorted by
Tagged with
1 vote
1 answer
160 views

How to show the Op codes of scriptPubKey?

I've been learning about bitcoin and creating raw transactions. In the example I saw in a video when they use the command decoderawtransaction it outputs: ... "scriptPubKey": { &...
Pedro's user avatar
  • 13
1 vote
1 answer
238 views

Get raw transaction from tx id without txindex=1

I'm trying to get the raw transaction hex string of a transaction that I know the id from. I would like to do that without using txindex=1. As I assume the transaction is unspent (and confirmed) I'm ...
user44941's user avatar
1 vote
1 answer
749 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 ...
noone392's user avatar
  • 422
1 vote
1 answer
222 views

convert from public address format to raw transaction format

So I am trying to full understand how to decode transactions. In the dev docs it discusses a raw transaction: https://developer.bitcoin.org/reference/transactions.html in the paragraph "TxOut: A ...
noone392's user avatar
  • 422
1 vote
1 answer
166 views

How to deserialize the Transaction Count in a raw block?

In the bitcoin-book, the "Transaction Counter" part of a block is documented as being 1~9 bytes long instead of a fixed size. How is this counter parsed from the raw data?
ntk138's user avatar
  • 27
1 vote
1 answer
430 views

How to use bitcoinj to transfer btc from p2sh-p2wpkh

I wrote the code for transmitting btc from p2sh-p2wpkh based on the information I found, but when I tried to broadcast the original transaction in https://live.blockcypher.com/btc-testnet/pushtx/, an ...
lingting's user avatar
1 vote
1 answer
107 views

I encountered Signature is found in scriptCode exception when trying to make a BTC transfer

When I transferred a 0.001 BTC from miBEA6o6nZcaLZebR1dsDv4AMHRwJk1mbi to miV1sbmLM9fptRfWD5o8hs5L6ucUeJzmp5, the following error occurred: mandatory-script-verify-flag-failed (Signature is found in ...
lingting's user avatar
1 vote
1 answer
263 views

Ho do I generate the output script of a bitcoin transaction?

When I mean output script I mean the output script from step 11 from this question: Redeeming a raw transaction step by step example required Then the actual output script: 76 a9 14 ...
user3776738's user avatar
1 vote
1 answer
395 views

Segwit transaction - Non-canonical DER signature

Error (when sending) error code: -26 error message: 64: non-mandatory-script-verify-flag (Non-canonical DER signature) Transaction ...
Jubert's user avatar
  • 47
1 vote
2 answers
171 views

Issues decoding the words to transaction hex

I had asked a question earlier about compressing the transaction hex as it was used in a project that involved sending text messages (160 characters limit per message): Compress transaction hex string ...
user avatar
1 vote
2 answers
345 views

Creating a custom transactions

I am currently learning how to create raw transactions. I can already create standard using bitcoin core (0.19.1), but when I wanted to create with custom opcode like this: asm: OP_HASH160 ...
M A's user avatar
  • 89
1 vote
1 answer
2k views

Transaction fails to validate (Error running script)

I've created a transaction on the TESTNET and am trying to push it via BlockCyphers facility at: https://live.blockcypher.com/btc-testnet/pushtx/ when I make the attempt, I get the following error: ...
ekkis's user avatar
  • 177
1 vote
1 answer
410 views

How to implement getrawmempool?

I’m trying to get all transaction ids in the memory pool as json array. I just finish downloading bitcoin core and do now know where to begin. Any help would be appreciated!!
Xi Zheng's user avatar
1 vote
1 answer
537 views

Create a 2-of-3 multisig raw transaction

I would like to create a Bitcoin transaction with a single input and a single 2-of-3 multisig output that pays 1 BTC to any 2 of the following 3 keys: ...
Δήμητρα Γεωργίου's user avatar
1 vote
1 answer
272 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 ...
Nicos Karalis's user avatar
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 : ...
paul You's user avatar
1 vote
1 answer
103 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,...
Izi Tors's user avatar
1 vote
1 answer
605 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 ...
Dario's user avatar
  • 11
1 vote
1 answer
419 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/...
Shahbaz's user avatar
  • 175
1 vote
2 answers
654 views

Is there any python library could be used to decodescript in output

For example decode the ScriptPubKey like 4104678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38c4f35504e51ec112de5c384df7ba0b8d578a4c702b6bf11d5fac to some data like ...
Carpemer's user avatar
  • 331
1 vote
1 answer
2k 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 ...
saeid ezzati's user avatar
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: ...
chupacabra's user avatar
1 vote
1 answer
362 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 ...
user3554230's user avatar
1 vote
1 answer
645 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 ...
user1420716's user avatar
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,...
mastermindxxx's user avatar
1 vote
1 answer
1k views

Unspendable outputs vs Black Hole address

On the Script page of the Bitcoin Wiki, in the "Provably Unspendable/Prunable Outputs" section, it gives an example of a script which would make that output of the transaction unspendable. In the ...
meshcollider's user avatar
  • 11.9k
1 vote
1 answer
42 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 ...
UriCS's user avatar
  • 133
1 vote
1 answer
330 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: [...
UriCS's user avatar
  • 133
1 vote
1 answer
663 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. ...
Jan Wytze's user avatar
  • 299
1 vote
1 answer
675 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":"...
Tuhina Singh's user avatar
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, ...
Alin Tomescu's user avatar
  • 1,337
1 vote
2 answers
533 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: ...
salezica's user avatar
  • 165
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 ...
Mark Messa's user avatar
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 ...
sl0vaj's user avatar
  • 11
1 vote
1 answer
469 views

How to redeem Non-standard script Tx (testnet instance)

Th testnet TxID 8d897ca91774a7fafa086a3275e679248d6bffee015d3b2efefd5dab00df152d has the following scriptPubKey: scriptPubKey: "OP_DUP OP_HASH160 5f1426c2ce4a8e1abaa9dbe819b6303eb8a25a26 ...
Wizard Of Ozzie's user avatar
1 vote
2 answers
132 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": "[] [...
Wizard Of Ozzie's user avatar
1 vote
1 answer
397 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 ...
Jon B's user avatar
  • 207
1 vote
1 answer
587 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 ...
Wizard Of Ozzie's user avatar
1 vote
1 answer
286 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 ...
Injured Platypus's user avatar
1 vote
1 answer
125 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 "...
user1534422's user avatar
1 vote
1 answer
327 views

Using the Bitcoin Crate to Sign a Segwit Transaction

Using the Bitcoin crate, I'm trying to create a transaction programmatically in Rust that spends an output associated with a P2WPKH address. This is the relevant code snippet: fn sign_transaction<...
THLO's user avatar
  • 11
1 vote
0 answers
194 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 = { ...
forhas's user avatar
  • 137
1 vote
1 answer
181 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 ...
forhas's user avatar
  • 137
1 vote
0 answers
315 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 ...
FancyCookie's user avatar
1 vote
2 answers
395 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 ...
vatzcar's user avatar
  • 13
1 vote
0 answers
41 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 ...
manymanymore's user avatar
1 vote
0 answers
211 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 ...
Carlos's user avatar
  • 261
1 vote
0 answers
454 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 ...
Lance's user avatar
  • 221
1 vote
0 answers
115 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 ...
Aristo's user avatar
  • 21
1 vote
1 answer
844 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 ...
Michele's user avatar
  • 113

1
4
5
6 7 8