Sort:  

And just a FIY, if you run testnet, you need to add -testnet flag to each rpc command.