getblock needs a "true" for its verbose argument, while getrawtransaction needs a "1".
all these should be consistent.
getblock needs a "true" for its verbose argument, while getrawtransaction needs a "1".
all these should be consistent.
I agree. This is confusing for users.
I've had a look through the RPCs, and as far as I can tell, getrawtransaction is the only call which takes an int for verbose.
I've opened #9025 to change getrawtransaction to take a bool for verbose. It will still take a num for backward compatibility, but will issue a warning to the user that using a num is deprecated.