Bitcoin sending transaction error

I recently bought some Bitcoins(around 0.5) and sent some to a friend. He got them direct. Today I wanted to transfer some more but it didn’t work. Every transaction was an error, besides one very small one(0.001 BTC).
All transactions are marked with a questionmark, so they are not confirmed for whatever reason.
After I restarted my bitcoin client, most of the transactions were marked with an exclamation mark.
I have no idea why I can not send money any more. Anyone having similiar problems and got a solution?

Thank you!

Here is a screenshot btw: enter image description here

Bitcoin without mining – what needs to be implemented

I have read this related question – Bitcoin without mining and I am trying to understand the very basics of Bitcoin network and the blockchain.

I wonder, if we take the mining out of Bitcoin, what would we need to implement in order to make it a working system again.

So far, I am aware of these components that rely on mining:

  • new coin generation – without mining, we would need to implement a new way of introducing new coins to the system
  • bitcoin mining is used to create and validate blocks which contain transactions that are to be included in the immutable blockchain – so, without mining, we would need to create another system of creating new blocks that all the nodes will accept (i.e. consensus)

My questions are:

  1. Is there anything else that would need to be done? In this question I assume everything else we would like to work like Bitcoin.
  2. What are the alternatives of building blockchain? If we think about Bitcoin as a currency scheme only (and disregard other aspects of having blockchain) – do we really need a chain that stores all the history? Can’t we just have accounts and their balances and update them? I.e. what are the other options of solving the double-spend problem besides having a full history in a chain.

Custom receive payments method?

So it’s a known problem that blockchain.info’s api only allows a gap of 20 unpaid addresses, which sucks and makes their api almost completely worthless. But I was thinking how could I make my own receive payments method with their other not so restricting API’s. and I came up with this Idea but I’m not sure if it’ll work and I need someone who has expierance with their api to tell if it will.
so here’s my idea:

  1. First I create a new address for when a user creates an account
  2. I save the new deposit address to the users database entry
  3. when the user views the deposit address the user is able to press a refresh button to check if the transaction is arrived with the needed confirmations.
  4. or the client sends a request to the server every 10mins to see if the transaction was sent and confirmed.
  5. if it arrived we create a new address and save this as the new deposit address and add the amount sent to the balance.
  6. the loop continues without any gap problems!

will this work or am I missing something. thank you.

Correct way to convert a 256-bit private key to WIF?

On the Bitcoin wiki it has steps to convert a private key to WIF. So I tried following these steps in attempt to get the same result.

So I took the private key.

0C28FCA386C7A227600B2FE50B7CAE11EC86D3BF1FBE471BE89827E19D72AA1D

I put 80 on the front.

800C28FCA386C7A227600B2FE50B7CAE11EC86D3BF1FBE471BE89827E19D72AA1D

And then I performed SHA-256 on it using this.

e2e4146a36e9c455cf95a4f259f162c353cd419cc3fd0e69ae36d7d1b6cd2c09

And that is where I run into a problem. On the wiki page it says the result of SHA-256 should be…

8147786C4D15106333BF278D71DADAF1079EF2D2440A4DDE37D747DED5403592

And that does not match my SHA-256 result.

Not sure what I am doing wrong.

Bitcoins transactions over 1000 confirmations, but amount remains red

I’m newbee,

I did several payments about 14 days ago.
There are 618 confirmations, but the amount remains red and nothing happens.
See the example of my blockchain wallet and 4 more examples.
The balance of my blockchain wallet is Zero.
In the other examples i have more then 1000 confirmations and still rising every hour.
What do I wrong ?
enter image description here

Can’t find correct z1 & z2 for transaction

I’ve been trying to understand the issue and repeat Willem Hengeveld’s answer, but I think I’m failing at getting correct script for hash.

I’m looking for this transaction, my scripts are:

010000000396773312284612e55b124e19b885038f625ce18f99711c9138d22c391a2abc86000000001976a914fa6b5cff131a62d212f5c99d8bfaf35a9299ad5288acffffffff2f4fcd2541be1e286b7eee1a24bf0b9d6a6333c05ed7955d083f0778e2a23efc0000000000ffffffff40dc504498fa0ff41f2a6d882b640a17a4fbdb96a34ff28ad7f83c85fd78521e0000000000ffffffff0240420f00000000001976a91406f1b66ffe49df7fce684df16c62f59dc9adbd3f88ac66732c00000000001976a914fa6b5cff131a62d212f5c99d8bfaf35a9299ad5288ac0000000001000000

010000000396773312284612e55b124e19b885038f625ce18f99711c9138d22c391a2abc860000000000ffffffff2f4fcd2541be1e286b7eee1a24bf0b9d6a6333c05ed7955d083f0778e2a23efc000000001976a914fa6b5cff131a62d212f5c99d8bfaf35a9299ad5288acffffffff40dc504498fa0ff41f2a6d882b640a17a4fbdb96a34ff28ad7f83c85fd78521e0000000000ffffffff0240420f00000000001976a91406f1b66ffe49df7fce684df16c62f59dc9adbd3f88ac66732c00000000001976a914fa6b5cff131a62d212f5c99d8bfaf35a9299ad5288ac0000000001000000

And double SHA256 are:

z1 = 1a374484e71c12135cda76c1261801e9f8fc27108e3f5e439679ef13eb300eae

z2 = e366e7bc7d5c12808b88e1b89c27436ac9cb3ae482dd044faeb7fab4654cbeac

Even applying +/- for s1,s2 I’m getting those 4 private keys:

68d4ee844087fc39a62269c41a2c7d521966aa9687a596ab9207e997ddee0ba3
5d201313d68f45cfd5b187584efe4e5d9579a571a0876a3e1fb649ed91942897
a2dfecec2970ba302a4e78a7b101b1a1253537750ec135fda01c149f3ea218aa
972b117bbf7803c659dd963be5d382aca148325027a309902dca74f4f248359e

Which do not corresponded to that public key. What I’m doing wrong?

Can I send Bitcoins without a wallet

How can I send bitcoins to someone, without having to purchase them first or set up a wallet?

I’m looking for a service that will send N bitcoins to a given address. I pay them with my credit card or paypal. I don’t wish to purchase any bitcoins myself, have a wallet, set up any kind of account, or give anyone my email address. I don’t want to know anything about bitcoins beyond my initial instruction to send N bitcoins to a given address. Does such a service exist?

BIP 37 automatic filter update not inserting outputs

I’m having a problem with bloom filters when using the getdata message.

As I understand BIP 37, setting the bloom filter on a connection using the loadfilter message with flag BLOOM_UPDATE_P2PUBKEY_ONLY set, the responding client automatically inserts all outpoints (TXID and output index) in the bloom filter of transactions matching the filter. However, when I attempt to do exactly this, the node only ever sends transactions containing outputs TO the address I am filtering for, never transaction that contain outputs FROM the address I am filtering for.

My approach is as follows:

  1. Add the following public key to the bloom filter: 1JbFvyaMyHHmvvjc54h4YARq3uoX2ZZ4Qj (randomly picked)
  2. Send the filterload message containing the filter (as seen in the wireshark snippet below).

    Bitcoin protocol
    Packet magic: 0xf9beb4d9
    Command name: filterload
    Payload Length: 261
    Payload checksum: 0x2bb02c45
    Filterload message
        Filter
            Count: 251
            Data: 000000040004010000000100000000000000020000400000...
        nHashFunc: 13
        nTweak: 0x1a689ff4
        nFlags: BLOOM_UPDATE_P2PUBKEY_ONLY (0x02)
    
  3. Send the getdata message with the hash of all blocks containing transactions to and from the wallet (which I have identified on a block explorer for the purpose of testing this). The inventories are typed MSG_FILTERED_BLOCK.

The node responds with the following messages in order:

MerkleBlock: 000000000000000001201ab2679db7c87a432967c060596bad0ac093dac94111
Tx:......... 187b00588e8d7844c405da9a15d78dbd7ebb9b2887fb5aace6651719fede923e
Tx:......... dbbca0d839435ac77db65378a9607d17b0aa965f3027d84dcf0ee5115dc8d32f
Tx:......... 17c12f45956082a913c0c862d573cf067fa5ee96ba5b954914371da6bef51f7f
Tx:......... 36cce25d34a5da0f7d69253743eae7bb7c576e5543d0eb16db0f72967edb4bc6
Tx:......... 6ea48c6286b1691cd1ecec271a3f52a3fe099467bb6c926b41ba8942e21d4aa6
MerkleBlock: 0000000000000000049ee67931f6d4970a7d06b14b8aadd406223ab65efe5025
MerkleBlock: 0000000000000000019f3fc2c8da43e8a81373ae189ace4caec6c59969f46ff6
MerkleBlock: 000000000000000000f67dad206798db2e6c5dffec84d213397784be894e66fa

The 5 transactions in the list are correct, as the contain outputs targeting said wallet.
However, block 0000000000000000019f3… contains transactions with inputs from said wallet, but the merkleblock message of this block is not followed by these transactions.
Shouldn’t the node add the outputs of these 5 transactions to the bloom filter, and thereby match the later transactions containing inputs pointing at them?

I have confirmed that the node is in possession of the relevant transactions.
If i load the filter manually, adding the outputs myself, this works as intended.

Am I misunderstanding how BIP 37 is used?