Bitcoin Forum
April 25, 2024, 12:02:57 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Btc исходный код вопрос про tx  (Read 135 times)
Cryptomans42 (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
February 14, 2023, 03:51:28 PM
 #1

Подскажите может кто вкурсе, туплю. Есть такой кусочек кода не могу получить значения
1) кошелька и амоунта vin, (по факту с какого кошелька скоко ушло) 

2)кошелек в vout (амаунт там есть) - тут кошелек кому пришло
Буду благодарен кто подскажет)
Или стукните в личку копейкой отблагодарю =)

     for (const CTransactionRef& tx :block.data->vtx) {
           if (!tx->IsCoinBase()) {
                for (const CTxIn &txin : tx->vin) {
                  LogPrintf("TX: %s %s \n",
                                                   txi[Suspicious link removed]evout.hash.toString(),block.height);

                }
               
                for (const CTxOut &txout : tx->vout) {
                                  LogPrintf("TX: %s %s\n", txout.ToString(),block.height);

                                }
            }

        }

Bitcoin mining is now a specialized and very risky industry, just like gold mining. Amateur miners are unlikely to make much money, and may even lose money. Bitcoin is much more than just mining, though!
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714046577
Hero Member
*
Offline Offline

Posts: 1714046577

View Profile Personal Message (Offline)

Ignore
1714046577
Reply with quote  #2

1714046577
Report to moderator
1714046577
Hero Member
*
Offline Offline

Posts: 1714046577

View Profile Personal Message (Offline)

Ignore
1714046577
Reply with quote  #2

1714046577
Report to moderator
~DefaultTrust
Copper Member
Sr. Member
****
Offline Offline

Activity: 1540
Merit: 487

Stop the war!


View Profile
February 14, 2023, 06:31:33 PM
 #2

Ниче непонятно.
Этот код работает или не работает? Если работает, то че в логи пишет?
Код в сообщении может лучше тегами оформлять? Там над смайликами есть квадрат с решеткой #

Do not trust bitcointalk fascists: leonello; Snork1979; ivan1975
Cryptomans42 (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
February 15, 2023, 06:20:45 AM
Last edit: February 15, 2023, 08:25:02 AM by Cryptomans42
 #3

решил проблему
xandry
Moderator
Legendary
*
Offline Offline

Activity: 3430
Merit: 3982


Crypto Swap Exchange


View Profile WWW
February 15, 2023, 03:59:01 PM
 #4

решил проблему
Так напишите как решили, чтобы может другим пригодилось.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
Voodoo People
Newbie
*
Offline Offline

Activity: 22
Merit: 0


View Profile
February 28, 2023, 11:30:10 AM
 #5

Без дополнительного контекста или информации о конкретных используемых переменных сложно определить, почему вы не можете получить кошелек и сумму для входа или адрес кошелька получателя для выхода
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!