code: function getHead (next) {
      vm.blockchain.getHead(function (err, block) {
        // make sure the state is set before checking post conditions
        state.root = block.header.stateRoot
        next(err)
      })
    }
docs: get the blockchain head