Bitcoin Forum
June 16, 2024, 03:00:12 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: bitcoin-cli -decodescript "hex" - method not found  (Read 443 times)
Frodek (OP)
Member
**
Offline Offline

Activity: 138
Merit: 25


View Profile
March 14, 2017, 05:28:00 PM
 #1

First after calling was
error code: -28
error message:
Loading block index...

next:
error code: -28
error message:
Verifying blocks...

but at last:
error code: -32601
error message:
Method not found

--------------

Ok, need be "decodescript" not "-decodescript"
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3430
Merit: 6705


Just writing some code


View Profile WWW
March 14, 2017, 05:34:40 PM
 #2

Don't have the - in front of your command. The - means that it is an option, not a parameter. The RPC call is a parameter, not an option.

Your command should be
Code:
bitcoin-cli decodescript "hex"

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!