Bitcoin Forum
May 11, 2024, 10:30:08 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: MacOS getrawtransaction No such mempool transaction...  (Read 116 times)
Eqvant (OP)
Full Member
***
Offline Offline

Activity: 244
Merit: 178



View Profile
August 08, 2020, 02:33:50 PM
 #1

Почему не вижу транзакцию при команде getrawtransaction на клиенте Bitcoin Core на Mac? Получаю следующее - "No such mempool transaction. Use -txindex or provide a block hash to enable blockchain transaction queries. Use gettransaction for wallet transactions. (code -5)". Ок, добавляю хеш блока, получаю Error parsing JSON:...
Нужны данные по результату выполнения команд:
getrawtransaction <yourTXID>
gettxoutproof '["'<yourTXID>'"]'

Help!!!

Не пропусти смену тренда, будь всегда в курсе цены bitcoin. Попробуй мой telegram бот CryprusPrice.
1715466608
Hero Member
*
Offline Offline

Posts: 1715466608

View Profile Personal Message (Offline)

Ignore
1715466608
Reply with quote  #2

1715466608
Report to moderator
1715466608
Hero Member
*
Offline Offline

Posts: 1715466608

View Profile Personal Message (Offline)

Ignore
1715466608
Reply with quote  #2

1715466608
Report to moderator
1715466608
Hero Member
*
Offline Offline

Posts: 1715466608

View Profile Personal Message (Offline)

Ignore
1715466608
Reply with quote  #2

1715466608
Report to moderator
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.
1715466608
Hero Member
*
Offline Offline

Posts: 1715466608

View Profile Personal Message (Offline)

Ignore
1715466608
Reply with quote  #2

1715466608
Report to moderator
1715466608
Hero Member
*
Offline Offline

Posts: 1715466608

View Profile Personal Message (Offline)

Ignore
1715466608
Reply with quote  #2

1715466608
Report to moderator
A-Bolt
Legendary
*
Offline Offline

Activity: 2316
Merit: 2316


View Profile
August 08, 2020, 03:37:01 PM
Merited by Eqvant (1)
 #2

Конкретно эта команда даёт ошибку?

Code:
getrawtransaction 6310e7aea575a63b8a094d723f3adde265f80b020fcc88f5546e32eff5a49aa9 true 00000000000000000005d7f53b9a9469e6fbef5254cdd5d04a292ad977492d53
Eqvant (OP)
Full Member
***
Offline Offline

Activity: 244
Merit: 178



View Profile
August 08, 2020, 04:12:42 PM
 #3

Конкретно эта команда даёт ошибку?

Code:
getrawtransaction 6310e7aea575a63b8a094d723f3adde265f80b020fcc88f5546e32eff5a49aa9 true 00000000000000000005d7f53b9a9469e6fbef5254cdd5d04a292ad977492d53


Благодарю, я не прописывал "true".

Не пропусти смену тренда, будь всегда в курсе цены bitcoin. Попробуй мой telegram бот CryprusPrice.
A-Bolt
Legendary
*
Offline Offline

Activity: 2316
Merit: 2316


View Profile
August 08, 2020, 04:27:35 PM
Merited by Symmetrick (2), Eqvant (1)
 #4

Если getrawtransaction нужно выполнять часто, то имеет смысл включить индекс транзакций. В этом случае, достаточно будет выполнить 
Code:
getrawtransaction 6310e7aea575a63b8a094d723f3adde265f80b020fcc88f5546e32eff5a49aa9
без указания хеша блока.

Для поддержки индекса транзакций необходимо постоянно запускать Bitcoin Core с параметром -txindex либо добавить в bitcoin.conf строку txindex=1 . Для первоначального создания индекса нужно один раз запустить Bitcoin Core с параметрами -txindex -reindex , при следующем запуске -reindex уже не нужен.
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!