Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [raw-transaction]

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

0
votes
1answer
25 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 ...
0
votes
1answer
42 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 ...
0
votes
0answers
28 views

Transaction with Go(lang)

New to Bitcoin, so please forgive my ignorance... I'm trying to run a transaction on the bitcoin testnet from a go-lang application, but can't seem to get this working. I get an error "-25: Missing ...
1
vote
1answer
20 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/...
0
votes
0answers
33 views

BCH Send transaction failed: Missing inputs 25

I am using Bitcoin Cash JS to create a transaction, and my code is as follows: let BITBOXCli = require('bitbox-cli/lib/bitbox-cli').default; const explorers = require('bitcore-explorers') const ...
-1
votes
0answers
25 views

Raw data for my final thesis

Hey awesome people, I am writing final thesis on Bitcoin and I would appreciate if someone can direct me to couple of apis or datasets which have at least timeframe from January 2017 to January 2018....
0
votes
0answers
15 views

code : -26 message : “16: bad-txns-time-earlier-than-input”

I'm trying to sendrawtransaction using bitcoin-cli and getting the error { code:-26 message:"16: bad-txns-time-earlier-than-input" } I've decoded the raw tx { Time:0 locktime:0 size:123 ...
0
votes
1answer
23 views

How to add a signature to a transaction which I can broadcast

I am using ledger and multi sig to sign a transaction I got signature hash where both party signed the transaction. How can I attached this signature to the transaction so that I can broadcast it to ...
1
vote
1answer
70 views

Differentiating Output Script (scriptPubKey) Types

I am working on a little script to breakdown the data inside coinbase transactions. This is largely to improve my understanding of legacy and SegWit transactions (Given coinbase transactions have less ...
0
votes
1answer
61 views

Manage multiple users wallets for web wallet service

This already summaries the issue I'm currently trying to figure out to calculate the transaction fee to prevent negative balance. (testnet) I tried using createrawtransaction answered. When I tried ...
0
votes
1answer
38 views

Error when sending transaction: “Signature is found in scriptCode”

I'm trying to send transaction with scriptSig: OP_PUSHDATA<Sig> OP_PUSHDATA<Data1> OP_PUSHDATA<Data2> OP_PUSHDATA<Data3> OP_PUSHDATA<RedeemScript> But I get error: ...
0
votes
1answer
10 views

What does postfic in the wallet transaction id mean

It's known the txid is always a 32 byte hex sequence for example ceca9c54d1a2f9122326a871a3b0b20b725540137e80cb50da663a404f7849a8, but when inpecting the transaction in a wallet it shows it with a ...
0
votes
1answer
50 views

Sending P2SH transaction with non-standard script

I'm trying to send transaction with script: ScriptSig: OP_PUSHDATA<Sig> OP_PUSHDATA<Data1> OP_PUSHDATA<Data2> OP_PUSHDATA<Data3> OP_PUSHDATA<RedeemScript> Since the ...
0
votes
1answer
30 views

Why the PUSHDATA is 65 in the first transaction in blk00000.dat?

https://www.blockchain.com/btc/tx/4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b?show_adv=true The raw script is in the first transaction is: ...
0
votes
1answer
22 views

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

For example decode the ScriptPubKey like 4104678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38c4f35504e51ec112de5c384df7ba0b8d578a4c702b6bf11d5fac to some data like ...
0
votes
1answer
35 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 ...
0
votes
1answer
43 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, "...
0
votes
1answer
34 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 ...
0
votes
1answer
49 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 ...
4
votes
2answers
83 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
1answer
60 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 ...
0
votes
1answer
42 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 ...
0
votes
0answers
34 views

Testnet address requested redeem script for sending transaction

I've received some testnet bitcoins to address Qhk53zCTTetiLaYeL2xM41QfjYJRxpQJF5. And tried to spent them with my usual python code that worked couple months ago on the main net: tx = conn....
1
vote
1answer
108 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
1answer
202 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 ...
0
votes
1answer
46 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
1answer
69 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 ...
0
votes
0answers
26 views

How do you find the signing message of a TxIn signature? [NOT a duplicate] [duplicate]

So I'm trying to find m in s = (m + r * x) / k of a Bitcoin transaction input. Taking a look at this transaction, I can pull out s and r from the ScriptSig of an individual input: 30 45 02 21 ...
1
vote
0answers
73 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 ...
0
votes
1answer
71 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 ...
2
votes
1answer
40 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 ...
2
votes
2answers
337 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: ...
2
votes
1answer
163 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 ...
1
vote
2answers
178 views
0
votes
1answer
26 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
2answers
29 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
2answers
130 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 ...
0
votes
0answers
15 views

Hash Time Locked Contract (HTLC) using bitcoin-qt [duplicate]

Is it possible to manually create a Hash Time Locked Contract using the bitcoin-qt command line? I have dabbled with manually creating createrawtransaction / sendrawtransaction using the bitcoin-qt ...
5
votes
2answers
456 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
1answer
100 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 ...
2
votes
1answer
147 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
1answer
151 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
1answer
39 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 ...
0
votes
1answer
40 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" ...
0
votes
1answer
104 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 ...
1
vote
0answers
63 views

how to validate rawTx in bitcoinCash

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
1answer
195 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: ...
0
votes
1answer
115 views

Transaction version byte

What does the transaction version byte mean and what would happen if it was 02 instead of 01? Example: ...
0
votes
1answer
51 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
0answers
89 views

Build specific scriptPubKey

Help! I try to build specific scriptPubKey for output using bitcoinj library. It should look like this: 1 OP_DROP 54657374313131 5 OP_2DROP 3355185 OP_DROP OP_DUP OP_HASH160 ...