Bitcoin Forum
May 02, 2024, 04:30:06 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Записи блоков. bitcoin-cli  (Read 63 times)
zuuuuk (OP)
Newbie
*
Offline Offline

Activity: 11
Merit: 1


View Profile
March 26, 2023, 03:45:19 PM
 #1

Добрый день.

Я установил себе bitcoin core .
И скачал всю историю транзакций.

Подскажите , а можно как-то вытащить транзакцию по ее номеру в блоке и зная номер блока?
Через bitcoin-cli
1714624206
Hero Member
*
Offline Offline

Posts: 1714624206

View Profile Personal Message (Offline)

Ignore
1714624206
Reply with quote  #2

1714624206
Report to moderator
1714624206
Hero Member
*
Offline Offline

Posts: 1714624206

View Profile Personal Message (Offline)

Ignore
1714624206
Reply with quote  #2

1714624206
Report to moderator
Once a transaction has 6 confirmations, it is extremely unlikely that an attacker without at least 50% of the network's computation power would be able to reverse it.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714624206
Hero Member
*
Offline Offline

Posts: 1714624206

View Profile Personal Message (Offline)

Ignore
1714624206
Reply with quote  #2

1714624206
Report to moderator
1714624206
Hero Member
*
Offline Offline

Posts: 1714624206

View Profile Personal Message (Offline)

Ignore
1714624206
Reply with quote  #2

1714624206
Report to moderator
igor72
Legendary
*
Offline Offline

Activity: 1820
Merit: 2003


Crypto Swap Exchange


View Profile
March 26, 2023, 04:19:12 PM
Merited by xandry (1)
 #2

В консоли командой getrawtransaction.

█▀▀▀











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











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
~DefaultTrust
Copper Member
Sr. Member
****
Offline Offline

Activity: 1554
Merit: 487

Stop the war!


View Profile
March 26, 2023, 04:58:32 PM
Merited by xandry (4)
 #3

Добрый день.

Я установил себе bitcoin core .
И скачал всю историю транзакций.

Подскажите , а можно как-то вытащить транзакцию по ее номеру в блоке и зная номер блока?
Через bitcoin-cli

Попробуй так: bitcoin-cli help

Ну или так:

Do not trust bitcointalk fascists: leonello; Snork1979; ivan1975
witcher_sense
Legendary
*
Offline Offline

Activity: 2324
Merit: 4316

🔐BitcoinMessage.Tools🔑


View Profile WWW
March 27, 2023, 03:53:41 AM
Merited by xandry (1)
 #4

Добрый день.

Я установил себе bitcoin core .
И скачал всю историю транзакций.

Подскажите , а можно как-то вытащить транзакцию по ее номеру в блоке и зная номер блока?
Через bitcoin-cli
Если вы про транзакции в привычном понимании, то без установки допольнительного программнооо обеспечения в Bitcoin Core их не увидеть. Помню еще главу из Mastering Bitcoin, в которой объяснялось, что на самом деле в транзакции нет ни адресов, ни отправителей, ни получателей, ни балансов, ни аккаунтов и приводился пример обычной транзакции:



Behind the scenes, an actual transaction looks very different from a transaction provided by a typical block explorer. In fact, most of the high-level constructs we see in the various bitcoin application user interfaces do not actually exist in the Bitcoin system.

We can use Bitcoin Core’s command-line interface (getrawtransaction and decoderawtransaction) to retrieve Alice’s "raw" transaction, decode it, and see what it contains. The result looks like this:
Alice’s transaction decoded

Code:
{
  "version": 1,
  "locktime": 0,
  "vin": [
    {
      "txid": "7957a35fe64f80d234d76d83a2a8f1a0d8149a41d81de548f0a65a8a999f6f18",
      "vout": 0,
      "scriptSig" : "3045022100884d142d86652a3f47ba4746ec719bbfbd040a570b1deccbb6498c75c4ae24cb02204b9f039ff08df09cbe9f6addac960298cad530a863ea8f53982c09db8f6e3813[ALL] 0484ecc0d46f1918b30928fa0e4ed99f16a0fb4fde0735e7ade8416ab9fe423cc5412336376789d172787ec3457eee41c04f4938de5cc17b4a10fa336a8d752adf",
      "sequence": 4294967295
    }
  ],
  "vout": [
    {
      "value": 0.01500000,
      "scriptPubKey": "OP_DUP OP_HASH160 ab68025513c3dbd2f7b92a94e0581f5d50f654e7 OP_EQUALVERIFY OP_CHECKSIG"
    },
    {
      "value": 0.08450000,
      "scriptPubKey": "OP_DUP OP_HASH160 7f9b1a7fb68d60c536c2fd8aeaa53a8f3cc025a8 OP_EQUALVERIFY OP_CHECKSIG",
    }
  ]
}
Разве то, что мы видим сверху похоже на привычную информацию из блокчейн эксплорера? Вряд ли. Но можно установить свой собственный эксплорер и получить удобоваримое представление движений в блокчейне. Благо вариантов масса:
https://github.com/janoside/btc-rpc-explorer
https://github.com/mempool/mempool
https://github.com/Blockstream/esplora
Еще можно найти парочку на этой странице: https://www.lopp.net/bitcoin-information/block-explorers.html

█▀▀▀











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











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
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!