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
2 answers
606 views

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

For example decode the ScriptPubKey like 4104678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38c4f35504e51ec112de5c384df7ba0b8d578a4c702b6bf11d5fac to some data like ...
  • 301
0 votes
1 answer
103 views

Cryptocurrency: check if transaction is viable masternode output

I'm developing a tool for masternode automization similar to https://gincoin.io . I'm trying to figure out how to decode if transaction is viable for a masternode. From what I know the ...
  • 113
1 vote
1 answer
912 views

Does exist some library for decode/encode raw transaction?

I want to parse raw transaction into JSON then change some values and encode back to hex. JSON like this: { "addresses": [ "346vcZZ6QV4nr68fybMEuA7qxxQeyKWoPS" ], "block_height": -1, "...
  • 31
0 votes
1 answer
184 views

Bitcoin Pay-to-PubKeyHash (P2PKH) in multi-sig addresses

Can we send Pay-to-PubKeyHash (P2PKH) to an address which starts from 3 . I tried to send raw transaction to one of my coinbase address which starts from 3 but it send to completely different address ...
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 ...
5 votes
2 answers
349 views

what's the point of "n" in "vout"? getrawtransaction

It seems like "n" is the index, is that true? If that is the case, why is the "n" key necessary? Example: bitcoin-cli getrawtransaction ...
0 votes
1 answer
395 views

What's the best way to store unspent transaction?

AFAIK, To send a raw transaction, which include both input and output. And What if we run it on the local node, we can simply fetch the unspent list by run bitcoin-cli listunspent, but If I just want ...
  • 141
1 vote
1 answer
134 views

Raw transactions - SubtractFeeFromAmount flag

I'm currently working on a project (I'm a beginner in the world of cryptocurrencies) where we are using Raw Transactions, I want to know if in raw transactions there's a flag similar to ...
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: ...
0 votes
1 answer
954 views

Tether USDT raw transaction unsigned

I'm not using omnicore by RPC calls, I dont want to put a server up and make those RPC calls, I want to make a simple transaction on the TetherUS(USDT) network, this is my code: const ...
  • 105
1 vote
1 answer
317 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
551 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 ...
2 votes
0 answers
304 views

Multisig signrawtransaction fails

I have 3 private keys (a,b,c) which belong to an address (2 of 3) from which I want to spend funds using RPC commands. I´ve started with generating the redeemScript using createmultisig() and the pub ...
  • 135
0 votes
1 answer
167 views

Error in creating bitcoin raw transaction

I am creating a raw transaction to send amount from from_address to to_address. While sending a transaction I got an error. I posted the detailed process of creating a raw transaction. Could anyone ...
  • 107
2 votes
1 answer
210 views

Can two signed transactions be merged into one?

I'm in a situation where I have a presigned transaction, which, due to a bug in software that generated it, has a fee lower than minimal relay fee. I have that transaction's hex, but it can't be ...
3 votes
2 answers
2k views

16: bad-txns-vin-empty. Code:-26

I am trying to push a raw transaction via BTC insight API, but I always get an error message: 16: bad-txns-vin-empty. Code:-26 Here is the raw transaction hex: ...
  • 135
2 votes
1 answer
672 views

Send raw transaction (have tx_hex) on litecoin testnet using api or module

I have raw data (tx_hex) for raw transaction, but I cant send it to litecoin tesnet using post request to testnet.litecore.api. If I insert tx_hex manually in the browser, the transaction is correctly ...
2 votes
2 answers
436 views

Breaking down a raw transaction:

Complete example: ...
0 votes
1 answer
80 views

Why do I get 5 bytes worth of 0x00 hex values in both outputs?

From the hex generated by the createrawtransaction command, I understand that the following is the output value: ...
0 votes
2 answers
113 views

Breaking down the hex value for output 1

Within the hex generated by createrawtransaction, I am trying to understand the output 1 hex. The output 1 hex I have is: 76a914ab68025513c3dbd2f7b92a94e0581f5d50f654e788ac Spacing out the ...
3 votes
2 answers
578 views

Unable to construct a correct raw transaction for bitcoin cash testnet

I am trying to construct a raw transaction for bitcoin cash testnet. I have made a lot of use out of this very nice answer to how to construct a raw transaction, but am still unable to construct a ...
7 votes
2 answers
2k views

HTLC (Hash Time Lock Contract) using bitcoin-qt

Is it possible to manually create a HTLC using the bitcoin-qt command line? I know how to manually creating createrawtransaction/sendrawtransaction using the bitcoin-qt clients command line, and ...
1 vote
1 answer
419 views

What format is this scriptPubKey?

I'm running BitcoinUnlimited's giga_perf branch of bitcoin in regest mode, and I'm noticing a different format than P2PKH in the scriptPubKey when running listunspent over rpc. Typically I see ...
3 votes
1 answer
669 views

How can I get the raw tx hex from bitcoind with the txid?

Is there any way to get the raw tx hex when I know the txid using bitcoind not third party. Currently I'm using a thirdparty (blockcypher) but now I want to switch to bitcoind.
0 votes
1 answer
2k views

bad-txns-nonstandard-inputs error after sendrawtransaction

I smashed my head over the table trying to send raw transaction and every time get the same error bad-txns-nonstandard-inputs. So, here is what I do: Get unspent transactions bitcoin-cli ...
0 votes
1 answer
91 views

Can transaction id be used to verify a transaction?

I have seen alot of questions here on "Transaction Malleability issue". Editing of transaction id can be done by miners or nodes which relay the transaction. What I want to know is whether the ...
  • 141
0 votes
1 answer
149 views

Less circuitous way to get network fee in raw transaction

I have my code working correctly now to create and send a transaction with the correct network fee. Here is my pseudo-code using the json rpc: Estimate network fee using estimatesmartfee "ECONOMICAL" ...
  • 774
0 votes
1 answer
717 views

Litecoin - mandatory-script-verify-flag-failed (Signature must be zero for failed CHECK(MULTI)SIG operation)

I have manually a raw transaction using bit library in order to send a transaction using Litecoin testnet. After adjusting fee's and other network variables I got the following error that is stated in ...
  • 3
1 vote
0 answers
168 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 ...
0 votes
1 answer
1k views

How to create a valid unsigned transaction

How can I create a valid unsigned transaction which can be broadcasted and mined using these addresses? Could someone create the raw transaction and show me? sender's address: ...
  • 117
3 votes
1 answer
705 views

What does the transaction version byte mean?

What does the transaction version byte mean and what would happen if it was 02 instead of 01? Example: ...
  • 373
0 votes
1 answer
388 views

getrawtransaction asm returns with [ALL], should it be?

.\bitcoin-cli.exe getrawtransaction af66f73a42d33a446e52f1c8e82a99fcd9d788a0ec5c70de6f633 213a7546cdb true "scriptSig": {"asm": "30460221009c8...acc0a2a [ALL] the same transaction on blockchain ...
0 votes
2 answers
106 views

When manually creating a raw bitcoin tx, how does one determine whether the r or s values require more zeros?

Supposedly, if an R or S value will equal a "negative" number, one must append zeros to it and alter the "length" descriptor for the value to reflect that. When manually creating a raw tx how does ...
  • 1,416
1 vote
1 answer
522 views

Analysing the raw block Hex file but I can not find the expected information

My goal is to understand better, how transactions and blocks are built raw. For that, I found several questions and answer here on StackExchange, but the best for me was this post: Download single and ...
0 votes
0 answers
429 views

decoded raw transaction size & vsize mean? [duplicate]

I have decoded my raw transaction using decoderawtransaction, I got these value "size" => 259 "vsize" => 259 is that block size ? if it does, is that byte or killo byte ? I want to calculate ...
0 votes
2 answers
228 views

How is a transaction formated/signed?

Every transaction takes unspent outputs as inputs and creates new outputs. The creator of the transaction uses his private key to sign the transaction and nodes validate that transaction by using the ...
  • 68
1 vote
1 answer
86 views

How are 'excessive' numbers of inputs and outputs handled in bitcoin transactions?

I wrote a bitcoin transaction parser in python and it flips out when transactions have more than 255 inputs or outputs. Some transactions have their number of inputs/outputs represented by a 1 byte ...
  • 1,416
6 votes
1 answer
986 views

How would this normal raw transaction appear if it was a raw segwit transaction?

How would this raw bitcoin transaction appear if it was a raw segwit transaction? https://blockchain.info/tx/ff8766ec873ff55cc0ac17dee7b379a4efa2a5c83dabdd9a30287c7761ad55d5 This TX Raw is: ...
  • 1,416
0 votes
2 answers
645 views

What is the simplest python program that would query the bitcoin core client for a raw tx?

I put this one together that claims "no JSON object could be decoded". from bitcoinrpc.authproxy import AuthServiceProxy access = AuthServiceProxy("http://user:password@127.0.0.1:8332") ...
  • 1,416
2 votes
3 answers
1k views

explain decoderawtransaction output fields and interpretation

I am trying to obtain information about a raw transaction in hex before it is broadcasted. This command multiple elements JSON formatted. I'd like a simpler explanation for them: txid - hash of the ...
  • 179
1 vote
0 answers
146 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(...
-2 votes
1 answer
797 views

How can I set the fee rate for raw transactions on Bitcore?

I'm building a raw transaction. How do I set the relay fee in the Bitcore console wallet? I'm trying to send a transaction with 2 signatures. I created the transaction and signed the transaction with ...
  • 71
2 votes
1 answer
112 views

Can I use uncompressed public keys in Bitcoin Cash transactions?

It have read that Bitcoin Cash uses BIP 143 to generate the signatures and that BIP 143 does not accept uncompressed public keys. Does that mean that you cannot send a Bitcoin Cash transaction using ...
0 votes
1 answer
423 views

How to transfer btc from multiple btc addresses to a single btc address?

I have 3 btc addresses and let's say each btc address has 1 bitcoin. If I want to transfer to my address from 3 btc addresses, I have to create 3 transactions and every time I have to pay a mining fee....
  • 107
2 votes
2 answers
2k views

How to create hex of raw transaction

Below is my response after creating the transaction. How do I create the hex encoded string of raw transaction in PHP. Is there package for it in PHP ? { "tx": { "block_height": -1, ...
1 vote
0 answers
98 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 ...
  • 113
3 votes
1 answer
2k views

How to push a raw transaction using BitcoinJS (and Request)?

I'm using BitcoinJS to create a playground for Bitcoin transactions. I have created the following Javascript file: const request = require('request'); const proxiedRequest = request.defaults({proxy: "...
1 vote
1 answer
123 views

What are the parts of and how is a raw coin generation transaction made?

Referencing: https://blockchain.info/tx/9b0fc92260312ce44e74ef369f5c66bbb85848f2eddd5a7a1cde251e54ccfdd5 With raw data: ...
  • 1,416
0 votes
0 answers
509 views

Unable to broadcast native P2WPKH (SegWit) TX; malformed, but how?

I'm trying to add SegWit functionality to my app but am running into trouble building my transaction. I've read BIP143 so many times I virtually have it memorized, and I've followed it to the letter. ...
0 votes
2 answers
356 views

Unclear on double-hashing previous Transaction when creating a new Transaction

I'm having trouble performing the double-sha256 hash of the previous transaction, Step 3 in this explanation. The previous transaction is: ...

1 2 3
4
5
8