Closed nicofuccella closed 3 years ago
As discussed privately, if you are using electrum based network, admissible types are:
p2sh-p2wpkh
p2wpkh
p2pkh
And changing the type to one of those fixes the issue.
Still the error is not nice and must be improved. That should be addressed in an upcoming change.
I'm trying to use the
create_subaccount
method from Java wrapper. This is the JSON I'm trying to use:Unfortunately I get
[Error: [json.exception.type_error.302] type must be number, but is object]
during the execution. I tried to use a number like0
or1
fortype
and I get this error:[Error: [json.exception.type_error.302] type must be string, but is number]
. What is a valid value fortype
?