In the [contracts tutorial][1], quite a long piece of code is provided on the geth console to the client: [...] function(e, contract){ if(!e) { if(!contract.address) { console.log("Contract transaction send: TransactionHash: " + contract.transactionHash + " waiting to be mined..."); } else { console.log("Contract mined! Address: " + contract.address); console.log(contract); } } } How could I provide this `function` definition from an external file to the console?, such that I don't have to write it all on the console which is quite inconveniente i find. [1]: https://github.com/ethereum/go-ethereum/wiki/Contract-Tutorial#compiling-your-contract