Author

Topic: Generate bitcoin genesis block with more than 1 address (Read 187 times)

legendary
Activity: 2212
Merit: 5622
Non-custodial BTC Wallet
Total Input
0.00000000 BTC  Roll Eyes
Total Output
25.10838995 BTC  Roll Eyes


BTC from Air HuhHuh??

Yes. That is a special transaction. It is the first transaction in a block, called the "coinbase transaction". That is how bitcoins are created.

lol
Bitcoin doesn't come from the air, but from mining.

Although it can come from air, if your mining rig is powered by Wind power.
Bitcoin can come from air, water, coal, oil. Energy is transformed into newly created bitcoins Smiley

It's the best example what I need. But how I can do this myself? Without third party wallets. I want include it to the bitcoin source code fork as you can imagine).
Bitcoin itself can do this, you don't need to create a fork to do that. No need to change the bitcoin code.

just need to properly configure your coinbase transaction properly. Probably bitcoin core can do this. I would ask in Bitcoin Technical Discussion board.
newbie
Activity: 12
Merit: 0
If anyone know how to solve my problem, I could pay.
newbie
Activity: 12
Merit: 0
You simply create the standard coinbase transaction with multiple outputs instead of just one. BTCC (now Ballet) does that for its physical bitcoins. Here is one of their coinbase transactions: https://www.blockchain.com/btc/tx/ced9ec9201e161f2625ecb21e81a9a29d25c992aea83ee6af707ee31cbd172d1

It's the best example what I need. But how I can do this myself? Without third party wallets. I want include it to the bitcoin source code fork as you can imagine).
member
Activity: 846
Merit: 22
$$P2P BTC BRUTE.JOIN NOW ! https://uclck.me/SQPJk
You simply create the standard coinbase transaction with multiple outputs instead of just one. BTCC (now Ballet) does that for its physical bitcoins. Here is one of their coinbase transactions: https://www.blockchain.com/btc/tx/ced9ec9201e161f2625ecb21e81a9a29d25c992aea83ee6af707ee31cbd172d1

Total Input
0.00000000 BTC  Roll Eyes
Total Output
25.10838995 BTC  Roll Eyes


BTC from Air HuhHuh??

Yes. That is a special transaction. It is the first transaction in a block, called the "coinbase transaction". It is how bitcoins are created.

First saw this transaction. I was saw only deposited btc on exchange.
legendary
Activity: 4298
Merit: 3209
You simply create the standard coinbase transaction with multiple outputs instead of just one. BTCC (now Ballet) does that for its physical bitcoins. Here is one of their coinbase transactions: https://www.blockchain.com/btc/tx/ced9ec9201e161f2625ecb21e81a9a29d25c992aea83ee6af707ee31cbd172d1

Total Input
0.00000000 BTC  Roll Eyes
Total Output
25.10838995 BTC  Roll Eyes


BTC from Air HuhHuh??

Yes. That is a special transaction. It is the first transaction in a block, called the "coinbase transaction". That is how bitcoins are created.
member
Activity: 846
Merit: 22
$$P2P BTC BRUTE.JOIN NOW ! https://uclck.me/SQPJk
You simply create the standard coinbase transaction with multiple outputs instead of just one. BTCC (now Ballet) does that for its physical bitcoins. Here is one of their coinbase transactions: https://www.blockchain.com/btc/tx/ced9ec9201e161f2625ecb21e81a9a29d25c992aea83ee6af707ee31cbd172d1


 Grin Grin Grin Grin Grin Grin Grin Grin Grin Grin Grin


Total Input
0.00000000 BTC  Roll Eyes
Total Output
25.10838995 BTC  Roll Eyes


BTC from Air HuhHuh??


 Grin Grin Grin Grin Grin Grin Grin Grin




Ghoct transaction  Grin Grin Grin Grin Grin Grin Grin


https://www.blockchain.com/btc/tx/0000000000000000000000000000000000000000000000000000000000000000



Imho. This is  strange wallet, but if this like ETH with facking automatic nonstop-out scrip.... nonononon.

 Grin Grin Grin Grin Grin Grin Grin


How you can find so strage walets, I apologies this is very deep blockchain knowledge you have !!!  Cool

Bro, this wallets can do this:

Total in - 1000 BTC
Total out - 0 BTC
Final ballance 0 BTC

? Grin

I think so wallets is a new scam method - "in btc, in btc, in btc, .........,FINAL BALANCE 0" Grin
legendary
Activity: 4298
Merit: 3209
You simply create the standard coinbase transaction with multiple outputs instead of just one. BTCC (now Ballet) does that for its physical bitcoins. Here is one of their coinbase transactions: https://www.blockchain.com/btc/tx/ced9ec9201e161f2625ecb21e81a9a29d25c992aea83ee6af707ee31cbd172d1
newbie
Activity: 12
Merit: 0
Add this to your main.cpp file this is for scrypt based coins but you can edit it to be for SHA256 if you require this will mine your genesis block and spit out the hash into the debug.log

This is a very old method of doing this.

Good luck.

I know how to generate standard genesis block with 50 coins for 1 address. My question is not about generating normal block with 1 output. I need block with more than 1 output. For example: 10 coins for 5 addresses.
hero member
Activity: 1194
Merit: 573
OGRaccoon
Hello. I would like generate bitcoin genesis block with 10 coins for 5 different addresses in 1 block instead 50 coins for 1 address. Anybody know how to do this? Any ideas?

Add this to your main.cpp file this is for scrypt based coins but you can edit it to be for SHA256 if you require this will mine your genesis block and spit out the hash into the debug.log

This is a very old method of doing this.

Good luck.

Code:
if (false && block.GetHash() != hashGenesisBlock)
        {
            printf("Searching for genesis block...\n");
            // This will figure out a valid hash and Nonce if you're
            // creating a different genesis block:
            uint256 hashTarget = CBigNum().SetCompact(block.nBits).getuint256();
            uint256 thash;
            char scratchpad[SCRYPT_SCRATCHPAD_SIZE];
 
            loop
            {
#if defined(USE_SSE2)
                // Detection would work, but in cases where we KNOW it always has SSE2,
                // it is faster to use directly than to use a function pointer or conditional.
#if defined(_M_X64) || defined(__x86_64__) || defined(_M_AMD64) || (defined(MAC_OSX) && defined(__i386__))
                // Always SSE2: x86_64 or Intel MacOS X
                scrypt_1024_1_1_256_sp_sse2(BEGIN(block.nVersion), BEGIN(thash), scratchpad);
#else
                // Detect SSE2: 32bit x86 Linux or Windows
                scrypt_1024_1_1_256_sp(BEGIN(block.nVersion), BEGIN(thash), scratchpad);
#endif
#else
                // Generic scrypt
                scrypt_1024_1_1_256_sp_generic(BEGIN(block.nVersion), BEGIN(thash), scratchpad);
#endif
                if (thash <= hashTarget)
                    break;
                if ((block.nNonce & 0xFFF) == 0)
                {
                    printf("nonce %08X: hash = %s (target = %s)\n", block.nNonce, thash.ToString().c_str(), hashTarget.ToString().c_str());
                }
                ++block.nNonce;
                if (block.nNonce == 0)
                {
                    printf("NONCE WRAPPED, incrementing time\n");
                    ++block.nTime;
                }
            }
            printf("block.nTime = %u \n", block.nTime);
            printf("block.nNonce = %u \n", block.nNonce);
            printf("block.GetHash = %s\n", block.GetHash().ToString().c_str());
        }
newbie
Activity: 12
Merit: 0
Hello. I would like generate bitcoin genesis block with 10 coins for 5 different addresses in 1 block instead 50 coins for 1 address. Anybody know how to do this? Any ideas?
Jump to: