getblocktemplate
getblocktemplate must be called with the segwit rule set (call with {“rules”: [“segwit”]}) (code -8) getblocktemplate {“rules”: [“segwit”]}
Error: Error parsing JSON:{rules:
Why? how right?
try getblocktemplate "{'rules': ['segwit']}"
getblocktemplate '{"rules": ["segwit"]}'
it needs to be surrounded by single quotes, with double quotes inside.
1 Like
getblocktemplate “{‘rules’: [‘segwit’]}”
Error: Error parsing JSON:{‘rules’: [‘segwit’]}
rpcpassword = 1
rpcuser = sys
rpcport = 8399
server = 1
whitelist=127.0.0.1
listen=1
addresstype = p2sh-segwit
usecashaddr = 0
rpcserialversion = 0