See source + console (assuming you have a testnet running on the same machine)